Skip to content

feat(ux): show resolved model/effort in the /codex:rescue launch line (closes #34) - #35

Merged
axisrow merged 1 commit into
mainfrom
feat/rescue-launch-line-model-34
Jul 21, 2026
Merged

axisrow merged 1 commit into
mainfrom
feat/rescue-launch-line-model-34

Conversation

@axisrow

@axisrow axisrow commented Jul 21, 2026

Copy link
Copy Markdown
Owner

What

The launch line for the codex:codex-rescue subagent shows only the topic:

codex:codex-rescue(Codex консультация по #144)

The model/effort Codex actually uses is nowhere visible — especially painful in background runs where the companion's stderr announce is swallowed. This PR makes the launch line show the resolved model/effort:

codex:codex-rescue(Codex консультация по #144 model=gpt-5.6-sol effort=xhigh)

How

The Agent-tool description is free-form text the caller composes before the subagent selects the model. commands/rescue.md now instructs the caller to append model=<…> effort=<…> (resolved to full ids; default when unset). No desync risk — codex-rescue.md selects the model only from explicit user flags, so the caller resolves the same value deterministically.

Companion unchanged: announceRun (#24) stays for foreground-stderr; the launch line is covered by the skill layer.

Verification

Docs/skill-layer change (no runtime code). Manual check after install:

  • /codex:rescue --model sol --effort xhigh <prompt> → model=gpt-5.6-sol effort=xhigh
  • /codex:rescue <prompt> (no flags) → model=default effort=default

🤖 Generated with Claude Code

…closes #34)

The launch line for the codex:codex-rescue subagent showed only the topic
(codex:codex-rescue(<topic>)) and never the model/effort Codex actually uses —
painful in background runs where the companion's stderr announce is swallowed.

The Agent-tool `description` is free-form text composed by the caller before
the subagent selects the model, so instruct the caller (commands/rescue.md) to
include the resolved model/effort there: `<topic> model=<…> effort=<…>`.
Aliases resolve to full ids (spark→gpt-5.3-codex-spark, sol→gpt-5.6-sol,
terra→gpt-5.6-terra, luna→gpt-5.6-luna); unset → `default`. No desync risk
because codex-rescue selects the model only from explicit user flags.

Companion unchanged — announceRun (#24) stays for foreground-stderr; the
launch line is covered by the skill layer.

Co-Authored-By: Claude <[email protected]>
@axisrow

axisrow commented Jul 21, 2026

Copy link
Copy Markdown
Owner Author

📋 Review summary — all cycles

Cycle Reviewer Finding Verdict Resolution
1 codex (no findings — instruction in correct caller-side file, aliases match companion, formatting unambiguous, no desync) approve —
1 claude (/review) (clean — correct file, alias→id map matches companion MODEL_ALIASES, desync impossible by architecture) approve —

Totals: 0 FIX, 0 SKIP, 0 UNVERIFIED.
Verdict: both reviewers approve at head f97bccb. Ready to merge (local mode — merge is yours to trigger). Manual-verify after install (no executable oracle for "how Claude formats the launch-line description").

@axisrow
axisrow merged commit c97167b into main Jul 21, 2026
@axisrow
axisrow deleted the feat/rescue-launch-line-model-34 branch July 21, 2026 18:27
axisrow added a commit that referenced this pull request Jul 21, 2026
Ships accumulated fixes since fork.4:
- #29 broker-busy hang (PR #30): bound broker handshake
- #31 spawned-app-server handshake (PR #32): bound request() primitive
- openai#508 config-driven sandbox + --read-only (PR #33) + resume-sandbox fail-closed
- #34 model/effort in /codex:rescue launch line (PR #35)
- #28 turn-timeout gaps (already in fork.4 base)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant