Repository navigation
test(gateway): preserve saved config in auth reload fixture - #140433
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 4:46 PM ET / 20:46 UTC. ClawSweeper reviewWhat this changesThe Gateway auth-reload tests now preserve saved configuration when changing the logging level and assert that no unrelated configuration paths change. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, useful fixture repair that remains absent from fetched main and the latest release. No actionable correctness findings were found, and the maintainer-authored, protected PR is not a cleanup-close candidate. Priority: P3 Review scores
Verification
How this fits togetherThe Gateway loads saved configuration and applies supported changes while serving WebSocket clients. These integration tests verify that a logging update preserves authentication and allows clients to reconnect. flowchart LR
A[Saved configuration] --> B[Read current source]
B --> C[Change logging level]
C --> D[Assert only logging changed]
D --> E[Gateway config reload]
E --> F[Check auth and reconnect]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +5. Total +5 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the logging-only fixture grounded in saved source configuration while retaining all existing runtime-auth, policy, and reconnection checks. Do we have a high-confidence way to reproduce the issue? Yes, at the source level: the original fixture rebuilds its update from the pre-startup object, omitting subsequently saved fields. The body reports four before/after failures and passes; this review did not independently execute them. Is this the best way to solve the issue? Yes. Reusing the existing saved-source snapshot pattern repairs the fixture at its producer and preserves the stronger Gateway authentication and reconnection checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d97078731212. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…ig-ref * origin/main: (31 commits) docs(web): split the Control UI page into task pages (#140437) fix: tool_search rejects calls that send both query and queries (#140310) fix(update): preserve rollback and truthful serving reports (#140419) fix: restore context when CLI recovery starts a fresh session (#140294) refactor(tests): retain transport-driven auth dismissal coverage (#140430) fix: stop unfinished subagents before resetting a conversation (#140417) fix(models): cap configured output at the final context window (#140436) refactor(mcp): reuse transport config normalization (#140439) test(gateway): preserve saved config in auth reload fixture (#140433) fix(plugins): inherit active config for embedded agent runs (#140435) refactor(tui): remove test-only shutdown timer hooks (#140432) fix(agents): preserve channel silent-reply guidance (#138345) fix(tasks): cancel resumed yielded subagent tasks (#140410) refactor(doctor): share compaction config traversal (#140330) fix(doctor): restore LINE and Mattermost account promotion (#136045) docs: remove the empty release-sections nav group (#140427) fix(tooling): omit Codex machine squash credit (#140420) chore(ui): refresh control ui locales (#140384) refactor(plugin-sdk): reuse native approval input contracts (#140415) fix: silent model WebSocket streams hang past the idle timeout (#140335) ... # Conflicts: # docs/web/control-ui.md
The Gateway auth reload tests rebuilt a logging-only update from their initial config object. The first config write and Gateway startup had already added native-session-catalog privacy preferences, metadata, and agent workspace state, so that later write unintentionally removed those fields instead of testing a safe logging reload.
Read the current saved source immediately before the update, preserve existing logging fields, and assert that the only changed path is
logging.level. All four generated, explicit-override, SecretRef-override, and runtime-override cases retain their source, runtime-auth, policy, and WebSocket reconnection assertions.Validation on main
62fca0de: a fresh canonical E2E build, four real Gateway/WebSocket cases failing before the fixture repair with unexpectedplugins,meta, andagentschanges, then all four passing after the repair. No production code changes; net test LOC +5.The complete changed-file gate and fresh independent P2 review pass.
Extracted while splitting #135599. Follow-up: audit the other saved-config replacements in the Control UI origin-reload and SecretRef rotation fixtures; their similar pattern is recorded without claiming an independently established failure.