Commit b68d42e
fix(ag-ui): relative imports in subagents topic + deploy boot gate (#899)
The subagents topic's 'from src.streaming...' absolute imports resolve
in dev (uvicorn runs from the topic dir) but not in the aggregated
deployment layout, so every Railway image built since 2026-06-16 has
crashed on import. 'railway up --detach' reports success at upload
time, so CI never saw it: Railway kept serving the last good image,
/agent/subagents has been 404 in production since June, and today's
MAF topic could not appear.
- Make both imports package-relative (works in dev and deployed).
- Regenerate the staged deps/ copies.
- Add a deploy boot gate: install the exact requirements union into a
venv and 'import server' before railway up, so a boot failure fails
the workflow instead of silently keeping a stale image.
Verified: the boot repro that reproduced the production failure now
prints 'BOOT OK' with 20 routes, including the MAF mount.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 1b89f15 commit b68d42e
6 files changed
Lines changed: 26 additions & 4 deletions
File tree
- .github/workflows
- cockpit/ag-ui/subagents/python/src
- streaming
- deployments/ag-ui-dev/deps/subagents/src
- streaming
- libs/licensing/src/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
48 | 66 | | |
49 | 67 | | |
50 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments