Fix exec SSE request correlation #158

Merged
janpeter merged 1 commit from codex/ops-agent-halfclose-f4 into main 2026-08-26 10:52:48 +02:00
Owner

Summary

  • Documents the accepted /agent/v1/exec streaming client contract: Content-Length body, no request-side shutdown(SHUT_WR) before SSE exit.
  • Adds raw-socket fd-secret regression coverage for the supported streaming client shape.
  • Fixes F6 by echoing optional request identity on terminal exec SSE events, so fail-closed clients can correlate exit/error frames.

Context

Server rebaseline queue task d2be21e5-d679-4d8c-8e7a-a63919312728 found F4/F5 client-adapter issues plus F6 in the route. F4/F5 remain server-local adapter patch work. This PR closes the route-side F6 prerequisite and records the contract.

Verification

  • npm test -- test/ops-agent-exec-capability-secret.test.ts: 11/11
  • npm -C ops-agent run check: passed
  • npm run typecheck: passed
  • npm test -- test/control-room-legacy-routes.test.ts test/control-room-agent-routes.test.ts: 89/89
  • git diff --check: passed

No Docker used. No live server mutation or credential operation performed.

## Summary - Documents the accepted /agent/v1/exec streaming client contract: Content-Length body, no request-side shutdown(SHUT_WR) before SSE exit. - Adds raw-socket fd-secret regression coverage for the supported streaming client shape. - Fixes F6 by echoing optional request identity on terminal exec SSE events, so fail-closed clients can correlate exit/error frames. ## Context Server rebaseline queue task d2be21e5-d679-4d8c-8e7a-a63919312728 found F4/F5 client-adapter issues plus F6 in the route. F4/F5 remain server-local adapter patch work. This PR closes the route-side F6 prerequisite and records the contract. ## Verification - npm test -- test/ops-agent-exec-capability-secret.test.ts: 11/11 - npm -C ops-agent run check: passed - npm run typecheck: passed - npm test -- test/control-room-legacy-routes.test.ts test/control-room-agent-routes.test.ts: 89/89 - git diff --check: passed No Docker used. No live server mutation or credential operation performed.
fix: echo exec request identity
All checks were successful
CI / Root app checks (pull_request) Successful in 8m3s
CI / Ops-agent checks (pull_request) Successful in 32s
CI / Deploy artifact checks (pull_request) Successful in 39s
CI / Mac foundation hermetic checks (pull_request) Successful in 3m16s
CI / Mac foundation reproducible build (pull_request) Successful in 3m37s
CI / Docker image build (pull_request) Successful in 3m5s
4e61397a77
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
janpeter/Ops-dashboard!158
No description provided.