Repository navigation
fix: make Code Mode reliable across gateway and provider lifecycles - #115379
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Jul 28, 2026
…etwork-none * origin/main: (74 commits) fix(ui): make Control UI ownership and permissions reliable (#115364) feat(system-agent): host memory import in Ask OpenClaw (#115376) fix(chat): preserve literal Markdown image examples (#113904) refactor(chat): keep web and terminal sessions synchronized (#115377) fix(ui): order model picker by provider strength (#115380) feat(ui): make Memory settings a destination page with live overview and dreams (#115383) docs(security): fix warning line wrap (#115388) fix(memory-core): avoid cubic MMR similarity rescans (#113359) fix(discord): preserve code-leading reasoning chunks (#103166) fix(slack): protect outbound hooks from previews fix(ui): keep explicit navigation ahead of chat canonicalization (#115366) fix(exec): safely cancel pending node approvals (#115373) fix: make Code Mode reliable across gateway and provider lifecycles (#115379) perf(ui): debounce event-driven session list refreshes and right-size child paging (#115374) feat(talk): support GPT-Live realtime voice over ChatGPT OAuth (#115226) feat(system-agent): guide gateway configuration in Ask OpenClaw (#115363) fix(agents): make overflow recovery append-only via branch-and-reappend (#115271) (#115310) fix(macos): bound websocket ping so a dropped pong cannot orphan its continuation (#115362) fix(codex): isolate native hook relay startup (#115078) fix(ci): stop reviving superseded pull request workflows (#115378) ... # Conflicts: # CHANGELOG.md
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 29, 2026
…penclaw#115379) * fix(code-mode): dispose suspended runs and propagate cancellation * fix(code-mode): preserve request-visible provider tools * test(code-mode): require real packaged gateway execution * fix(gateway): load code mode cleanup only during shutdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes Code Mode runs that could retain all suspended execution slots after Gateway shutdown, leak process-global tool catalogs when preparation fails, lose cancellation for node-backed MCP calls, or silently strip legitimate direct-only tools from OpenAI and Copilot requests. Also fixes release validation that omitted the real packaged Code Mode gateway and accepted assistant text without proving execution.
Related: #115213, #115314.
Why This Change Was Made
Keeps run disposal and catalog cleanup at their canonical owners, forwards the existing caller signal to node invocations, derives the transport allowlist solely from each request-visible tool context, and reuses the existing deterministic packaged MCP gateway smoke in the release core. Product proof reads structured assistant tool calls through the existing session-store and session-transcript SDKs; no new config, protocol, storage, schema, or compatibility surface.
User Impact
Gateway restarts free all suspended Code Mode slots and outstanding work. Direct-only tools such as sessions_yield and structured_output remain available without exposing undeclared tools. Node calls respect cancellation. Release checks prove real packaged gateway execution and reject fabricated transcript evidence.
Evidence
AI-assisted and independently reviewed.