Skip to content

fix: let long Claude shell jobs release chat turns - #161780

Merged
VACInc merged 2 commits into
openclaw:mainfrom
VACInc:fix/cli-managed-background
Oct 2, 2026
Merged

VACInc merged 2 commits into
openclaw:mainfrom
VACInc:fix/cli-managed-background

Conversation

@VACInc

@VACInc VACInc commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes long foreground shell calls holding a local Claude CLI chat turn until the command finishes.

User Impact

Local Claude CLI turns using bundled Gateway MCP can return a managed process handle after the existing default 10-second yield window. The agent is told to report that the job is running and end the turn when only waiting remains. Completion targets the originating conversation and waits when that conversation is busy.

Exec permissions, configured yield windows, command deadlines, and notification overrides still apply. Exact tool selections, tool-free side questions, standalone CLI runs, rooted runs, and paired-node runs retain their existing contracts. Plugin tools such as remote SSH are outside this fix. Managed processes retain their existing in-memory lifecycle; this adds no restart durability.

Summary

High Level TLDR

Claude's native shell could keep a chat occupied for minutes. Route ordinary local Claude shell work through OpenClaw's existing managed exec and process tools so the job can continue after the foreground tool call returns.

Why This Change Was Made

The Anthropic backend declares host-owned shell tools. CLI preparation projects their permitted catalog into the final loopback grant; execution disables native Bash while retaining existing native denials. The native permission callback rejects equivalent shell calls as well. Managed coding tools receive the original admitted operational run. Completion guidance uses the existing process owner, notification receipt, and session wake queue.

Binding the managed catalog does not make an ordinary run's MCP configuration exclusive. Existing exact-tool restrictions still exclude ambient servers. Other providers retain their existing ownership.

Related: #161546 (Telegram progress visibility).

Root Cause

Observed native Claude Bash calls took approximately 590 and 560 seconds with 600-second tool limits. Those commands belonged to the CLI subprocess. They had no OpenClaw managed process handle or completion handoff, so the foreground turn remained active.

Before this patch, resolveMcpLoopbackTools excludes native coding tools unless the grant explicitly mediates them; the bundled Anthropic backend selects native tools and disallows native background Bash. The normal local CLI projection therefore lacks managed shell tools. OpenClaw cannot safely transfer ownership of a child that remains inside the native CLI simply by ending the turn.

Baseline proof: with the production patch removed, the new real resolver regression exposes managed shell without bypassing tool denies (denied=false) fails because the projected catalog has no exec. The denied case still passes. With the patch restored, both pre-grant and final-grant catalogs expose exec/process only when policy permits them; native read remains excluded.

The deployed overlay touching mediated execution does not supply the default ownership transfer or disable native Bash. This PR includes the admitted operational run when materializing the managed shell tool; that is required for its existing execution owner.

Evidence

Verification

Current-main necessity checked at 37ae73947bf07fc562ba935c4581283b4b80ecb2: the bundled Claude backend still denies Bash(run_in_background:true) while ordinary MCP grants exclude native coding tools. Default local calls therefore still lack the managed process handoff; this PR is not superseded.

Revision bae0d2d6677 addresses the two verified review findings. On the prior PR head, both global and agent tools.exec.host="node" select managed shell ownership even though the canonical exec resolver selects the node. The fix consults that same resolver before takeover, retaining global/agent/session/run precedence. A missing OpenClawConfig type import is also repaired. The existing node-only search fixture now explicitly selects node execution; its routing, native-authority, and search assertions remain intact.

Focused validation: 189 tests pass, four shards, 124.79 seconds. Preparation suite: 123 tests / 75.97 s; Gateway suite: 16 / 10.18 s; search and native-permission suites: 8 / 12.34 s combined; Anthropic arguments: 42 / 2.98 s. Added cases reuse the preparation fixture and took 0.55–1.93 s each. Core, Gateway-test, and agent-test typechecks plus changed-file lint pass. Final isolated pnpm build passed in 6m 19.4s. Hosted exact-head CI/review are pending.

  • Full focused run: 334 tests pass in 127.49 seconds with one worker, covering Claude args, CLI preparation, native shell permission enforcement, real MCP catalog policy, process follow-up, prompt rendering, busy-session handling, wake retries, and real HTTP result acknowledgments.
  • Single-worker cost run: pnpm test extensions/anthropic/cli-shared.test.ts src/agents/cli-runner/execute-plugin-native-bash.test.ts src/agents/cli-runner/prepare.test.ts src/gateway/tool-resolution.test.ts --maxWorkers=1 passed in 94.42 seconds. Existing file-suite wall times: gateway 13.52s, preparation 44.55s, native permission 5.02s, adapter 2.50s. Added cases: approximately 250ms and 220ms for preparation, approximately 140ms per catalog case, and a few milliseconds for adapter/permission checks. No new sleep, polling loop, or process boot is added to per-PR tests. CI seconds unavailable before publication.
  • Final build, lint, handoff regressions, and export checks: pnpm build passed (exit 0); changed core and extension lint passed; final export, formatting, line-cap, and diff checks passed. Full build preceded the final prompt wording and Boolean cleanup; three focused regressions were rerun after the final edits (40.39s including compiler setup), and lint passed for both core and extension sources. The build also printed a Control UI gzip advisory (largest JS 216.0 KiB versus 215.0 KiB); UI sources are untouched and this advisory was not investigated.
  • The changed-check planner passed core, all core-test shards, extension and extension-test typechecks, formatting, plugin boundaries, and ownership/ratchet guards. It initially found an unused exported grant helper; policy selection was moved to MCP preparation and the export scan was rerun. No ignore or baseline was changed.
  • Author source/readiness review covers ownership, permissions, cancellation, exact/node/standalone cases, preserved ambient MCP merging, and an exec-only prompt that no longer assumes a node target. ClawSweeper reviewed the prior head; its two actionable findings are addressed in the revision described above. Fresh exact-head review is pending.

Real behavior proof

Isolated Linux / Node 24.19.0, fresh synthetic state, real admission and registered Gateway tool factories, no provider request or live service changes. A 14-second Node shell command is started through the ordinary managed catalog with no explicit yieldMs or background flag. After it returns running, close the first admission and start a six-second foreground command in a second admission for the same synthetic conversation. The first completion queues while the second command runs. Poll through the second turn and acknowledge delivery; only then is the completion event removed.

Copied output:

{"stage":"foreground-released","seconds":15.9917188,"status":"running"}
{"stage":"completion-queued-during-other-turn","seconds":22.049880532,"queueCount":1,"contextKeyMatchesJob":true}
{"stage":"original-result-collected-on-next-turn","status":"completed","originalCommandReplayed":false}

The first call includes cold lazy initialization. Warm timing, same 14-second command, one warmup and three sequential samples: 10.0288s, 10.0208s, 10.0227s until the foreground call returns. Completion is collected and acknowledged after each sample. This measures the managed tool boundary, not end-to-end Telegram latency. Source-loaded proof-process peak RSS was approximately 1.6 GiB; it is not a production memory comparison.

Repeatable isolated job and queue proof

From the checkout on Node 24.19.0, save the following as /tmp/managed-shell-proof.mjs, then run node --import ./scripts/tsx.mjs /tmp/managed-shell-proof.mjs:

import fs from 'node:fs/promises';
import assert from 'node:assert/strict';
import { performance } from 'node:perf_hooks';
const root = process.cwd();
const state = await fs.mkdtemp('/tmp/openclaw-managed-shell-');
process.env.OPENCLAW_STATE_DIR = state;
process.env.OPENCLAW_TEST = '1';
const { prepareSystemAgentRunAdmission } = await import(`${root}/src/agents/admitted-run-context.ts`);
const { resolveMcpLoopbackScopedTools } = await import(`${root}/src/gateway/mcp-http.runtime.ts`);
const { acknowledgeInternalToolResult } = await import(`${root}/src/agents/runtime/internal-hooks.ts`);
const { waitForExecScope } = await import(`${root}/src/agents/bash-process-registry.ts`);
const { peekSystemEventEntries, drainSystemEventEntries } = await import(`${root}/src/infra/system-events.ts`);
const cfg = { plugins: { enabled: false }, tools: { profile: 'coding', exec: { host: 'gateway', security: 'full', ask: 'off', notifyOnExitEmptySuccess: true } } };
const sessionKey = 'agent:main:webchat:managed-shell-proof';
const jobCode = 'setTimeout(() => { process.stdout.write("JOB_COMPLETE"); }, 14000)';
const quote = value => `'${value.replaceAll("'", "'\\''")}'`;
const command = `${quote(process.execPath)} -e ${quote(jobCode)}`;
const admissions = [];
async function scope(runId) {
  const owner = prepareSystemAgentRunAdmission(cfg, runId, 'main', 'managed-shell-proof');
  admissions.push(owner);
  const admittedRunContext = await owner.admit('gateway');
  const context = { sessionKey, sessionId: 'managed-shell-session', runId, agentId: 'main', workspaceDir: state, cwd: state, messageProvider: 'webchat', senderIsOwner: true };
  const projected = await resolveMcpLoopbackScopedTools({ cfg, context, admittedRunContext, defaultMediatedToolNames: ['exec', 'process'] });
  const toolsAllow = projected.tools.map(tool => tool.name);
  const granted = await resolveMcpLoopbackScopedTools({ cfg, context: { ...context, toolsAllow }, admittedRunContext });
  return { owner, exec: granted.tools.find(tool => tool.name === 'exec'), process: granted.tools.find(tool => tool.name === 'process') };
}
try {
  const first = await scope('managed-shell-first');
  assert(first.exec && first.process);
  const start = performance.now();
  const running = await first.exec.execute('managed-shell-start', { command, timeoutSeconds: 60 });
  const yieldSeconds = (performance.now() - start) / 1000;
  assert.equal(running.details.status, 'running');
  assert.match(running.details.followUp, /end this turn/);
  console.log(JSON.stringify({ stage: 'foreground-released', seconds: yieldSeconds, status: running.details.status }));
  first.owner.close();
  const second = await scope('managed-shell-second');
  const otherCommand = `${quote(process.execPath)} -e ${quote('setTimeout(() => process.stdout.write("OTHER_WORK_COMPLETE"), 6000)')}`;
  const other = await second.exec.execute('other-work', { command: otherCommand, timeoutSeconds: 60 });
  assert.equal(other.details.status, 'completed');
  assert.equal(other.details.aggregated, 'OTHER_WORK_COMPLETE');
  const queued = peekSystemEventEntries(sessionKey);
  assert.equal(queued.length, 1);
  assert.match(queued[0].text, /JOB_COMPLETE/);
  assert.equal(queued[0].contextKey, `exec:${running.details.sessionId}`);
  console.log(JSON.stringify({ stage: 'completion-queued-during-other-turn', seconds: (performance.now()-start)/1000, queueCount: queued.length, contextKeyMatchesJob: true }));
  const completed = await second.process.execute('collect-original-job', { action: 'poll', sessionId: running.details.sessionId });
  assert.equal(completed.details.status, 'completed');
  assert.equal(completed.details.aggregated, 'JOB_COMPLETE');
  assert.equal(peekSystemEventEntries(sessionKey).length, 1);
  acknowledgeInternalToolResult(completed);
  assert.equal(peekSystemEventEntries(sessionKey).length, 0);
  console.log(JSON.stringify({ stage: 'original-result-collected-on-next-turn', status: completed.details.status, originalCommandReplayed: false }));
  console.log(JSON.stringify({ peakRssMiB: process.resourceUsage().maxRSS/1024 }));
} finally {
  for (const owner of admissions) owner.close();
  await waitForExecScope(sessionKey);
  drainSystemEventEntries(sessionKey);
  await fs.rm(state, { recursive: true, force: true });
}

For timing samples, warm the tool once with an immediate command, then repeat the same 14-second command three times; measure each exec.execute call with performance.now(), await waitForExecScope, poll the handle, and acknowledge its result before the next sample.

What was not tested

No live Telegram Test Server roundtrip, authenticated Claude CLI turn, deployment, or service restart. The isolated registered-tool proof establishes the handoff and completion ownership; it does not prove the model will always follow the instruction to end its turn. Exact native-CLI versus managed-CLI before/after chat latency was not benchmarked: the baseline catalog has no managed shell entry, and an authenticated native CLI/provider replay was not exercised. Remote SSH waits remain unchanged. Full repository tests and hosted CI were not run or manually dispatched.

The initial fixture incorrectly returned an unrestricted catalog for an explicit tool cap; its mock was corrected to obey the supplied allowlist. Preparation initially retained a removed grant variable, corrected before passing the full suite. A later extraction temporarily widened the owner-context type; the exact required context type was restored. Running the test compiler concurrently with build changed generated plugin artifacts and triggered its topology guard; final execution is serialized. These failed attempts are not counted as passing proof.

@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime agents Agent runtime and tooling extensions: anthropic size: M labels Sep 30, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 30, 2026
@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 11:57 AM ET / 15:57 UTC (Revision 5).

ClawSweeper review

What this changes

Routes ordinary local Claude CLI shell jobs through OpenClaw’s managed process tools so long commands can release chat turns and report completion later.

Merge readiness

✅ Ready for maintainer review

This PR remains necessary: current main and v2026.9.7 lack the default handoff. Both earlier findings are resolved, and no new blocking correctness defect was found in the pinned changes.

Priority: P1
Reviewed head: e80264769af7db3ec1275d28f1a77714dc331ea8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful process-boundary proof, resolved prior findings, and no identified blocking defect.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The verified body supplies real registered-tool output showing managed exec yielding a process handle, completion queued during another turn, and acknowledged collection. Coverage is the process boundary, not authenticated Claude behavior; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The verified body supplies real registered-tool output showing managed exec yielding a process handle, completion queued during another turn, and acknowledged collection. Coverage is the process boundary, not authenticated Claude behavior; no stored-data contract changes.
Evidence reviewed 10 items Pinned introduction and merge result: Reviewed the merge-base-to-head delta. Raw test-merge records confirm the pinned base followed by the exact PR head; its changes preserve base-only work.
Still necessary on current main: The fetched main backend retains native foreground Bash and has no hostOwnedTools declaration; its preparation module lacks default managed-shell ownership.
Latest release check: Read and decoded the backend from the v2026.9.7 contents endpoint. It has bundled MCP and selectable native tools, still denies native background Bash, and lacks hostOwnedTools.
Findings None None.
Security None None.

How this fits together

The Claude CLI backend receives agent turns and accesses OpenClaw tools through the Gateway’s local MCP connection. Managed execution returns process handles and queues completion for the originating conversation.

flowchart TD
  A[Claude chat turn] --> B[Backend preparation]
  B --> C{Run and tool policy}
  C --> D[Managed shell tools]
  C --> E[Existing native or node tools]
  D --> F[Process handle releases turn]
  D --> G[Completion queue]
  G --> H[Originating conversation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +121, Tests +144, Docs +15. Total +280 across 21 files.

View PR surface stats
Area Files Added Removed Net
Source 13 167 46 +121
Tests 7 155 11 +144
Docs 1 19 4 +15
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 21 341 61 +280

Review metrics

Metric Value Why it matters
Production versus test growth production +121, tests and test support +144 Production growth implements the declared ownership transfer using existing execution owners.
Plugin contract additions 2 optional fields; 0 required fields Backend declarations and execution adapters share an additive shell-ownership contract.

Technical review

Best possible solution:

Use the existing execution and completion owners while preserving configured targets, permissions, and notification behavior.

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

Yes, source establishes that ordinary Claude MCP turns lack managed shell ownership, matching the reported long native Bash waits; this reviewer did not execute a failing Claude turn.

Is this the best way to solve the issue?

Yes, the patch reuses existing managed execution, grant enforcement, and completion queues rather than adding another process owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7f232d4e6421.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The verified body supplies real registered-tool output showing managed exec yielding a process handle, completion queued during another turn, and acknowledged collection. Coverage is the process boundary, not authenticated Claude behavior; no stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The verified body supplies real registered-tool output showing managed exec yielding a process handle, completion queued during another turn, and acknowledged collection. Coverage is the process boundary, not authenticated Claude behavior; no stored-data contract changes.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: Observed multi-minute foreground Claude shell calls hold active chat turns and delay further conversation work.
  • merge-risk: 🚨 compatibility: The maintainer-described native-shell replacement and additive plugin contract warrant compatibility visibility; inspected exclusions and precedence checks preserve existing settings.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The verified body supplies real registered-tool output showing managed exec yielding a process handle, completion queued during another turn, and acknowledged collection. Coverage is the process boundary, not authenticated Claude behavior; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The verified body supplies real registered-tool output showing managed exec yielding a process handle, completion queued during another turn, and acknowledged collection. Coverage is the process boundary, not authenticated Claude behavior; no stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction and merge result: Reviewed the merge-base-to-head delta. Raw test-merge records confirm the pinned base followed by the exact PR head; its changes preserve base-only work. (1165834cf150)
  • Still necessary on current main: The fetched main backend retains native foreground Bash and has no hostOwnedTools declaration; its preparation module lacks default managed-shell ownership. (extensions/anthropic/cli-backend.ts:175, 7f232d4e6421)
  • Latest release check: Read and decoded the backend from the v2026.9.7 contents endpoint. It has bundled MCP and selectable native tools, still denies native background Bash, and lacks hostOwnedTools. (extensions/anthropic/cli-backend.ts, c074824a27c9)
  • Earlier findings resolved: Ownership now consults resolveExecConfigState, preserving global, agent, session, and run host precedence. The Gateway regression imports OpenClawConfig. Added preparation cases cover configured node targets and a run-level Gateway override. (src/agents/cli-runner/prepare-mcp.ts:74, e80264769af7)
  • Existing policy and authority owners retained: Default mediation still passes through Gateway policy filtering and exact grant enforcement. Managed coding tools receive the existing admitted operational run; native equivalents are denied. The existing process-launch boundary revalidates source and operator authority before spawning. (src/gateway/tool-resolution.ts:510, e80264769af7)
  • Real managed-process proof: Recovered the complete PR body and verified SHA-256 6628035d6d1d978a864d98992d2e09a5001c247245c0263b2c1859d4723ba032 against the captured snapshot. Linux/Node 24.19.0 output shows a real 14-second command returning running, warm yields near 10.02 seconds, completion retained during another turn, and collection acknowledged without replay. The harness uses real admission and registered tool factories; it does not exercise authenticated Claude or Telegram. Embedded scripts were inspected, not executed. (e80264769af7)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-30T09:25:46.626Z sha a9439048153d58b012c34fcc53e3b4407740ec90 :: blocked before merge. :: [P1] Preserve the local shell when exec is configured for a node
  • reviewed 2026-10-01T13:53:23.419Z sha a9439048153d58b012c34fcc53e3b4407740ec90 :: blocked before merge. :: [P1] Preserve the local shell when exec is configured for a node
  • reviewed 2026-10-02T11:23:17.516Z sha 951deef683ef3ebc4b18fec9a1fe18f769a7a29a :: blocked before merge. :: [P1] Preserve the local shell when exec is configured for a node | [P2] Import the configuration type used by the new regression
  • reviewed 2026-10-02T12:38:18.887Z sha bae0d2d6677c9915723fbfb3e8f8151dc7c8dfb8 :: needs maintainer review before merge. :: none

@VACInc
VACInc marked this pull request as ready for review October 1, 2026 13:48
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: e80264769af7db3ec1275d28f1a77714dc331ea8
  • Maintainer: @VACInc
  • Repository role: maintain

These security sensitive changes were made:

  • src/agents/cli-auth-epoch.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@VACInc VACInc self-assigned this Oct 1, 2026
@VACInc
VACInc force-pushed the fix/cli-managed-background branch from a943904 to 951deef Compare October 2, 2026 11:17
@VACInc

VACInc commented Oct 2, 2026

Copy link
Copy Markdown
Member Author

Rebased onto 3e1fde3097a at head 951deef683ef3ebc4b18fec9a1fe18f769a7a29a. Preserved upstream completion-handoff policy, admitted-run authority lookup, and shared manual-collection guidance. Removed the now-redundant run-identity assignment already present upstream.

Validation: focused CLI preparation, native-shell permission, Anthropic argument, prompt, Gateway tool-resolution, and exec-liveness tests passed; core and extension typechecks, changed-file lint, formatting, and diff checks passed. No draft/readiness change.

@VACInc

VACInc commented Oct 2, 2026 •

Copy link
Copy Markdown
Member Author

Rebased onto main 8bb49fa67a2722941072b0d2985a537d07d9e603; current head e80264769af7db3ec1275d28f1a77714dc331ea8.

Resolved the exec notification conflict by retaining main’s canonical resolveExecNotificationDefaults, including child-session identity and delivery routing, plus this PR’s conditional completion guidance. Range-diff confirms the node-default ownership fix is unchanged.

Current-head validation: 207 tests pass across eight focused files (183.20s), including real background-child notifications, exec liveness, CLI preparation/host precedence, native Bash denial, and Gateway tool policy. Core typecheck, conflict-file formatting, and diff checks pass. Prior full-build and registered-tool completion proof apply to unchanged code. No new authenticated Claude or live Telegram replay.

Waiting for current-head hosted CI and ClawSweeper before merge.

@VACInc
VACInc force-pushed the fix/cli-managed-background branch from bae0d2d to e802647 Compare October 2, 2026 15:50
@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 2, 2026
@VACInc
VACInc merged commit 32e30e5 into openclaw:main Oct 2, 2026
141 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
* fix: let long Claude shell jobs release chat turns

* fix(agents): preserve native shell for node exec defaults

---------

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

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: anthropic gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed 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.

1 participant