Skip to content

Add pane-scoped Workspace controls and remote Browser routing - #181

Merged
yansfil merged 19 commits into
mainfrom
prd/workspace-control-cli
Sep 26, 2026
Merged

yansfil merged 19 commits into
mainfrom
prd/workspace-control-cli

Conversation

@yansfil

@yansfil yansfil commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Related: Closes #176 · PRD agents/prd/workspace-control-cli/prd.md

Summary

  • Add pane-scoped Workspace CLI commands for info, files, diffs, Browser views, layout, selection, status, and wait.
  • Bind each request to a live pane and checkout with scoped credentials, typed receipts, bounded work, and idempotent request IDs.
  • Route remote pane requests and Browser assets through SSH, with per-Workspace origins and native page lifecycle reporting.
  • Show the resulting Views in the web and desktop shells while preserving the operator's current Workspace and focus.
  • Provide connected sessions with conditional command guidance and document the isolated measurement procedure.

Workspace CLI opens a diff and a Hangul file in the target checkout
Remote HTML renders in the native Browser view after SSH pane routing
Native Browser view keeps Hangul input in the active page

Review

  • 판단해 주세요: Background open and explicit reveal semantics, remote Browser origin isolation, and whether a separate physical SSH host is needed before merge.
  • 조심해서 볼 파일: herdr-core/src/runtime/workspace_control.rs (runtime mutex and pane ownership), herdr-core/src/remote.rs (SSH lifetime), hided/src/pane_auth.rs and hided/src/browser_routes.rs (authority and failure paths), desktop/src/main/browser.ts (native page lifetime).
  • 질문: The existing S2 frame gate fails at the 60 Hz refresh boundary; should its acceptance definition be revisited in a separate performance change?

Evidence

  • 확인한 것: Exact-head deterministic verification passed Cargo tests, Swift tests, and Cargo lint; the unchanged product source passed web E2E 65/65 and desktop E2E 11/11.
  • 확인한 것: GitHub CI passed desktop, repository invariants, Rust, Swift, web, static design, and the required verify check.
  • 확인한 것: The desktop suite used a test-owned SSH server, remote pane, private daemon and native window on the same Mac; screenshots and DOM checks confirmed rendering, Korean input, and cleanup.
  • 확인한 것: A clean 5-tab, 4-split, 9-terminal run measured 150 echoes (median trial p95 0.955 ms); owned processes and socket exited without changing operator Herdr topology.
  • 확인하지 못한 것: The historical S2 frame gate failed: 2,678/7,200 frames exceeded 16.7 ms versus a 1% limit on a 60 Hz display; no frame exceeded 20 ms.
  • 확인하지 못한 것: A second physical SSH host and simultaneous CLI request with keyboard input and tab switching were not directly observed.
  • 확인하지 못한 것: The optional typed-contract structure check still fails at unchanged origin/main code in herdr-core/src/session_sync/replica.rs; required gates passed.

AI tooling: Most implementation work used AI tools; behavior was checked against command results, native captures, and three independent reviews.

Verification record

@yansfil
yansfil merged commit 9bb4bd6 into main Sep 26, 2026
7 checks passed
@yansfil
yansfil deleted the prd/workspace-control-cli branch September 26, 2026 22:22
yansfil added a commit that referenced this pull request Sep 26, 2026
Brings in the pane-scoped Workspace controls and remote Browser routing
(#181). A `--reveal` from a pane goes through the Views intent, so it
opens that Workspace's side panel when it was closed, and an open without
it leaves the panel as it was; the docs say so and a core test pins both.
The Workspace CLI and remote Workspace e2e show their views with the side
panel instead of the removed layout switch.
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.

Workspace 제어 CLI 구현 이어가기 및 검증

1 participant