Yansong Zhang
7052257c8d
fix(api): use lazy workflow persistence for transparent upgrade of old apps
...
VirtualWorkflowSynthesizer.ensure_workflow() creates a real draft
workflow on first call for a legacy app, persisting it to the database.
On subsequent calls, returns the existing draft.
This is needed because AdvancedChatAppGenerator's worker thread looks
up workflows from the database by ID. Instead of hacking the generator
to skip DB lookups, we treat this as a lazy one-time upgrade: the old
app gets a real workflow that can also be edited in the workflow editor.
Verified: old chat app created on main branch ("What is 2+2?" -> "Four")
and old agent-chat app ("Say hello" -> "Hello!") both successfully
execute through the Agent V2 engine with AGENT_V2_TRANSPARENT_UPGRADE=true.
Made-with: Cursor
2026-04-09 11:28:16 +08:00
..
2026-04-02 05:07:32 +00:00
2025-12-08 17:54:57 +08:00
2026-04-08 01:36:42 +00:00
2026-04-07 23:36:59 +00:00
2026-04-09 09:36:16 +08:00
2026-04-07 04:23:14 +00:00
2026-04-03 03:42:01 +00:00
2026-04-01 04:00:05 +00:00
2026-04-06 13:17:01 +00:00
2026-04-08 17:39:02 +08:00
2026-04-07 12:11:51 +00:00
2026-04-07 05:57:02 +00:00
2026-04-09 11:28:16 +08:00
2024-08-26 13:43:57 +08:00
2026-04-07 01:03:31 +00:00
2026-04-05 10:22:11 +00:00
2026-04-01 08:03:49 +00:00
2026-04-03 22:47:22 +00:00
2026-04-01 08:03:49 +00:00
2026-02-06 16:25:27 +08:00
2026-04-09 09:36:16 +08:00
2026-04-08 17:39:02 +08:00
2026-04-08 17:39:02 +08:00
2026-04-08 12:31:23 +08:00
2026-04-09 11:28:16 +08:00
2026-04-05 10:22:11 +00:00
2026-04-09 09:36:16 +08:00
2026-04-09 10:54:05 +08:00
2026-03-27 21:05:32 +00:00
2026-04-09 09:36:16 +08:00
2026-03-17 13:14:42 +09:00
2026-04-07 04:23:14 +00:00
2026-04-01 04:00:05 +00:00
2026-04-07 05:56:02 +00:00
2026-03-27 21:05:32 +00:00
2025-09-06 03:32:23 +08:00
2026-04-02 05:07:32 +00:00
2026-03-27 21:05:32 +00:00
2026-04-01 04:00:05 +00:00
2026-04-07 02:10:52 +00:00
2026-04-05 00:12:15 +00:00
2026-04-07 04:25:55 +00:00
2026-04-07 23:22:56 +00:00
2026-03-15 20:59:41 -07:00
2026-04-01 08:03:49 +00:00
2026-03-27 21:05:32 +00:00
2026-04-07 23:36:59 +00:00
2026-03-27 21:05:32 +00:00
2026-03-27 21:05:32 +00:00
2026-03-25 21:33:24 +09:00
2026-04-09 09:36:16 +08:00
2026-04-02 05:07:32 +00:00
2026-04-02 12:34:38 +00:00
2026-04-07 05:58:10 +00:00
2026-03-27 21:05:32 +00:00
2025-10-16 15:45:51 +09:00
2025-09-22 23:07:09 +08:00
2026-04-02 01:47:08 +00:00
2026-04-01 08:03:49 +00:00
2026-04-02 05:07:32 +00:00
2026-04-09 09:36:16 +08:00
2026-04-09 09:36:16 +08:00
2026-04-07 01:00:39 +00:00
2026-04-07 04:20:02 +00:00
2026-04-02 08:35:46 +00:00
2026-04-07 23:36:59 +00:00
2026-04-02 05:07:32 +00:00
2026-04-01 04:00:05 +00:00
2026-04-07 01:01:04 +00:00
2026-04-02 05:07:32 +00:00
2026-04-09 09:36:16 +08:00
2026-04-09 09:36:16 +08:00
2026-03-31 08:21:22 +00:00
2026-03-27 21:05:32 +00:00
2026-03-20 14:54:23 +08:00
2025-10-30 14:41:09 +08:00
2026-04-08 13:19:59 +08:00
2026-04-01 04:00:05 +00:00