Skip to content

Keep automation actions on their saved workspace owner - #27055

Closed
nwparker wants to merge 1 commit into
nwparker/workspace-activation-session-owner-10-09from
nwparker/automation-row-owner-normal-10-09
Closed

nwparker wants to merge 1 commit into
nwparker/workspace-activation-session-owner-10-09from
nwparker/automation-row-owner-normal-10-09

Conversation

@nwparker

@nwparker nwparker commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​516 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​514
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​81 $\color{#cf222e}{\Huge{\mathbf{−}}}$​23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​58

ELI5

Automations saved for one host could appear unavailable or open a matching workspace from another host. Run now and workspace opening now keep the saved repository and workspace owner.

What Changed

Resolve captured automation rows by catalog publisher, original execution host and saved repository path. Preserve a refused qualified lookup instead of substituting a bare-ID map entry. Before opening a run or changing its terminal layout, pass the checked workspace owner through the existing activation path.

Why

The existing row and activation selectors already carry the owner. Extending those boundaries keeps later file and terminal operations on the selected checkout without introducing another ownership store or changing published IDs. Unscoped rows and rows without a saved run context retain their existing legacy policy.

Linked Issue

Stacked on checked activation and session routing #27045, above host session ownership #27030. Internal reproducible audit; no new issue or copied donor implementation.

Visual Proof

Combined hidden Electron validation remains a separate gate. Current controls use mounted automation-page components, the actual renderer Store and the registered backend. No native app or desktop-focus proof is claimed.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated

This seven-file consumer delta is byte-for-byte the frozen consumer commit, applied on client 91773413b8030e35a1ed05d1b4b339a3309f3956. The proposed head is 57e3170c5a14219125c564bc3062ab1f08c7e420, tree 752282f3ff2fd3553a94fa092c5c2e055dee16a1. All 98 client paths remain unchanged.

Six focused suites pass 86 cases, including captured Run now targets, both local/SSH catalog orders, paired publishers with colliding private hosts, linked checkout paths, poisoned fallback refusal, duplicate refusal and the unique local bootstrap control. The original real-opening control remains preserved as four failures before the checked caller and seven passing controls afterward.

A separate 11-case composition proof now imports the consumer from this checkout and exercises actual OpenRunWorkspace with default host notification, real client activation and selectors, registered RPC/controller, SQLite sessions, immediate inventory and bounded recovery. It includes exact selector compatibility, stale/duplicate refusal and separate concurrent owner requests. Provider inventory, initial terminal startup and external wake/resume edges are isolated; no native PTY, SSH connection, app launch or focus action ran. Direct folder activation and terminal-layout effects are outside that producer proof.

All three type checks, changed-code quality for seven files, and diff checks pass. The private pinned Shiki closure preserves the canonical web file list, compiler options and existing aliases. The working tree is clean.

Review

The normal application had no conflicts or manual source corrections. A bounded read of all seven changed files and the default-notification call chain found no new blocker. Final root review accepted this exact source and packet. Combined rendered validation remains a separate gate; this packet does not claim it complete.

Agent skill upstream boundary

  • Not applicable; no upstream skill source is copied.

Notes

This consumer adds no state store, wire field, method, opcode, capability or ID migration. Older-host refusal and missing-identity behavior come from the reviewed client/backend prerequisites. Unknown or duplicate captured targets remain unavailable rather than selecting a sibling.

Checklist

  • Focused on captured automation targets and existing activation
  • Before/after, mechanism and approach explained
  • Before/after rendered proof attached
  • Self-reviewed source and exact donor/client retention
  • SSH, paired publishers, legacy and folder-workspace policy considered
  • Focused, registered-backend, type and quality checks pass
  • Final root review complete

@OrcaWin

OrcaWin commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Closing. The colliding-host case is already covered on main (automation rows resolve their project and workspace inside their own host, and #27246 made run opening follow the owner). The folder-workspace bug is real and is fixed separately in #27416: automations that target a folder workspace were shown as unavailable on the Automations page.

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.

2 participants