Repository navigation
fix(reset): preserve bootstrap guidance for dynamic models - #119179
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 6:07 AM ET / 10:07 UTC. ClawSweeper reviewWhat this changesThe PR makes effective tool-inventory resolution asynchronous so commands, reset guidance, and Gateway requests can obtain lifecycle-owned model metadata before producing their result. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. Current main still has the synchronous lifecycle gap, and the draft replaces it coherently across its production callers; no discrete patch defect was found. Because this is a Member-owned lifecycle change, direct Codex-contract inspection and exact-head Telegram evidence should be completed before it is marked ready. Priority: P1 Review scores
Verification
How this fits togetherNative commands and Gateway diagnostics build an effective tool inventory from session context, tool policy, and model metadata. That inventory controls the reply shown to channel operators and the capability decision used for bare session resets. flowchart LR
Command[Native command or Gateway request] --> Resolver[Effective inventory resolver]
Resolver --> Lifecycle[Prepared model lifecycle]
Lifecycle --> Model[Resolved model metadata]
Model --> Inventory[Filtered tool inventory]
Inventory --> Reply[Channel reply or Gateway result]
Decision needed
Why: The source repair is coherent, but repository policy prohibits a Codex-related verdict without direct sibling-source inspection, and the current evidence does not include the promised after-fix Telegram result. Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +149, Other +1. Total +150 across 13 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Mantis proof suggestionA redacted Telegram transcript would directly distinguish the requested inventory reply from the fallback behavior described by the PR. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the single async lifecycle-aware resolver, then obtain direct Codex contract review and an exact-head Telegram transcript showing Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: current main's synchronous model resolver throws for an unpublished lifecycle owner, and the command path catches that failure instead of producing its requested inventory. This read-only review did not execute the live Telegram flow. Is this the best way to solve the issue? Yes, provisionally: moving the fallback to the lifecycle-aware resolver is the narrowest owner-boundary repair, and the branch awaits every production caller without adding a compatibility path. Direct Codex contract evidence and exact-head Telegram proof remain required. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a7cca37838ac. LabelsLabel changes:
Label 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
|
c1e91d1 to
2757cf0
Compare
Punchcard-Session: silver-valley-valley-dt
2757cf0 to
8948141
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Merged via squash.
|
* origin/main: (22 commits) refactor(plugins): consolidate lifecycle hook dispatch (#119429) fix(ci): stabilize TUI PTY proof ownership (#119420) test(system-agent): reduce suite setup overhead (#119424) fix(ui): keep session rail pill status from overlapping the headline (#119397) fix(discord): avoid doctor runtime loading (#119391) fix(media): decouple playback cache retention (#119417) fix(slack): infer upload filename extensions from MIME types (#119399) refactor(channels): unify configured binding resolution (#119414) refactor(google-meet): unify gateway and tool dispatch (#119413) test(state): reuse legacy database fixtures (#119423) fix(reset): preserve bootstrap guidance for dynamic models (#119179) fix(chutes): honor serving context limits (#119196) refactor(status): consolidate scan projections and lazy loaders (#119412) fix(status): status --all slows down with missing plugins (#119203) refactor(gateway): consolidate usage reporting and caches (#119409) perf(gateway): keep reload and recovery machinery off gateway cold start (#119094) fix(cli): align TaskFlow controller columns for wide text (#118801) fix: make startup migration restart guidance install-neutral (#119406) fix(ci): preserve cache warmer shard envelopes (#119403) fix(sessions): preserve compatible auth profiles on model changes (#117550) ...
…119179) Punchcard-Session: silver-valley-valley-dt
What Problem This Solves
Fixes an issue where users starting a bare
/newor/resetwith pendingBOOTSTRAP.mdguidance could receive no reset reply when the selected modelexposes dynamic tool metadata and its prepared runtime had not yet been
published.
Why This Change Was Made
The reset-prompt owner now resolves the request's runtime model context
asynchronously, then passes those explicit facts into the existing synchronous
effective-inventory calculation. This keeps inventory policy synchronous while
repairing the lifecycle gap at the reset boundary that owns the early lookup.
PR #119306 already landed the lifecycle-aware
/toolsand Gateway behavior,including Telegram-visible proof. This rewrite deliberately drops those
overlapping changes and keeps only the remaining reset bootstrap defect.
User Impact
Bare
/newand/resetflows now return the correct full or limited bootstrapguidance for dynamic models instead of failing before any visible reply.
Evidence
89481419fac631004eaaeec7ff9f70c480321aeb392e1c0620b53b29cf98d216ce1081b9f3df4cc3production code unless request-owned
modelApiandruntimeModelfacts aresupplied; it passes with this fix.
run-context, and effective-inventory surfaces.
git diff --check origin/main...HEAD: passed.0.98; TruffleHog clean.+17/-5(net+12); tests:+104/-1.Exact-head CI/Testbox remains the authoritative heavy proof.
Already-landed sibling proof:
telegram-tools-compact-command: 1/1 passed atcaafd02384d6cc5e1b437f6efe9eaf0e60849867.Direct Codex contract inspection:
@openai/codex0.146.0ate363b08c9175ac1cbe5893615dd2cb9ddf95043b.codex-rs/core/src/session/turn_context.rs:113-123,273-290,497-530andcodex-rs/core/src/session/turn.rs:184-200,251-270.5d89ab65dc9d4d0c55796c11df112b54157922b4:turn_context.rs:105-123,271-295,495-530andturn.rs:195-205,294-317.construction, advertised tools, and tool calls.
No changelog entry: release-note generation owns this fix. No release, tag, or
publish action is part of this PR.
Punchcard-Session: silver-valley-valley-dt