Skip to content

feat: optionally show runtime status after /new and /reset - #89277

Closed
ree9622 wants to merge 2 commits into
openclaw:mainfrom
ree9622:feature/reset-runtime-status-reply
Closed

ree9622 wants to merge 2 commits into
openclaw:mainfrom
ree9622:feature/reset-runtime-status-reply

Conversation

@ree9622

@ree9622 ree9622 commented Jun 2, 2026 •

Copy link
Copy Markdown

Closes #89274

What Problem This Solves

After a bare /new or /reset, users can confirm that a new session started but cannot see which model and thinking level the new session will use. This is especially unclear when the reset target has session-specific runtime overrides.

Why This Change Was Made

Add an opt-in commands.showRuntimeStatusOnReset setting that appends the resolved model and thinking level to successful bare reset acknowledgements. The existing compact reply remains the default, and both chat-command and Gateway reset paths share the same acknowledgement formatter while retaining their existing lifecycle behavior.

User Impact

Operators who enable the setting can verify the new session's runtime state immediately after /new or /reset:

✅ New session started.
Model: openai-codex/gpt-5.5
Think: xhigh

Users who do not enable the setting see no behavior change.

Evidence

Rebased onto cb797c959a2f29023717def60226282bdddd4716; current PR head is 0be859f42512ac52599aabecbe77cb9443e79eef.

Focused validation on this exact head:

✓ src/auto-reply/reply/commands-reset-hooks.test.ts (15 tests)
✓ Gateway runtime-status scenario (1 passed, 247 skipped)
✓ node scripts/docs-list.js
✓ node --import tsx scripts/generate-config-doc-baseline.ts --check
✓ codex review --base upstream/main (no blocking findings)
✓ git diff --check

The target-session regression test deliberately sets wrapper/default state to openai/gpt-4.1 and medium while the reset target is openai-codex/gpt-5.5 and xhigh; the reply uses the target session values. Existing tests continue to assert compact default replies for bare /new and /reset.

The enabled reply was also observed from a local installed OpenClaw Gateway with Telegram accounts connected. This exact refresh was not re-tested with a new user-originated Telegram inbound event; PR CI is authoritative for the broader suite.

Risk and Compatibility

  • The new public config key is optional and default-off; omission preserves current behavior.
  • Config types, schema metadata, help/labels, generated baselines, and slash-command documentation are aligned.
  • No migration, security, authentication, secrets, network, or tool-execution behavior changes.
  • Maintainer product/API acceptance of the new commands.* setting remains the main review decision.

AI-assisted: Yes

@openclaw-barnacle openclaw-barnacle Bot added size: S triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 2, 2026
@clawsweeper

clawsweeper Bot commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 29, 2026, 8:08 PM ET / 00:08 UTC.

Summary
The PR adds a default-off commands.showRuntimeStatusOnReset setting that appends model and thinking status lines to successful bare chat-command and Gateway /new or /reset acknowledgements.

PR surface: Source +97, Tests +123, Docs +6. Total +226 across 9 files.

Reproducibility: not applicable. as a bug: current main intentionally returns compact reset acknowledgements, and this PR adds a new opt-in behavior rather than fixing an existing contract failure.

Review metrics: 1 noteworthy metric.

  • Config Surface Added: 1 added. A new public command setting changes the operator-facing configuration contract and needs maintainer review before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #89274
Summary: This PR is the open implementation candidate for the linked feature request about optional model/thinking lines after /new and /reset.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🦐 gold shrimp
Result: needs maintainer review before merge.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Refresh the branch against current main while preserving current Gateway reset acknowledgement behavior.
  • [P2] Get maintainer acceptance for the new public command setting before merge.

Mantis proof suggestion
Native Telegram Desktop proof would directly show both the opt-in status reply and the default compact acknowledgement after refresh. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis telegram desktop proof: verify /new and /reset replies stay compact by default and show Model/Think lines only when commands.showRuntimeStatusOnReset is enabled.

Risk before merge

  • [P1] A new public commands.* config surface needs maintainer product/API acceptance before merge.
  • [P1] The live PR is dirty/conflicting and must be refreshed without losing current-main Gateway reset delivery behavior, especially the newer ackText, assertCurrent, and onCommitted paths.

Maintainer options:

  1. Approve Config And Refresh
    Accept the public command setting, rebase the branch, and verify compact defaults plus enabled status replies after conflict resolution.
  2. Decline The New Config Knob
    Pause or close the PR if maintainers prefer existing status commands over adding another command-specific configuration surface.

Next step before merge

  • [P2] The remaining blocker is maintainer product/API judgment for a new command config key plus conflict refresh, not a narrow automated repair.

Security
Cleared: The diff changes acknowledgement formatting, config schema metadata, docs, and tests without adding dependencies, workflows, secrets handling, or code-execution surfaces.

Review details

Best possible solution:

If maintainers accept the config shape, refresh the branch against current main and land the default-off feature with chat/Gateway tests; otherwise keep /status as the supported post-reset inspection path.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug: current main intentionally returns compact reset acknowledgements, and this PR adds a new opt-in behavior rather than fixing an existing contract failure.

Is this the best way to solve the issue?

Unclear until maintainer approval: the implementation is narrow and default-off, but the best product path depends on whether maintainers want this command-specific config key or prefer existing status commands after reset.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 18b2ff683fd3.

Label changes

Label justifications:

  • P3: This is a low-risk opt-in ergonomics feature, not a broken existing workflow.
  • merge-risk: 🚨 compatibility: The PR adds a public command configuration key and must be refreshed across newer Gateway reset behavior before becoming part of the supported config contract.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body and inspected Telegram screenshots show the enabled runtime-status reply and the default compact reply after the patch.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body and inspected Telegram screenshots show the enabled runtime-status reply and the default compact reply after the patch.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body and inspected Telegram screenshots show the enabled runtime-status reply and the default compact reply after the patch.
  • mantis: telegram-visible-proof: Mantis should capture Telegram visible proof. The PR changes visible Telegram command acknowledgement text that can be demonstrated in a short Telegram Desktop proof.
Evidence reviewed

PR surface:

Source +97, Tests +123, Docs +6. Total +226 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 6 105 8 +97
Tests 2 124 1 +123
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 235 9 +226

What I checked:

Likely related people:

  • steipete: Introduced compact bare chat reset acknowledgements and later the Gateway bare reset fast path that this PR extends. (role: feature-history owner; confidence: high; commits: a68ca1ae0b47, 3ee5490c6001, 2c6a3f6b0478; files: src/auto-reply/reply/commands-reset.ts, src/gateway/server-methods/agent.ts)
  • zhangguiping-xydt: Recently changed Gateway session-key callback/reset delivery routing in the same agent handler area that a conflict refresh must preserve. (role: recent adjacent Gateway contributor; confidence: medium; commits: ba1be23821da; files: src/gateway/server-methods/agent.ts, src/gateway/server-methods/agent.test.ts)
  • jalehman: Recently routed auto-reply sessions through the session seam in the reset command path touched by this PR. (role: recent adjacent reset/session contributor; confidence: medium; commits: 127e174c9e4d; files: src/auto-reply/reply/commands-reset.ts)
  • vignesh07: Introduced the Gateway agent route for bare /new and /reset through the session reset service. (role: adjacent Gateway reset contributor; confidence: medium; commits: 616658d4b088; files: src/gateway/server-methods/agent.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (1 earlier review cycle)
  • reviewed 2026-06-21T10:24:07.575Z sha 9db9fec635d50028c7276775cba08b51a9dcba8a :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. mantis: telegram-visible-proof Mantis should capture Telegram visible proof. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jun 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime labels Jun 2, 2026
@ree9622
ree9622 force-pushed the feature/reset-runtime-status-reply branch from 9da12b6 to ee5c228 Compare June 2, 2026 01:50
@openclaw-barnacle openclaw-barnacle Bot added proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 2, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 2, 2026
@ree9622
ree9622 force-pushed the feature/reset-runtime-status-reply branch from ee5c228 to 9db9fec Compare June 2, 2026 23:50
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed size: S proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Jun 2, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 2, 2026
@ree9622

ree9622 commented Jun 9, 2026

Copy link
Copy Markdown
Author

Telegram visual proof (manual)

With commands.showRuntimeStatusOnReset: true:

Screenshot_20260610_070547_Telegram

Default (option off):
Screenshot_20260610_070524_Telegram

Captured on Telegram Desktop against my locally installed gateway running this branch.

@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Jun 15, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jun 19, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jul 20, 2026
@ree9622
ree9622 force-pushed the feature/reset-runtime-status-reply branch from 9db9fec to dd505e8 Compare July 22, 2026 00:09
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jul 22, 2026
@ree9622 ree9622 changed the title Optionally show runtime status after /new and /reset feat: optionally show runtime status after /new and /reset Jul 22, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jul 22, 2026
@ree9622
ree9622 force-pushed the feature/reset-runtime-status-reply branch from dd505e8 to d2d764e Compare July 22, 2026 00:21
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jul 22, 2026
@ree9622
ree9622 force-pushed the feature/reset-runtime-status-reply branch from d2d764e to fe77d80 Compare July 22, 2026 01:47
@openclaw-barnacle openclaw-barnacle Bot removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. stale Marked as stale due to inactivity labels Jul 22, 2026
@ree9622
ree9622 force-pushed the feature/reset-runtime-status-reply branch from fe77d80 to 0be859f Compare July 22, 2026 05:34
@ree9622
ree9622 force-pushed the feature/reset-runtime-status-reply branch from 0be859f to e9b97c9 Compare July 23, 2026 23:24
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 25, 2026
@steipete

Copy link
Copy Markdown
Contributor

Closing per ClawSweeper review verdict duplicate_or_superseded (decision packet 2026-07-25T12:40:00.423Z). This item was part of the audited close backlog (openclaw/clawsweeper#920) stranded by an apply-lane defect, drained manually after re-verification. If this is wrong, reopen and ClawSweeper will re-review.

@steipete steipete closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime mantis: telegram-visible-proof Mantis should capture Telegram visible proof. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optionally show model and thinking level after /new or /reset

2 participants