Repository navigation
fix(onboarding): recovery hints target the wrong Gateway - #129577
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 6:54 AM ET / 10:54 UTC. ClawSweeper reviewWhat this changesThe PR makes noninteractive onboarding recovery hints include the active profile or container so copied repair commands target the Gateway that failed. Merge readinessKeep open for maintainer handling. Current main still emits unscoped recovery commands, while this PR applies the existing profile/container formatter at the correct diagnostics owner and adds focused coverage; exact-head CI is still running and the branch is behind main. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherNoninteractive onboarding probes Gateway health and emits human or JSON recovery guidance when that probe fails. Operators copy those commands into Doctor or Gateway actions, which must retain the profile or container selected for onboarding. flowchart LR
A[Noninteractive onboarding] --> B[Gateway health probe]
B --> C[Failure classification]
C --> D[Recovery command formatter]
D --> E[Human or JSON diagnostic]
E --> F[Operator repair command]
Decision needed
Why: The patch is technically bounded and appears correct, but the maintainer label and member attribution require explicit human merge handling. Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +77. Total +77 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single generic recovery-hint path and merge it only after a refreshed exact-head CI result confirms the current-main integration. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main's generic recovery owner emits unscoped literals, while the existing formatter demonstrably adds the active profile or container. This read-only review did not execute the failing path. Is this the best way to solve the issue? Yes. Reusing the canonical scope formatter at the single generic recovery-hint owner avoids duplicating profile/container policy and covers every classification that shares the defect. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 093166c7d94f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
…9577) * fix(onboarding): preserve scoped gateway recovery commands * test(memory): deduplicate archive transcript fixtures
What Problem This Solves
Fixes an issue where operators running noninteractive onboarding under an active profile or container were told to repair or restart the default Gateway instead of the scoped Gateway that actually failed.
Why This Change Was Made
The existing onboarding diagnostic owner now formats every generated recovery command through the canonical profile/container-aware command formatter. Consolidating equivalent recovery branches keeps all six failure classifications, caller-provided hints, human output, and JSON output intact without increasing production code.
User Impact
Recovery commands copied from onboarding now target the correct selected profile or container, including container-over-profile precedence, instead of modifying an unrelated default Gateway.
Evidence