Skip to content

feat(cron): on-exit schedule β€” wake on a watched command's exit - #92037

Merged
obviyus merged 1 commit into
openclaw:mainfrom
anagnorisis2peripeteia:feat/cron-watch-process-exit
Jul 1, 2026
Merged

obviyus merged 1 commit into
openclaw:mainfrom
anagnorisis2peripeteia:feat/cron-watch-process-exit

Conversation

@anagnorisis2peripeteia

@anagnorisis2peripeteia anagnorisis2peripeteia commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds an on-exit cron schedule kind: a job that fires once when a watched shell command exits, starting a fresh agent turn in the originating conversation. It's "a #83738 cron wake, triggered by a process exit instead of by the tool call" β€” it reuses the merged origin-aware wake as its delivery mechanism and only adds the trigger.

  • The gap. openclaw already wakes the parent when an openclaw-managed child finishes β€” sub-agents, isolated cron runs, and image/video/music generation raise task_completion internal events consumed by the embedded-agent runtime. But nothing watches an arbitrary external command, and the CLI backends can't participate in that internal system at all: a command a claude-cli agent runs via its exec tool lives inside the per-turn process tree that's signalProcessTree(SIGTERMβ†’SIGKILL)'d at turn end (claude-cli provider: session abort triggers gateway-wide SIGTERM (v2026.4.23)Β #71662), so it dies before it can observe an exit or fire a wake. The only pre-existing workaround is a polling every:Nm cron that burns a turn per poll.
  • What this does. A new CronSchedule kind { kind: "on-exit", command, cwd? }, executed by a gateway-ProcessSupervisor-owned watcher (cron-exit-watchers.ts). The watcher runs the command as a child of the gateway supervisor β€” outside any agent turn's process tree β€” so it survives turn teardown by construction. On exit it fires fix(cron): capture originating session/agent on the cron wake tool callΒ #83738's origin-aware wake on the job's captured session, so the woken turn continues the originating conversation (native claude-cli --resume, see proof), with the exit code folded into the woken turn's text. One-shot per arm.
  • Surfaces. on-exit is accepted by the protocol schema, the cron tool (schedule.kind:"on-exit" + command/cwd), and the CLI (cron add --on-exit <shell> [--on-exit-cwd <path>]). Watchers arm on job add/update and on gateway-startup reconcile (so persisted jobs re-arm after a restart) and cancel on remove/disable/shutdown.
  • AI-assisted: yes β€” drafted with Claude.

Why a non-internally-managed wake (and why it works for every backend)

The internal task_completion machinery is embedded-runtime-bound and command-agnostic β€” it has no "watch a shell command" task type, for any backend. A claude-cli (or claude-cli-interactive/proxy) agent can't register an external command with it, and a command it runs inline dies at turn teardown. So the watcher must live outside the turn and outside the embedded-agent event system β€” the gateway ProcessSupervisor. Because the wake then rides the gateway command lane (busy-detection is getQueueSize(Main), acquired at the dispatch layer above the backend), it behaves identically on plain claude-cli and the interactive MITM backend: if the watched command exits mid-turn, the wake hits requests-in-flight, re-queues, and fires when the lane frees β€” never concurrently. Proven below on plain claude-cli; the interactive path is the same lane mechanism.

Real behavior proof

Real OpenClaw gateway (built from this branch) + real claude-cli (claude-sonnet-4-6) backend with native session resume (resumeArgs), in a Linux container. A persisted on-exit job (command: "sleep 22") is loaded at gateway startup; a binding turn establishes the session; the watched command exits; the watcher fires the origin wake. Gateway logs (gw-clean.log, cron-exit-structured.log):

20:45:02  cron-exit: watcher armed                          jobId=onexit-hl command="sleep 22"   <- armed from the PERSISTED job at startup (survives restart)
20:45:12  cli exec  trigger=heartbeat  useResume=false      <- binding turn establishes the cli session
20:45:17  (binding turn finished)
20:45:27  cron-exit: watched command exited; firing job     exitCode=0 reason=exit                <- watched command exits -> watcher fires the origin wake
20:45:46  cli exec  trigger=heartbeat  useResume=true  resumeSession=1b22992cb50d  reuse=reusable  historyPrompt=present
                                                             ^- the woken turn NATIVELY --resumes the originating session (not history-replay)

The wake turn ran after the binding turn finished, so it is unambiguously the on-exit wake β€” and it natively --resumed the binding turn's claude-cli session, continuing the conversation. A separate run also exercised the mid-turn case: the watched command exited while a turn was in flight, the wake hit requests-in-flight, re-queued, and the woken turn ran after the in-flight turn ended (never concurrently).

  • Behavior or issue addressed: an agent (any backend, esp. claude-cli) cannot reliably arm "wake me when this external command exits" β€” managed task_completion doesn't cover external commands and an agent-spawned command dies at turn teardown.
  • Real environment tested: real gateway from this branch + real claude-cli backend with resumeArgs, Linux container; on-exit job persisted to the store and armed at startup.
  • Exact steps or command run after this patch: seed a persisted on-exit job (sleep 22, sessionKey bound), start the gateway, run a binding turn, let the command exit.
  • Evidence after fix: redacted gateway logs above (gw-clean.log, cron-exit-structured.log) showing arm β†’ exit β†’ fire β†’ native-resume woken turn.
  • Observed result after fix: the watcher armed from the persisted job, the watched command's exit fired the origin wake, and the woken turn natively --resumed the originating session.
  • What was not tested: the Telegram-thread visual (the session is a local key here; thread delivery is fix(cron): capture originating session/agent on the cron wake tool callΒ #83738's merged + proven mechanism β€” the wake routing is identical regardless of channel). The interactive/MITM backend (same command-lane mechanism; not separately captured).

Bug caught by the live proof

getInvalidPersistedCronJobReason only allowed at/every/cron, so on-exit jobs failed persistence validation β€” they couldn't be saved to the store or survive a restart (the watcher arms from the store at startup). Fixed + regression test. This is exactly the class of issue unit tests around the schema/codec missed and the live store-seed proof surfaced.

Limitations & maintainer notes

  • Command execution policy. The watched command runs under the gateway ProcessSupervisor with a 24h safety timeout and the OPENCLAW_CLI env marker β€” consistent with how cron command-payload jobs run (runCommandWithTimeout). It does not apply the full tools.exec policy (host approvals, sandbox selection, unsafe-command guards, script preflight); neither do cron command-payload jobs. Unifying an approvals/sandbox policy across both gateway-level command-execution paths is a cross-cutting product/security decision flagged for maintainer ownership, not narrowed here.
  • Downgrade. on-exit is a new schedule kind. A rollback to a release predating it will not decode these rows (older code filters unknown schedule kinds on load), and a later cron write can drop them β€” inherent to introducing any new schedule kind. Treat on-exit jobs as not downgrade-preserved until a versioned-store strategy lands.

Tests / CI

  • New: cron-exit-watchers.test.ts (arm/fire-on-exit/skip-timer-and-disabled/idempotent/cancel/no-fire-after-cancel/one-shot), persisted-shape.onexit.test.ts, schedule-options.onexit.test.ts (CLI), row-codec.schedule.test.ts (store round-trip), plus on-exit cases in schedule/normalize.
  • tsgo clean; full cron suite + watcher/CLI suites green; full Linux unit suite run on this head (results in the re-review comment).

Proof re-verified on current head

Rebased onto current main and re-ran the live harness pnpm exec tsx scripts/proof-cron-on-exit.mts in a real crabbox box β€” ALL PASS against the real createCronExitWatchers + getProcessSupervisor + real child commands: arm β†’ watched command exits (code 7) β†’ persistCompletion runs before fire (fail-closed) β†’ origin wake fires with the exit code folded into the woken turn's text; cancel-before-exit never fires; reconcile([]) cancels the watcher.

Review→change history (every reviewer finding + disposition): https://gist.github.com/ec8f0d0d7607bb1246d8708221fd66e0

@anagnorisis2peripeteia

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

New PR (not a stack β€” builds on merged #83738). Adds an on-exit cron schedule kind: a gateway-ProcessSupervisor-owned watcher that survives claude-cli turn teardown and fires #83738's origin-aware wake when a watched command exits, continuing the originating conversation (native --resume, proven in the body).

Highlights:

  • Live proof on real claude-cli: watcher armed from a persisted job at startup β†’ watched command exits β†’ woken turn natively --resumes the origin session (gateway logs linked).
  • The proof surfaced + fixed a real persistence bug (getInvalidPersistedCronJobReason rejected on-exit jobs β†’ couldn't save/survive restart); regression test added.
  • Full cron suite 551 tests green; new watcher/persisted-shape/CLI/store tests; tsgo clean.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes agents Agent runtime and tooling labels Jun 10, 2026
@clawsweeper

clawsweeper Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

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

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

πŸ¦žπŸ‘€
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@clawsweeper

clawsweeper Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 1, 2026, 1:30 PM ET / 17:30 UTC.

Summary
The PR adds an on-exit cron schedule kind with gateway ProcessSupervisor watchers, CLI/protocol/store/UI support, and focused regression coverage.

PR surface: Source +552, Tests +1043, Docs +29, Other +200. Total +1824 across 45 files.

Reproducibility: not applicable. as a bug reproduction; this is a new cron trigger capability. Current main source proves on-exit is absent, and the PR proof logs demonstrate the proposed after behavior.

Review metrics: 2 noteworthy metrics.

  • Cron public surface: 1 schedule kind, 1 list filter value, 2 CLI flags added. This changes the public cron trigger contract across protocol and CLI surfaces, so maintainer acceptance is needed before merge.
  • Persistent cron shape: 1 stored schedule kind added. Persisted cron rows can now contain schedule_kind=on-exit, which affects upgrades, rollbacks, and older client behavior.

Stored data model
Persistent data-model change detected: serialized state: scripts/proof-cron-on-exit.mts, serialized state: src/cron/persisted-shape.onexit.test.ts, vector/embedding metadata: ui/src/ui/controllers/cron.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦞 diamond lobster
Proof: πŸ¦€ challenger crab
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

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

Risk before merge

  • [P1] Merging this intentionally lets persisted cron jobs run durable gateway-owned shell watchers outside the per-turn process tree and outside the stricter tools.exec approval/sandbox path.
  • [P1] The new on-exit schedule kind is persisted and exposed through protocol/CLI/UI surfaces; older releases or clients may reject, ignore, or later drop those rows without a versioned-store preservation strategy.

Maintainer options:

  1. Accept the documented cron boundary (recommended)
    A maintainer can explicitly accept gateway-owned on-exit command execution plus non-downgrade-preserved schedule rows, then merge with the current proof and green checks.
  2. Route watchers through shared execution policy
    Require the watcher path to use a shared approvals, sandbox, or command-policy layer before merge if durable gateway shell execution should not become a cron contract as written.
  3. Pause for versioned cron storage
    If rollback preservation is required for new schedule kinds, pause this PR until cron rows can be versioned, quarantined, or preserved by older clients.

Next step before merge

  • [P2] The remaining action is maintainer product/security review and upgrade-contract acceptance, not a narrow automated code repair.

Security
Needs attention: The diff intentionally creates a durable gateway-level shell execution path for persisted cron schedules, so maintainer security-boundary acceptance is still required.

Review details

Best possible solution:

Land only after maintainers explicitly accept the gateway-level command authority and persisted schedule-kind upgrade contract, or require a redesign through shared execution policy and versioned cron storage before merge.

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

Not applicable as a bug reproduction; this is a new cron trigger capability. Current main source proves on-exit is absent, and the PR proof logs demonstrate the proposed after behavior.

Is this the best way to solve the issue?

Unclear until maintainer acceptance; the gateway ProcessSupervisor is a plausible owner for a watcher that must survive turn teardown, but the execution-policy and downgrade contracts are product/security decisions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4895a00b94f0.

Label changes

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is πŸ¦€ challenger crab and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: This is a substantial new cron capability with limited blast radius but meaningful compatibility and security-boundary review needs.
  • merge-risk: 🚨 compatibility: The PR adds a new persisted cron schedule kind plus protocol/client/CLI handling that older releases or clients may not decode or preserve.
  • merge-risk: 🚨 security-boundary: The PR adds durable gateway-owned shell execution for cron watchers outside the agent turn process tree and outside the stricter tool-exec approval path.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is πŸ¦€ challenger crab and patch quality is 🦞 diamond lobster.
  • status: πŸ‘€ ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): Sufficient logs show after-fix real behavior: a persisted on-exit job arms on gateway startup, the watched command exits, and the wake resumes the originating claude-cli session.
  • proof: sufficient: Contributor real behavior proof is sufficient. Sufficient logs show after-fix real behavior: a persisted on-exit job arms on gateway startup, the watched command exits, and the wake resumes the originating claude-cli session.
Evidence reviewed

PR surface:

Source +552, Tests +1043, Docs +29, Other +200. Total +1824 across 45 files.

View PR surface stats
Area Files Added Removed Net
Source 25 592 40 +552
Tests 15 1047 4 +1043
Docs 1 29 0 +29
Config 0 0 0 0
Generated 0 0 0 0
Other 4 201 1 +200
Total 45 1869 45 +1824

Security concerns:

  • [medium] Accept gateway-owned shell execution before merge β€” src/gateway/cron-exit-watchers.ts:115
    The watcher runs stored commands through the gateway ProcessSupervisor with a 24h timeout and OpenClaw exec marker, but without the full tools.exec approval/sandbox policy; this is an intentional capability that needs maintainer sign-off.
    Confidence: 0.9

What I checked:

  • Current main lacks on-exit schedules: Current main defines cron schedules only as at, every, and cron, so this PR is adding a new capability rather than replacing an already-implemented path. (src/cron/types.ts:9, 4895a00b94f0)
  • PR adds the new schedule kind: The PR head adds kind: "on-exit" with command and optional cwd to the cron schedule type. (src/cron/types.ts:19, 61b3c745a865)
  • Gateway watcher execution boundary: The watcher spawns the stored command through the gateway ProcessSupervisor with a cron-exit scope, OpenClaw exec marker, 24h timeout, and captured output. (src/gateway/cron-exit-watchers.ts:115, 61b3c745a865)
  • Disable-before-fire lifecycle: The gateway cron wiring disables the job in the store before force-running the cron payload with the exit summary override. (src/gateway/server-cron.ts:749, 61b3c745a865)
  • Persistent row shape changes: The PR persists on-exit rows by reusing schedule_expr for command and schedule_tz for cwd, disambiguated by schedule_kind. (src/cron/store/row-codec.ts:52, 61b3c745a865)
  • Agent tool shell-execution guard: The PR blocks agent cron tool creation or editing of on-exit schedules, keeping shell-backed cron creation on the CLI/Gateway API side. (src/agents/tools/cron-tool.ts:411, 61b3c745a865)

Likely related people:

  • anagnorisis2peripeteia: Prior merged cron wake origin work and later cron/CLI policy repair are directly adjacent to this PR's wake and CLI-backend behavior. (role: adjacent feature owner; confidence: high; commits: f1f00cbf1d58, 9aea104cc88a; files: src/gateway/server-cron.ts, src/agents/tools/cron-tool.ts, src/cron/types.ts)
  • steipete: GitHub history shows repeated recent cron SQLite runtime and row-codec refactors around the persistence boundary this PR extends. (role: cron storage/runtime history owner; confidence: high; commits: 2bd07eead7e7, a84819a63953, 63de51ab9632; files: src/cron/store/row-codec.ts)
  • mbelinky: GitHub history identifies the existing command-backed cron job implementation that this PR cites as the closest existing gateway-level command execution model. (role: command cron introducer; confidence: medium; commits: b8adc11977ab; files: src/cron/command-runner.ts, src/gateway/server-cron.ts, src/cron/types.ts)
  • obviyus: Live PR metadata shows obviyus assigned to the PR, and recent history shows adjacent cron toolsAllow work on the same cron/CLI policy area. (role: assigned reviewer and recent cron contributor; confidence: medium; commits: 17066f2d7c01; files: src/cron/types.ts, src/agents/tools/cron-tool.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.

@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 10, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: πŸ¦ͺ silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jun 10, 2026
@anagnorisis2peripeteia

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the [P1] (restart replay). Pushed f2c2c7c6b6e: the watcher now disables the job in the store via persistCompletion() BEFORE firing the wake (cron-exit-watchers.ts), so a gateway restart after the watched command exits sees a disabled job and cannot re-arm/re-run it. New tests cover (a) persist-before-fire ordering and (b) a simulated restart proving the command is not re-run. tsgo clean; watcher suite 28 green.

On the second [P1] (durable gateway-level arbitrary-shell authority): that's inherent to the feature and a maintainer-acceptance call β€” the watched command is exactly what the agent could already run via its exec tool; on-exit just relocates it to the gateway supervisor so it survives turn teardown. Flagging it explicitly for owner sign-off rather than narrowing, same as #83738's compatibility note.

@clawsweeper

clawsweeper Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 10, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jun 10, 2026
@anagnorisis2peripeteia

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed all three lifecycle [P1]s (1a7ee97b9bf, cron-exit-watchers.ts):

  • Track pending spawns β€” the watcher slot is now reserved synchronously (with an arm token) before the async spawn(); a concurrent cancel/replace during the spawn window kills the orphaned child via the ownership check instead of leaking or firing it.
  • Replace on change β€” reconcile now re-arms a tracked job when its command/cwd changed (was: skip any tracked job β†’ kept watching the stale command).
  • Fail closed β€” if persistCompletion (the disable-before-fire) throws, the watcher does not wake; waking without a persisted terminal state would let a restart re-run the command.

New tests cover all three: persist-failure β†’ no fire, command-change β†’ cancel+re-arm, in-flight-spawn removal β†’ orphan killed + no fire. Watcher suite 40 green; lint + test-types clean.

On the two [P2]/ownership notes (second persistent command-execution model alongside cron command payloads; upgrade/rollback semantics for the new schedule kind on older releases): those are product/security ownership decisions, flagged for maintainer sign-off rather than narrowed here β€” same posture as #83738's compatibility note.

@clawsweeper

clawsweeper Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. and removed P2 Normal backlog priority with limited blast radius. labels Jun 10, 2026
@clawsweeper clawsweeper Bot added the rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. label Jun 20, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Jun 21, 2026
@xuwei-xy

Copy link
Copy Markdown

I think the fix would involve adjusting ui. Would that work for your use case?

@anagnorisis2peripeteia

Copy link
Copy Markdown
Contributor Author

I think the fix would involve adjusting ui. Would that work for your use case?

could you please elaborate?

@anagnorisis2peripeteia

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

2 similar comments
@anagnorisis2peripeteia

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@anagnorisis2peripeteia

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@anagnorisis2peripeteia

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

1 similar comment
@anagnorisis2peripeteia

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@anagnorisis2peripeteia

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

…mmand exits

Adds an `on-exit` cron schedule kind: a job fires once when a watched command/process
exits, via gateway ProcessSupervisor exit watchers. Covers CLI (`--on-exit`/`--on-exit-cwd`),
tool/protocol schema, RPC list-filter, Control UI + macOS read-only display, SQLite
round-trip, and origin-aware wake routing. Restart-safe one-shot (persists completion
before firing); platform-aware shell; bounded watched-command execution.

Squashed from 22 iterative commits for a clean rebase onto current main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: macos App: macos app: web-ui App: web-ui cli CLI command changes gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: XL 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.

4 participants