Repository navigation
test(prompt): the omo routes wait until their stand-in process runs - #3728
Conversation
The prompt-route fixtures find OMO through an inert child's OMO_CODING_AGENT_DIR, read from /proc/<pid>/environ. Until the child has exec'd, /proc shows the parent's environment without it, and the route took the pane for pi (Fast checks of #3722, run 43161162746: "agent": "pi" where "omo" was expected). The child now writes a line once it runs, and the fixture waits for it before the route is asked.
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
One reviewer: test-only PR (server/prompt.test.ts). Test-only PR ( A flake from #3722's first Fast checks run: the omo route fixture read its stand-in child's environment from |
Change
server/prompt.test.ts's OMO prompt-route fixtures (withOmo) let the route find OMO through an inert child process'sOMO_CODING_AGENT_DIR, read from/proc/<pid>/environ. The child was spawned and the route asked at once. Until the child has exec'd,/procshows the parent's environment, without the variable, and the route took the pane for pi: #3722's Fast checks (run 43161162746, job 130992611922) failed "an answer and the menu it was made for > discovers the real 5.1.30 one-question wide widget through the prompt route" with"agent": "pi"where"omo"was expected, on a PR that changed only a Windows browser script.The child now writes
readyonce it runs (stdout piped), and the fixture waits for that line before the route is asked. Test-only; no sleep.Validation
server/prompt.test.ts: 3 full runs, 467 pass, 0 fail each.bun run typecheck: pass.bun run check faston the branch rebased onto 98be242: pass (16185 pass, 0 fail).