Repository navigation
fix(commands): restore tool inventory for dynamic models - #119306
Conversation
6527de0 to
01f629a
Compare
Mantis Telegram Live QASummary: Mantis ran the Telegram live QA lane with Convex-leased credentials, rendered a redacted transcript in a Crabbox desktop browser, and captured screenshot/video evidence for PR review.
Telegram live transcript Telegram motion preview Motion-trimmed clips: Full videos: |
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 6:09 PM ET / 22:09 UTC. ClawSweeper reviewWhat this changesThis PR gives the Telegram Merge readinessKeep open for maintainer review: the patch uses the existing asynchronous model-context owner before building Priority: P2 Review scores
Verification
How this fits togetherTelegram release QA sends a native flowchart LR
A[Telegram compact command] --> B[Command handler]
B --> C[Model context lease]
C --> D[Tool inventory]
D --> E[Telegram reply]
E --> F[QA scenario timeout]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +13, Tests +76, Other 0. Total +89 across 5 files. View PR surface stats
Review metrics
Mantis proof suggestionA fresh Mantis transcript would turn the currently blank prepared media into directly reviewable proof of the changed Telegram command behavior. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared model-context handoff and model-aware timeout, then land only after an exact-head Telegram QA run confirms the inventory reply and supplies a visible redacted transcript or equivalent artifact. Do we have a high-confidence way to reproduce the issue? Yes: current source shows the fixed 60-second Telegram wait while the repository already provides a model-aware live-turn helper; the supplied live-QA report describes the observed timeout path. Is this the best way to solve the issue? Yes: reusing the established async model-context handoff and live-turn timeout is narrower and more maintainable than adding a Telegram-specific timeout or a second inventory resolver. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 44f3747daacf. 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
HistoryReview history (3 earlier review cycles)
|
ee564b3 to
72a1fea
Compare
72a1fea to
8aff719
Compare
Punchcard-Session: amber-workshop-river-yr
Punchcard-Session: amber-workshop-river-yr
Punchcard-Session: amber-workshop-river-yr
Punchcard-Session: amber-workshop-river-yr
Punchcard-Session: amber-workshop-river-yr
8aff719 to
e8b83b8
Compare
Punchcard-Session: amber-workshop-river-yr
|
Merged via squash.
|
Punchcard-Session: crisp-lantern-orchard-nv * origin/main: perf(memory): defer session backfill runtime (#119372) fix(ci): isolate built TUI PTY fixture (#119339) fix(commands): restore tool inventory for dynamic models (#119306) fix(media): release rejected BytePlus and Runway video downloads under debug capture (#119257) docs: add ChromeOS (Crostini) platform install guide (#107663) test(msteams): serve JWKS from in-process server in auth coverage (#119354) fix(qa): enable OpenAI for stored audio scenario (#119349) test(agents): realpath apply-patch temp dir fixture (#119353) test(slack): drop redundant .js-suffixed system-event mock (#119352) fix(exec): leave safe builtins unrewritten in enforced mode (#119351) fix(sessions): keep gateway responsive while large transcript archives are built (#112424) fix(tui): restore provider auth in installed local mode (#119283)
…time * origin/main: (75 commits) fix(commands): restore tool inventory for dynamic models (#119306) fix(media): release rejected BytePlus and Runway video downloads under debug capture (#119257) docs: add ChromeOS (Crostini) platform install guide (#107663) test(msteams): serve JWKS from in-process server in auth coverage (#119354) fix(qa): enable OpenAI for stored audio scenario (#119349) test(agents): realpath apply-patch temp dir fixture (#119353) test(slack): drop redundant .js-suffixed system-event mock (#119352) fix(exec): leave safe builtins unrewritten in enforced mode (#119351) fix(sessions): keep gateway responsive while large transcript archives are built (#112424) fix(tui): restore provider auth in installed local mode (#119283) fix(release): accept legacy empty core artifacts (#119337) fix(qa): carry selected runtime into flow scenarios (#119324) fix(ci): retry interrupted Windows dashboard release checks (#119095) fix(release): filter validation ancestry fetch (#119334) fix(release): accept trusted extended-stable validation evidence (#119264) fix(sessions): preserve recorder-owned user turns (#119307) perf(cli): split plugin registry startup timing (#119318) fix(qa): align release scenario setup and compaction proof (#119188) fix(ci): avoid duplicate Matrix release QA runs (#119171) perf(agents): reuse provider policy manifest registry (#119305) ...
…9306) * fix(qa): scale Telegram compact command timeout * fix(qa): surface Telegram compact reply failures Punchcard-Session: amber-workshop-river-yr * fix(commands): prepare tool inventory model context Punchcard-Session: amber-workshop-river-yr * test(commands): type runtime context mock Punchcard-Session: amber-workshop-river-yr * docs(changelog): note tool inventory repair Punchcard-Session: amber-workshop-river-yr * chore(release): defer tool inventory note Punchcard-Session: amber-workshop-river-yr * fix(ci): lower environment variable budget Punchcard-Session: amber-workshop-river-yr


What Problem This Solves
Fixes an issue where
/toolscould return a temporary inventory failure for dynamic-provider sessions because the command tried to resolve tools before publishing or borrowing the prepared runtime model context.The Beta 8 release lane also reproduced a separate current-main gate failure: two removed
OPENCLAW_*names left the environment-variable ratchet at 515 while the observed production count is 513.Why This Change Was Made
The command now follows the existing Gateway owner boundary: resolve the effective runtime model context asynchronously, then pass that prepared context into the synchronous tool-inventory projection. The Telegram release-QA scenario uses the established model-aware live-turn timeout and asserts the full expected reply so fallback errors remain visible.
The environment-variable budget is lowered from 515 to 513, matching the repository checker and restoring
check:changedon current main.User Impact
Users running
/toolswith dynamically prepared models receive the tool inventory instead of a temporary failure. Release validation waits for the provider-aware Telegram response budget without accepting an unexpected reply as success.Evidence
caafd02384d6cc5e1b437f6efe9eaf0e60849867.commands-info.test.tsandlive-scenario-timeouts.test.ts);OPENCLAW_* count 513/513;git diff --checkclean.pnpm check:changedplus the same 98 focused tests passed, exit 0. Leasetbx_01kz7cttttf20vy5p9jfv70pyp; run https://github.com/openclaw/openclaw/actions/runs/30954884840.telegram-tools-compact-commandpassed with overalltrueat the exact candidate SHA. The artifact'sqa-suite-report.mdcontains the full redacted reply (Available tools, profile, built-in/connected tools, and the/tools verbosehint); the prepared desktop image itself only shows the scenario pass because its observed-message panel is empty. Run https://github.com/openclaw/openclaw/actions/runs/30954874075; artifact https://github.com/openclaw/openclaw/actions/runs/30954874075/artifacts/8911342198.No changelog edit: the release-owned entry was removed per review, and release generation remains the owner for the eventual note.
Punchcard-Session: amber-workshop-river-yr