fix: default AI fallback to true on the run page (#5017)

This commit is contained in:
pedrohsdb 2026-03-09 14:30:14 -07:00 committed by GitHub
parent c30e43bc84
commit 644051d13c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View file

@ -1807,7 +1807,7 @@ class AgentDB(BaseAlchemyDB):
is_saved_task: bool = False,
status: WorkflowStatus = WorkflowStatus.published,
run_with: str | None = None,
ai_fallback: bool = False,
ai_fallback: bool = True,
cache_key: str | None = None,
adaptive_caching: bool = False,
generate_script_on_terminal: bool = False,

View file

@ -302,7 +302,7 @@ class WorkflowModel(Base):
status = Column(String, nullable=False, default="published")
generate_script = Column(Boolean, default=False, nullable=False)
run_with = Column(String, nullable=True) # 'agent' or 'code'
ai_fallback = Column(Boolean, default=False, nullable=False)
ai_fallback = Column(Boolean, default=True, nullable=False, server_default=sqlalchemy.true())
cache_key = Column(String, nullable=True)
adaptive_caching = Column(Boolean, default=False, nullable=False, server_default=sqlalchemy.false())
generate_script_on_terminal = Column(Boolean, default=False, nullable=False, server_default=sqlalchemy.false())

View file

@ -94,7 +94,7 @@ class Workflow(BaseModel):
max_screenshot_scrolls: int | None = None
extra_http_headers: dict[str, str] | None = None
run_with: str | None = None
ai_fallback: bool = False
ai_fallback: bool = True
cache_key: str | None = None
adaptive_caching: bool = False
generate_script_on_terminal: bool = False

View file

@ -2543,7 +2543,7 @@ class WorkflowService:
extra_http_headers=extra_http_headers,
run_with=run_with,
cache_key=cache_key,
ai_fallback=False if ai_fallback is None else ai_fallback,
ai_fallback=True if ai_fallback is None else ai_fallback,
run_sequentially=run_sequentially,
sequential_key=sequential_key,
folder_id=folder_id,

View file

@ -1015,7 +1015,7 @@ class WorkflowCreateYAMLRequest(BaseModel):
extra_http_headers: dict[str, str] | None = None
status: WorkflowStatus = WorkflowStatus.published
run_with: str | None = None
ai_fallback: bool = False
ai_fallback: bool = True
cache_key: str | None = "default"
adaptive_caching: bool = False
generate_script_on_terminal: bool = False