[codex] Persist agent streams after response#4325
Conversation
|
@caydyan is attempting to deploy a commit to the Stak Team on Vercel. A member of the Team first needs to authorize it. |
|
Ready for review after re-running the focused validation locally. Validation rerun:
The visible Vercel status is an external-contributor authorization gate ( |
7c077a6 to
c908f62
Compare
|
Rebased on current Validation:
The remaining visible status is the Vercel external-contributor authorization gate, not a local validation failure. |
c908f62 to
dbb2198
Compare
|
Rebased on current Validation after rebase:
Full |
dbb2198 to
1db976d
Compare
|
Rebased onto current upstream Validation after rebase:
The PR is mergeable from the GitHub side. The remaining blocked check is Vercel authorization for an external contributor deployment. |
1db976d to
decacaa
Compare
|
Rebased this PR onto current Validation on the rebased head:
|
decacaa to
d58f85c
Compare
|
Rebased onto current upstream Validation after rebase:
GitHub reports the PR is mergeable; the remaining blocked status is still the Vercel external-contributor authorization gate. |
|
Current-head validation on
The remaining visible blocker is still the Vercel external-contributor deployment authorization gate, not a code/test failure. |
bde8194 to
0c97829
Compare
|
Rebased this branch onto current upstream Validation after rebase:
GitHub REST now reports the PR open, non-draft, |
65d3427 to
56c6590
Compare
|
Rebased this PR onto current upstream |
9c0a394 to
f9ea19d
Compare
|
Rebased this PR onto current upstream Validation after rebase:
GitHub now reports the branch at head |
8f49638 to
cea1be1
Compare
|
Rebased this PR onto current upstream Validation after rebase:
GitHub now reports the PR open/non-draft, |
cea1be1 to
d1c3e32
Compare
|
Rebased again onto current upstream Validation from a clean temporary worktree:
GitHub now reports the PR as |
d1c3e32 to
9389f5e
Compare
|
Rebased this branch onto the latest Local validation run after the rebase:
All passed locally. |
26f11ed to
73459d8
Compare
|
Rebased this branch onto latest upstream Validation on the rebased head:
GitHub now reports the PR as |
73459d8 to
06a183b
Compare
|
Rebased this PR onto current upstream Validation from a clean temporary worktree:
GitHub now reports the PR as |
06a183b to
a8127be
Compare
|
Rebased this PR onto current upstream Validation from a clean temporary worktree:
GitHub now reports the PR as mergeable with the branch-drift blocker cleared again. |
a8127be to
b06f4d6
Compare
|
Rebased this PR onto current upstream Validation from a clean temporary worktree:
GitHub now reports the PR open/non-draft, |
Summary
startStreamInBackgroundpath to/api/agentthat saves a STREAM artifact and schedules the remote/stream/:taskIdPOST in Next.jsafter()after()callback runsBounty context
This targets Sphinx bounty #4316, "persistent streaming from agent". The route now keeps the agent stream owned by Hive after the response returns, so leaving the task page does not cancel the remote stream start/drain path.
Validation
npx vitest run src/__tests__/unit/api/agent-background-stream.test.ts src/__tests__/unit/api/agent-rollback-logging.test.tsnpx eslint src/app/api/agent/route.ts 'src/app/w/[slug]/task/[...taskParams]/page.tsx' src/__tests__/unit/api/agent-background-stream.test.ts --max-warnings=999(passes with 3 existing warnings in the task page)npx tsc --noEmit --pretty false 2>&1 | rg 'src/app/api/agent/route.ts|src/app/w/\[slug\]/task/\[\.\.\.taskParams\]/page.tsx|src/__tests__/unit/api/agent-background-stream.test.ts'(no diagnostics for touched files; full repo typecheck currently reports unrelated existing test/type issues)