Skip to content

feat(remote-sessions): show tasks on other computers as sub-agents - #5975

Merged
reachjalil merged 2 commits into
devfrom
feat/remote-sessions-as-subagents
Oct 15, 2026
Merged

reachjalil merged 2 commits into
devfrom
feat/remote-sessions-as-subagents

Conversation

@reachjalil

@reachjalil reachjalil commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

What is this about?

Tasks started in the cloud or on another computer appear in the desktop chat like sub-agents, with progress and a conversation panel for follow-ups and stopping work.

What problem does it solve?

People can follow delegated work, see when it needs them, and steer it without repeatedly asking the agent for updates.

What was the situation before?

The chat showed “Ran a capability for …”; following the remote task required repeated conversation reads.

How is this implemented?

What it looks like

A compact, two-line row shows the task name, computer, and current state. Clicking opens the side panel; it never opens automatically.

Task state In the interface
Waiting to start “Waiting for [computer] to start it.”
Running “Working” with elapsed time.
Needs an answer or approval Row and sidebar attention; the panel names where to respond.
Completed “Completed” and an answer preview; full conversation in the panel.
Stopped or failed “Stopped” or the reported error.

Steering the task

Action What happens
Open the row Read the remote conversation beside the parent chat.
Follow up, then Send or Enter Send to the same remote session. Status tracking resumes and the panel shows its updated conversation.
Answer a question or approve an action Respond in OpenWork on the named computer; approvals are not bypassed.
Task Stop Stop that task's current turn; the parent chat has its own Stop.

Feature flag and rollback

Setting Behavior
Flag remoteSessionSubagents, off by default on cloud and self-hosted deployments.
Admin rollout Per organization or everyone in /admin; Turn off everywhere overrides both.
Self-hosted control Helm config.features.remoteSessionSubagents forces on/off; the kill switch still wins.
Turned off Restore the plain tool line, clear rows and attention, disable open panels, cancel requests, and stop polling. All four new member endpoints return feature_disabled.
Existing work Remote tasks continue and their conversations remain intact.
  • Den's remote-session:status and POST /v1/remote-sessions/{status,read,send,stop} reuse existing execution and ownership checks.
  • One shared follower batches versioned status, waiting up to 20 seconds for changes. It pauses while hidden/offline and stops on completion.
  • Transcripts load on open/change. @cloud and @desktop tell the agent that chat follows the task, avoiding agent polling.

What else changed?

  • Reconciles remote rows with current App progress and secure credential prompts.
  • Updates shared MCP guidance, generated API/SDK/Helm/audit files, and architecture notes.
  • Keeps remote-call start times across reloads.

Release note

Tasks your agent starts on another computer can now appear in the chat with their status and answer, plus a side panel to read, follow up on, or stop them.

Evidence

evals/specs/remote-session-subagents.e2e.test.ts (v1 and v2) — before: a plain tool call; after: task states, sidebar attention, a conversation panel, word-for-word follow-up delivery, member privacy, bounded status calls, and turning the feature off while the panel is open restores the plain chat and disables all four member routes.

The journey uses the real app and Den with a simulated registered computer. Live cloud and physical-machine execution are outside this journey's coverage.

Design: P3, P11, S4, S5, C4, C5, T1.

@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Oct 15, 2026 10:39pm UTC
openwork-den Ready Ready Preview Oct 15, 2026 10:39pm UTC
openwork-diagnostics Ready Ready Preview Oct 15, 2026 10:39pm UTC
openwork-landing Ready Ready Preview, v0 Oct 15, 2026 10:39pm UTC

Request Review

@mintlify

mintlify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
differentai 🟢 Ready View Preview Oct 15, 2026, 10:38 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@reachjalil
reachjalil temporarily deployed to pr-internal-specs October 14, 2026 02:00 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟢 Ready · evidence passed 534a669 Open preview 2026-10-15 22:47:33 UTC

Run details · Open the preview to inspect evidence and sandbox options.

diff-warden[bot]
diff-warden Bot previously approved these changes Oct 14, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden clearance. Complete security and confidentiality review of 1961fe9ec697dfd50043aeb76fd3cd5e1e7f05f4 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@diff-warden

diff-warden Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Warden: approved

No high or medium security findings and no confidentiality findings.

Reviewed 534a669e1089 · Warden run · Updates after every Warden run.

diff-warden[bot]
diff-warden Bot previously approved these changes Oct 15, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden clearance. Complete security and confidentiality review of 5aff7b1348a0db4a1f5644846a040753de3f586f found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@github-actions
github-actions Bot temporarily deployed to Evidence / PR 5975 October 15, 2026 22:31 Inactive
A task the agent starts on the cloud or another computer now shows in the
desktop chat like a sub-agent: where it runs, whether it is working, waiting
on the person or finished, and its answer. The row opens the conversation
in the side panel, where the person can follow up or stop it, and a task
waiting on the person marks its chat in the sidebar.

Following tasks is built to stay cheap:

- Den: a `remote-session:status` capability and member routes
  `POST /v1/remote-sessions/{status,read,send,stop}` on the same executor.
  Status is batched (up to ten), versioned (an unchanged task returns its
  ref and version) and can hold the call up to 20 s until one changes.
  Desktop and registered tasks read their stored receipt; Cloud tasks make
  a small worker read (`getThreadWaitingFor` in headless-threads).
- App: one follower for every row and panel, one waiting call at a time,
  nothing while the window is hidden or offline or once tasks settle, and
  at most one call every two seconds however busy a task is. The panel reads
  the transcript only when the status changes.
- `@cloud` and `@desktop` tell the agent not to poll when the chat follows
  the task; the agent's own status checks are hidden from the chat.

Behind `remoteSessionSubagents` (cloud and self-hosted, off). Turning it off
restores the plain tool call and stops every status call.

Signed-off-by: Jalil <[email protected]>

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden clearance. Complete security and confidentiality review of 534a669e10898a6035482d5d4b92971a545af164 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@reachjalil
reachjalil merged commit ae7483e into dev Oct 15, 2026
39 checks passed
benjaminshafii pushed a commit that referenced this pull request Oct 15, 2026
#5975 added it to the retired evals/specs; its proof already ran on that PR.
Also removes a world no spec uses.
benjaminshafii pushed a commit that referenced this pull request Oct 15, 2026
* test(evals): replace evals/specs with core journeys per product promise

Delete unit and integration tests that leaked into evals/specs, fold the
remaining e2e specs into 60 core journeys under evals/core (one or more per
promise in evals/promises.ts), and retire evals/specs.

spec-lint (evals/scripts/spec-lint) replaces the boundary and channel
ratchets: no baselines, one bad fixture per rule, and every error says what
to do instead and which core journey to extend. Tooling (test-files, journey
catalog, pr-proof, parity runner) finds journeys by basename in core/ and
proofs/.

* test(evals): drop polynomial regexes from journey behaviors

* ci(evals): run the full core journey suite in its own workflow

PR proof caps changed specs at 32. A PR made only of core journeys and
proofs over that cap keeps the core chat journey as PR proof; the new Core
journeys workflow runs every non-packaged journey nightly, on demand, and on
a PR that changes the workflow.

* test(evals): cut e2e to nine core journeys; move security rules to den-api API tests

- evals/core keeps the nine journeys in evals/journeys.ts; promises.ts,
  sharedWorlds and every other core journey are gone, along with the worlds
  and behaviors only they used (187 -> 28 world files).
- spec-lint shrinks to three rules: allowed-files, real-product, honest.
- Security rules (escalation, tenant isolation, member API keys, admin-only
  actions, MCP OAuth, skill access, audit secrets) are now 23 API tests in
  ee/apps/den-api/test/api against the real app and a throwaway MySQL
  database (~14s), run in CI next to the Den unit tests.
- Core journeys run on every PR and nightly; packaged smoke runs only
  app-smoke and packaged-update-install.
- New verify-openwork skill: how to prove a change on the real product.

* test(evals): fix three core journeys found red on their first CI run

- secure-keys-in-chat declares the web surface its world now uses.
- agent-connection-journey stops clicking a folded 'Show steps' button the
  chat no longer renders for single-call runs (#5547).
- thread-restart world stops the leftover renderer dev server before waiting
  for its port, and fails if app processes outlive a quit.
- core-chat runs only in the PR Core journey lane (it needs a Freestyle world).

* test(evals): drop journey steps the den-api API tests now prove

secure-keys-in-chat no longer re-proves member key isolation, team-leave key
removal and redirect/echo redaction through the UI; ee/apps/den-api/test/api
covers them in seconds. thread-continues-after-restart drops the folded
ArrowUp prompt-recall step, which is not part of surviving a restart.

* test(evals): retire remote-session-subagents spec after its PR proof

#5975 added it to the retired evals/specs; its proof already ran on that PR.
Also removes a world no spec uses.

* test(evals): drop the stale slow-history restart case

The app no longer issues the uncapped history read that case slowed down
(0 delayed reads in CI), so it could not fail on the behavior it named. The
crash and quit cases keep the user-visible claim.

This branch was successfully deployed

6 active and 1 inactive deployments
Evidence / PR 5975 — 534a669e Deployed Oct 15, 2026 by github-actions[bot]
Preview – openwork-landing — 534a669e Deployed Oct 15, 2026 by vercel[bot]
Preview – openwork-app — 534a669e Deployed Oct 15, 2026 by vercel[bot]
Preview – openwork-den — 534a669e Deployed Oct 15, 2026 by vercel[bot]
Preview – openwork-diagnostics — 534a669e Deployed Oct 15, 2026 by vercel[bot]
staging - packages/docs — 534a669e Deployed Oct 15, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant