Repository navigation
test(tui): route PTY gateway scenarios through explicit models - #118802
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 2:09 PM ET / 18:09 UTC. ClawSweeper reviewWhat this changesThe branch gives every real Gateway/PTy end-to-end scenario an explicit configured and session-selected model, replacing prompt-text routing and adding rejected-model diagnostics for stalled tests. Merge readinessKeep open: this focused test repair is still needed because current Likely related people
Priority: P3 Review scores
Verification
How this fits togetherThe TUI PTY suite drives a real Gateway server and terminal client against a loopback OpenAI-compatible model service. Scenario-specific model selection controls which deterministic response behavior the shared Gateway/PTY fixture receives, so the suite can verify cancellation, queueing, validation, and session behavior. flowchart LR
A[PTY scenario] --> B[Scenario model configuration]
B --> C[Gateway session]
C --> D[Session model selection]
D --> E[Loopback model service]
E --> F[Scenario response or rejection]
F --> G[PTY and Gateway assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -6. Total -6 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one canonical fixture path: bind each scenario to its declared model in agent and session configuration, retain rejected-request diagnostics, and land it once the exact rebased head meets normal merge gates. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main advertises one shared model and selects scenario behavior by prompt markers, while this branch binds the same scenarios to explicit configured models and session model selection. The PR body also supplies before/after real Gateway/PTy terminal evidence, though this read-only review did not rerun it. Is this the best way to solve the issue? Yes. Configuring model identity at the agent/session boundary is more maintainable than inferring test behavior from mutable prompt text, and it preserves the real Gateway and PTY execution path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a67c52611e57. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
…0803-tui-pty-scenario-model-routing
|
Merged via squash.
|
…-state-mutation * origin/main: (22 commits) fix(delivery): renew stable producer leases (#118663) test(mcp): isolate catalog size checks from wall-clock load (#118871) test(ui): add credentials primary QA proof (#118790) fix(slack): prevent stalled presence polling from hanging shutdown (#117478) test(security): cover gateway shared auth modes (#118834) fix(macos): show gateway auth failures in app status (#118841) test(tui): route PTY gateway scenarios through explicit models (#118802) test(qa): add session transcript primary coverage (#118820) fix(browser): protect private observation media and Canvas trust boundaries (#118775) fix(build): restore SDK packages and signed macOS app builds (#118833) test(qa): cover plugin authoring contracts (#118821) fix(parallels): keep provider keys out of POSIX job logs (#118840) improve: reduce redundant Code Mode test work (#118815) fix(models): report primary OpenRouter limits in scans (#110855) test: speed up setup inference fixtures (#118811) fix(auto-reply): enforce canonical reset authorization (#118580) docs(gateway): fix invalid heartbeat visibility examples (#118827) fix(plugins): unify HTTP route conflict handling (#118203) test(agents): use prepared auth fixtures (#118816) fix(lmstudio): resolve JIT embedding variants ...
Summary
Verification
Complete real Gateway + real PTY production suite
The complete actual Gateway/WebSocket + PTY + loopback-provider suite passes all eight scenarios in original order, with no retries, timeout increases, assertion weakening, or mocks replacing the production Gateway:
Both former hosted failure modes pass in the complete real production execution order.