Repository navigation
feat: open shared sessions in their source Control UI - #203044
Conversation
OpenClaw-Publication: a3826b6b-5899-8ff2-a1b5-84961c64219f
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
…3044 * origin/main: fix(ci): decouple boundary fixture from timing inventory (#203026) fix(ci): shard capable compatibility UI targets (#203042) perf(agents): restore selected subagent payloads once (#203039) fix: keep standalone context from completing QA tool steps perf(sessions): reuse sealed ownership for context projections (#203040) refactor(hooks): separate event predicates from hook registry (#203017) fix(ci): align update export audits with their consumers (#203030) fix: keep cold baseline checks within the existing heap limit
…link resolver The stored-session link resolver took a mutable config, so the plugin's readonly runtime snapshot failed production and test typechecks. Accept the snapshot type. Document the real Open original setup: allow the link command on the receiver Gateway, set the source Control UI origin, reinstall the source node with all three commands, then approve the widened surface. Move the section ahead of Security boundary and add a troubleshooting entry. Assert through the Gateway catalog list that a provider-supplied link survives streamed and final rows, and drop the menu unit test the browser fixture covers.
…3044 * origin/main: refactor(test): remove duplicate token startup wait case (#203087) fix: keep Plugin SDK declarations within the build limit fix(ci): remove unused hook type exports (#203074) fix(test): exercise the sign-in callback path guard (#203075) refactor(tts): separate caption eligibility from text helpers (#203068) test: reuse worker preload options (#203058) refactor(test): share Bun native-policy test launcher (#203064) fix(cron): a chat-created automation's failure notice reaches that chat (#203056) refactor(test): remove duplicate claw origin rejection case (#203067) refactor(channels): move chunk-mode lookup to streaming readers (#203047) refactor: separate skill queries from workspace discovery (#203045) fix: resume new chat turns in retained tasks after a restart refactor: separate usage pricing preparation from formatting (#203043) fix: avoid repeated filesystem probes before agent turns (#203057) perf(agents): preserve sealed history during endpoint compaction (#203037) fix(test): give deferred identity fixtures read scope (#203053) refactor(test): remove redundant channel catalog facade (#203052) refactor(cli): isolate daemon port presentation (#203020) refactor(cron): isolate CLI input parsing (#203031)
Open original adds two exports to openclaw/plugin-sdk/session-discussion: the stored-session Control UI path resolver and the session path parser. Raise the public export and callable budgets by two for them. Use neutral fixtures for the rejected-origin and rejected-query URL tests so the fixtures do not resemble credentials; the same rejections are covered.
|
@clawsweeper re-review The input-safety hold was on the first revision. The only credential-shaped material this PR added was synthetic test fixtures in |
|
🦞👀 Re-review progress:
|
|
Codex review: blocked before merge. What this changesAdds an opt-in Open original action that opens a shared session in its source Control UI. Example: A receiver lists agent:research:planning from a node configured with https://source.example and /control.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this useful, maintainer-authored PR open. The revised fixtures raise no credential concern, and source review found no definite introduced defect. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherSession Share publishes selected source sessions through paired-node commands, projects them into the receiving Gateway's catalog, and supplies navigation metadata to the Control UI. flowchart LR
A[Source sessions] --> B[Source routing owner]
B --> C[Optional linked list command]
C --> D[Receiver catalog]
E[Receiver configured origin] --> D
D --> F[Open original menu]
F --> G[Source Control UI authentication]
Technical reviewBest possible solution: Keep source routing authoritative, bind navigation to receiver-configured origins, and preserve plain-list interoperability. Do we have a high-confidence way to reproduce the issue? This is an additive feature request; current-main source confirms that the shared-session menu lacks source navigation, without a runtime reproduction. Is this the best way to solve the issue? The smallest complete implementation extends the existing producer, catalog, routing, and menu owners; the separate opt-in command is justified by the closed v1 wire schema. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eb7ca3d33375. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +226, Tests +394, Docs +71, Generated 0, Other +2. Total +693 across 26 files. Added test files: 3. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 21, 2026, 8:24 AM ET / 13:24 UTC. |
|
Land-ready on head Work done on top of the published port
Proof
ClawSweeper before-merge item: data-model compatibility
Known gaps and inherited state
Supersedes #182339. |
|
Merged via squash.
|
…9388 stage 4) Absorbs openclaw/openclaw main 5a3e6b1 (473 commits past the absorbed 1129d4c, which is the merge-base) into 16541aa, so openclaw#129388's presentation can fast-forward. rerere was off for the merge; nothing arrived pre-staged. 24 content conflicts: - Generated, regenerated rather than hand-merged: config-baseline counts and sha256 (config:docs:gen; core 2667 + fork 17 = 2684), gateway predicates.js (gateway:validators:gen), and the four PostgreSQL state catalogs (db:postgres:gen). - package.json schemaVersions: state 41 (upstream openclaw#201615) with the fork's agent 44 (continuation's recipient-authority step; upstream's agent ladder is still at 43). - plugin-sdk-surface-report budgets: upstream's +2 (openclaw#203044) plus the fork's unchanged +11 / +4. - subagent-registry-queries: upstream openclaw#203102 folded excludeSuspendedDelivery into excludeSettledDelivery; T1's unconditional suspended-unbound skip stays. - subagent-registry-suspended-delivery: upstream openclaw#202732 restructured the discard into discardExpiredSubagentDelivery with the expiry notice in a finally block; T1's suspended-unbound outcome still notifies no session. - agent-runner-result-accounting, update-command-service-command, session-reset-service, assistant-answer-text, state-port.postgres.test, vitest.database-worker-core-paths: both sides kept (imports, openclaw#201615 permission checks beside the reset retention, openclaw#203174's Responses-only signed selection with the fork's per-item answers, both port fixtures, both worker-path lists). - update-cli tests (openclaw#200578 deleted the in-place Git runner): upstream's deletions win; the fork's compiler-flag argv matchers are carried onto upstream's rewritten checks. Refs openclaw#129388 Co-Authored-By: Claude Opus 5.5 <[email protected]>
* feat: open shared sessions in their source Control UI * feat: open shared sessions in their source Control UI OpenClaw-Publication: a3826b6b-5899-8ff2-a1b5-84961c64219f * Merge remote-tracking branch 'origin/main' into land/open-original-203044 * origin/main: fix(ci): decouple boundary fixture from timing inventory (openclaw#203026) fix(ci): shard capable compatibility UI targets (openclaw#203042) perf(agents): restore selected subagent payloads once (openclaw#203039) fix: keep standalone context from completing QA tool steps perf(sessions): reuse sealed ownership for context projections (openclaw#203040) refactor(hooks): separate event predicates from hook registry (openclaw#203017) fix(ci): align update export audits with their consumers (openclaw#203030) fix: keep cold baseline checks within the existing heap limit * fix(session-share): accept the runtime config snapshot in the source link resolver The stored-session link resolver took a mutable config, so the plugin's readonly runtime snapshot failed production and test typechecks. Accept the snapshot type. Document the real Open original setup: allow the link command on the receiver Gateway, set the source Control UI origin, reinstall the source node with all three commands, then approve the widened surface. Move the section ahead of Security boundary and add a troubleshooting entry. Assert through the Gateway catalog list that a provider-supplied link survives streamed and final rows, and drop the menu unit test the browser fixture covers. * Merge remote-tracking branch 'origin/main' into land/open-original-203044 * origin/main: refactor(test): remove duplicate token startup wait case (openclaw#203087) fix: keep Plugin SDK declarations within the build limit fix(ci): remove unused hook type exports (openclaw#203074) fix(test): exercise the sign-in callback path guard (openclaw#203075) refactor(tts): separate caption eligibility from text helpers (openclaw#203068) test: reuse worker preload options (openclaw#203058) refactor(test): share Bun native-policy test launcher (openclaw#203064) fix(cron): a chat-created automation's failure notice reaches that chat (openclaw#203056) refactor(test): remove duplicate claw origin rejection case (openclaw#203067) refactor(channels): move chunk-mode lookup to streaming readers (openclaw#203047) refactor: separate skill queries from workspace discovery (openclaw#203045) fix: resume new chat turns in retained tasks after a restart refactor: separate usage pricing preparation from formatting (openclaw#203043) fix: avoid repeated filesystem probes before agent turns (openclaw#203057) perf(agents): preserve sealed history during endpoint compaction (openclaw#203037) fix(test): give deferred identity fixtures read scope (openclaw#203053) refactor(test): remove redundant channel catalog facade (openclaw#203052) refactor(cli): isolate daemon port presentation (openclaw#203020) refactor(cron): isolate CLI input parsing (openclaw#203031) * chore(plugin-sdk): record the approved session-discussion surface growth Open original adds two exports to openclaw/plugin-sdk/session-discussion: the stored-session Control UI path resolver and the session path parser. Raise the public export and callable budgets by two for them. Use neutral fixtures for the rejected-origin and rejected-query URL tests so the fixtures do not resemble credentials; the same rejections are covered. Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Replaces #182339, which is roughly 12,700 commits behind
main. This is a focused port of the same capability onto the current Session Share producer, wire schema and menu owners; the older branch's lifecycle implementation is not carried over.What Problem This Solves
Someone reading a shared session in the receiving Control UI cannot jump to that session in the Control UI it came from. To continue the work there they have to find the source Gateway and the session by hand.
Why This Change Was Made
openclaw.sessions.list-with-links.v1, which returns the ordinary list rows plus a source-relative Control UI path. The path is included only when the source's current read routing still resolves to that stored agent and session key.plugins.entries.session-share.config.nodes.<nodeId>.controlUiOrigin, optionalcontrolUiBasePath), and refuses paths with a query, fragment, backslash, dot segments, or a session key that differs from the row.User Impact
Eligible paired-node sessions gain Open original in the shared-session menu. It opens the source Control UI in a separate tab with no opener or referrer; the shared view stays read-only, and the source applies its own sign-in and permissions.
Nothing is enabled by default. Setup, in order (documented in
docs/plugins/session-share.md, "Open original on a paired node"):openclaw.sessions.list-with-links.v1togateway.nodes.commands.allow.controlUiOrigin(andcontrolUiBasePathif needed) for that node.--commands.openclaw nodes pending/openclaw nodes approve.While any step is missing the receiver keeps using the plain list command: shared sessions stay readable and the menu shows Open original disabled with setup guidance.
Config surface: 2 new optional plugin keys (
nodes.*.controlUiOrigin,nodes.*.controlUiBasePath), both unset by default; no existing key changes meaning and no migration is needed.Plugin SDK surface: 2 new exports on
openclaw/plugin-sdk/session-discussion(parseControlUiSessionPath,prepareStoredSessionControlUiPathResolver). The plugin needs the Gateway's own routing to decide link eligibility and the shared URL contract to validate a received path; no existing SDK seam exposes either.Release note: Session Share can open a shared session in its source Control UI ("Open original") for paired node sources, opt-in on both machines. Original proposal: #182339.
Evidence
Head
ff8fc877dde(currentmainmerged in). Heavy proof ran on a Blacksmith Testbox lease against this checkout.Focused suites:
pnpm test src/plugin-sdk/session-discussion.test.ts extensions/session-share/src/original-url.test.ts extensions/session-share/src/session-catalog.test.ts test/plugins/session-share.integration.test.ts ui/src/components/app-sidebar-catalog-menu.test.tsx src/gateway/server-methods/session-catalog.test.tspass.Real Chromium fixture:
pnpm test ui/src/e2e/session-share-original.e2e.test.tspasses (2 cases: configured link opens a separate tab with no opener and no referrer; unconfigured node shows the disabled action with guidance; no continue, send, archive or terminal request is made in either).Gateway seam:
src/gateway/server-methods/session-catalog.test.tsasserts that a provider-suppliedoriginalUrlsurvives both the streamedsessions.catalog.hostevent and the finalsessions.catalog.listresult.Types:
pnpm tsgo:core,tsgo:extensions,tsgo:ui,tsgo:test:src,tsgo:extensions:test,tsgo:test:uipass.pnpm check:baseline-ratchetspasses (assertion-safety, test-lines at +394 of 400, config-docs baseline current).pnpm check:import-cycles: 0 cycles.pnpm gateway:validators:check: unchanged (the catalog row schema is not compiled into validators).pnpm buildpasses; its 12INEFFECTIVE_DYNAMIC_IMPORTwarnings are all in Control UI modules this change does not touch.oxfmt --checkon the changed files andpnpm docs:check-linkspass.Autoreview against
origin/mainwith the surrounding source files as context: no accepted findings.CI run 44908233228 is green on this head. On the previous head,
android-test-wearfailed once because Gradle could not fetch published artifacts from Maven Central; it passed on one rerun of that job.Settings compatibility, on a build of this branch with an isolated state directory (
openclaw config validate, Testbox run 44911250408):share.groups,nodes.<id>.owner,linkGitHubIdentities) validates unchanged.controlUiOrigin,controlUiBasePathand thegateway.nodes.commands.allowentry from the new docs validates.controlUiOriginwith a path andcontrolUiBasePathwith a query are rejected, naming the key and the pattern.No stored data changes: the diff touches no database schema, migration, or persisted state. The receiver's node snapshots stay in memory, and the only durable surface is the two optional config keys above.
Known gaps and inherited state:
src/gateway/node-command-policy.tsandsrc/gateway/node-connect-reconcile.tsand documented, but not exercised on a real paired node.pnpm deadcode:exportsis red onmainforGatewayStartupHookContextandPluginHookExecRequestOwner; neither is touched here.pnpm plugin-sdk:surface:checkwas already over budget onmainbefore this change (b8b205b4851: 164 > 163 entrypoints, 3911 > 3894 exports, 2252 > 2243 callable). This change adds 2 exports, both callable, and raises the two export budgets by 2 with the owner's approval; the check stays red by exactlymain's existing drift.pnpm ui:i18n:checkreports the new English strings as untranslated, as expected: English is committed here and the locale refresh workflow translates after merge.Screenshots
Same real Control UI, synthetic paired-node data and 1440×900 Chromium viewport; matching 940×365 crops. Before is the base above; after is the candidate. Captures preserve the app-owned menu position.
Before
After
Annotated comparison
Before
After
Without opt-in setup