Repository navigation
feat(native-chat): teach chat agents to keep long-running work visible - #34306
YangNuoCheng wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 3

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
76706100-fcc2-4834-b27e-1dcaec420d06
Files selected for processing: 2-
resources/native-chat-visuals/.claude-plugin/plugin.jsonresources/native-chat-visuals/skills/orca-chat-background-work/SKILL.md
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
…its watchers - register orca-chat-background-work/SKILL.md in ORCAD_NATIVE_CHAT_VISUALS_ARTIFACTS so headless and remote agents also receive it, and extend the exact-list test - add a PowerShell watcher for Windows hosts - run the ssh watcher locally and retry failed checks so a dropped connection no longer ends the watcher while the remote work is alive
|
All three points addressed in c64e824:
Lint, typecheck, and the visuals-delivery tests pass locally. |
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0191f5f6-ad82-4117-866f-f354d9be97a2
Files selected for processing: 3-
resources/native-chat-visuals/skills/orca-chat-background-work/SKILL.mdsrc/main/native-chat/native-chat-visuals-delivery.test.tssrc/shared/orcad-artifacts.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
|
Cross-linking #37407 — an umbrella issue for super-agent workflows; this PR covers the verify-and-close step (telling whether a job an agent detached is still alive). |
ELI5
When an agent in an Orca chat starts a long job on a server and walks away, Orca shows the chat as done even though the job is still running, and nobody notices if the job dies. This teaches chat agents to keep such jobs visible, so the chat shows "monitoring" until the job ends and then notifies you.
What Changed
Before: an agent that starts work with
setsid nohupoverssh,tmux, or a backgroundcodex execends its turn and the chat shows done. The job is invisible to Orca: no monitoring state, no task row, no notification when it ends or fails.After: chat agents get a new bundled skill,
orca-chat-background-work, telling them to:ssh HOST 'while kill -0 PID 2>/dev/null; do sleep 30; done; tail -n 20 LOG'), so the chat stays in working · monitoring and turns done with a notification when the work ends;& echo $!), sincepgrep -fthroughsshcan match its own remote shell;Mechanism: the skill lives in
resources/native-chat-visuals/skills/, the plugin Orca already hands to every chat agent (Claude loads the plugin directory; Codex and ACP agents get its skills root). No code changes. The plugin description now mentions the new skill.Why
Agents routinely say "I'll report back" about detached jobs, and the user cannot tell from the chat whether anything is still running. Orca's existing monitoring state already does the right thing for work the agent tracks itself, so the smallest fix is to make agents keep detached work tracked. Registering external work in Orca directly (polled checks, progress in the task row) is a larger change to the child-work model and is left for a follow-up described in the issue.
Linked Issue
Fixes #34305
Visual Proof
N/A: no UI change. Observed with Orca 1.4.240 and a Codex chat, reading the state from
orca worktree ps --json, while the agent followed this skill for a detached 9-step job on a remote Linux host:Without the watcher the same chat shows
doneas soon as the turn ends. In this run the agent's first watcher exited at once becausepgrep -fover ssh matched its own shell; the skill's "check before saying it started" step made it notice and fix this. The skill now steers the agent toecho $!instead.Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Manual: the run above, plus a Codex background-terminal
sleep 150(monitoring for ~150 s, then done) to confirm the existing tracking the skill relies on.No new tests: the change is a skill file and a plugin description. Existing suites that load this plugin pass (
codex-structured-visuals,claude-structured-launch-visuals,native-chat-visuals*: 34 tests), andpnpm lintpasses. The skill keeps its description under 1024 characters with no angle-bracket placeholders.Tested with Codex on macOS against a Linux server. Not tested with Claude Code or ACP agents, which receive the same plugin.
AI Disclosure
Written with an AI coding agent (Claude, claude-opus-5-5) under my direction; I reviewed the change and ran the manual tests.
Review
Agent skill upstream boundary
Notes
Security: the skill adds no capability; it changes how agents use commands they can already run. Cost: a watcher polls once every 30 s. Limitation: if the watcher's ssh connection drops, the chat shows done while the job may still run; the skill tells the agent to recheck the host before reporting the job stopped.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)