Skip to content

feat: open Desk's threads, outputs and missions in its lane and pin the lane from its column head - #1915

Merged
yansfil merged 28 commits into
mainfrom
feat/desk-lane
Oct 31, 2026
Merged

yansfil merged 28 commits into
mainfrom
feat/desk-lane

Conversation

@yansfil

@yansfil yansfil commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Related: #1913 (merged; this PR builds on it, base main)

Summary

Desk's right side now works: the rail's ☰ opens the Threads list and one thread in the tool column, and ▣ opens the outputs a thread made in the 보기 column as preview tabs.
Cards, 답하기 and a session chip open their thread there instead of jumping to the Agent tab.
A mission chip opens its map beside the Conductor's thread, and a node switches to that worker's thread.
⌘J goes between a thread and its Agent tab, and back.
The lane's 📌 moves from the rail's bottom to the head of the column at the lane's edge, before ✕, in Desk and in the project lane alike.

Desk is now off until it is turned on in Settings › Desk (Use Desk), since it is still in development.
Off, the sidebar has no ◆ Desk row, a thread's Agent tab has no Desk로, ⌘J is not Hide's and Desk's agent does not run.
Turning it on shows Desk at once, with no restart; turning it off ends Desk's agent and keeps the sessions it started as ordinary sessions, and if the Desk room was in front, the tab used before it comes back.

Settings › Desk, off (the default) On
settings-off settings-on

sidebar-off
With Desk off the sidebar starts at Overview: no ◆ Desk row.

Desk lane: Threads list, 📌 before ✕, foot line 쉬는 중 · 보관됨
Look at the column head: 📌 sits before ✕, and the rail keeps only ☰ (with the asking count) and ▣.

Five screen defects the verify run found in the candidate app are fixed here; each pair is the same scene in an isolated candidate, before (dead645) and after (98ef95a1):
the pinned lane keeps its width instead of growing to 692 and squeezing the chat to 360; a lane over the chat moves the chat's words clear instead of cutting them; the 보기 tabs share their width by the View tab strip's rule instead of overlapping; a planning mission's chip is grey in Desk as in the sidebar; a thread row keeps main · Done whole.

Before After
Pinned Threads before 15 after 15
Over, both columns before 10 after 10

Review

  • 판단해 주세요: a page output is drawn as its still and address with 그 자리에서 열기, not as a live browser (D-40 asked for a live one). The live page belongs to the checkout that opened it; a second live copy in Desk is a follow-up.

  • 판단해 주세요: a mission chip's colour now comes from the web's one rule (missionToneOf), so the core no longer sends tone; Desk's deciding is now "a decision waits while the mission is open", as the sidebar reads it.

  • 판단해 주세요: the project lane's pin is now only drawn while the lane is up (a closed lane has no column head to hold it).

  • 판단해 주세요: ⌘J moves to ⌥⇧J (Alt+Shift+J on Windows and Linux) in a browser tab, marked moved for Chrome, since Chrome keeps Ctrl+Shift+J for DevTools; the desktop app keeps ⌘J and Ctrl+Shift+J (its DevTools key is Ctrl+Shift+I).

  • 판단해 주세요: Desk's switch is kept in the core's Desk store with its other settings, so every window follows it; a store written before this PR reads as off, so someone already using Desk turns it on once.

  • 판단해 주세요: off, the rest of Settings › Desk is dimmed and out of reach with its values kept, as Hide AI's are; Settings › Shortcuts still lists ⌘J for rebinding, while the shortcut sheet drops it.

  • 판단해 주세요: the PRD's "사이드바 ◆ Desk 그룹" is read as the sidebar's ◆ Desk row; a checkout's ◆ Desk tab group Desk made earlier stays as the operator's tab group.

    정한 것 이유
    Desk off keeps the spawns waiting in its queue, starts none and removes none; turned on again, they start in order Off erases nothing Desk made (D-76), and nothing should start while Desk is off (Conductor's decision)
    The desktop app's View menu has no Desk thread ⇄ terminal while Desk is off; the page tells the host the switch (hide:desk) as it tells it the bindings and the language The menu's accelerator answers ⌘J before the page does, so hiding the row in the page alone left the chord working
    openDesk and deskTerminal refuse while Desk is off, whichever menu, host chord or button asks One guard where every path ends
    The shortcut sheet drops Desk's row while off; Settings › Shortcuts keeps it, binding and all Off hides Desk, and a stored binding is the operator's to keep
  • 조심해서 볼 파일: herdr-core/src/runtime/desk.rs - Desk off refuses every desk_* event but desk_settings_set (desk_off) and checks no agent; turning it off ends the process as 다시 시작 does. Also new desk_lane and desk_output_seen events; pin and kept tabs live in Desk's store, 16 kept tabs at most, a 17th refused as desk_tabs_full.

  • 조심해서 볼 파일: herdr-core/src/runtime/desk/jobs.rs - outputs now only is_output Views (B30) with their device, checkout and path; new workers cards for a mission's workers (64 at most), built from the same card index as the job cards in one publish.

  • 조심해서 볼 파일: herdr-core/src/runtime/unseen_views.rs - mark_view_seen split out of settle_seen_views, so looking at an output in Desk reads it as looking at it in its checkout.

  • 조심해서 볼 파일: snapshot wire - desk.lane, desk_jobs.workers and four new fields on an output. This overlaps feat: add Desk, a room whose chosen agent starts and follows sessions through hide #1913's wire; it merges after it.

  • 비용 검토: no new resident work. workers shares the job cards' index (one build a publish) from data already under the lock; an output seen saves no Desk store; an output's bytes are read through the existing file_bytes path only while its tab shows.

  • 원칙: state the core owns (pin, kept tabs) is in the core with a cap and a reported refusal (engineering 4, 15); the window's columns stay in ui.ts (web/CLAUDE.md). Both lanes draw one pin part, LanePinButton (design 5). The lane shows a state only where the operator acts on it: the ☰ count and the ▣ dot (design 13).

Evidence

  • 확인한 것: web/e2e/desk-lane.spec.ts 3 passed on a real Herdr and hided: ☰ list, thread, ‹ back, ☰ closes, ▣ empty; 📌 docks, Escape leaves a pinned lane, the pin survives a reload, unpinned Escape closes and focuses the composer; ⌘J and 터미널로 go to the Agent tab and ⌘J/Desk로 come back with the thread open.
  • 확인한 것: the 11 e2e files that use the project lane's pin ran: 49 passed, 2 failed on the moved pin (button counts, unpin before the lane was up); both fixed and passed.
  • 확인한 것: core cargo nextest desk, lane and unseen_views filters, 81 passed, incl. the pin and kept tabs coming back after a restart, the cap refusal, workers found by their panes, and an output seen in Desk leaving Needs You.
  • 확인한 것: bash scripts/verify-web.sh exit 0 on e5e4c5f (web 2383, desktop 302), cargo lint clean, check-design-contract.mjs passes.
  • 확인한 것: verify's isolated candidate (Electron over CDP, private Herdr and HOME) at 98ef95a1: pinned Threads lane 400 wide with the chat 1052 → 652 (before 692 and 360); both columns over the chat 692 wide with the chat's words left of it; tabs 132 px each with titles ending in an ellipsis; planning chip grey in sidebar, card and Threads row; job-c reads main · Done.
  • 확인한 것 (switch, ac33053): desk-lane.spec.ts 4 passed, the new one on a real Herdr and hided: no ◆ Desk row and no Desk로 on a new install, both appear when Settings › Desk turns on without a restart, and turning it off in the room brings back the focused pane before it with Desk's session still open and no Desk로; the other three turn Desk on first. The shortcut sheet e2e lists 60 rows with no Desk row by default.
  • 확인한 것 (switch): core tests desk_is_off_by_default_and_only_its_switch_reaches_it_while_off (no order reaches the worker while off, on sends a check) and switching_desk_off_ends_its_process_and_keeps_its_conversation (cancel and end sent, the waiting card closed, the conversation kept, hide:desk commands refused); DeskScreen.test covers the sidebar entry and leaving the room.
  • 확인한 것 (review fixes, 9beed04): desktop e2e desk-switch.spec.ts on the real Electron build: no desk_terminal menu item while Desk is off, Command+J once Settings turns it on, gone again when off; menu.test checks the same for macOS and Windows/Linux (Control+Shift+J); an actions.test case sends the host's desk_terminal with a Desk thread in front and openDesk while off and sees no move (it fails without the guard), and checks the host is told on and off; core test a_queued_spawn_waits_while_desk_is_off_and_starts_when_it_is_on_again keeps a queued spawn waiting with a place free while off and starts it when on (it fails without the queue's check).
  • 확인하지 못한 것: the switch was not run in the packaged app; Windows and Linux run the same web and core code and are left to CI's e2e lanes.
  • 확인하지 못한 것: the mission chip and a node click (B34) are covered by unit tests of the lane state, not by an e2e; the stack runs no Conductor.
  • 확인하지 못한 것: an output's diff lines were not captured; the image, document and page stills were drawn in the gallery only.
  • 확인하지 못한 것: the PR mark in a Desk card chip has no hint, so the carryover note about its pointer events needed no change.
추가 증거

Verify defects, the rest of the pairs (before dead645, after 98ef95a1, same scene numbers as the verify run):

Before After
11 tabs before 11 after 11
25 three tabs, mission before 25 after 25
26 mission chip tone before 26 after 26
05 main · Done before 05 after 05

▣ alone: every thread's outputs, 📌 in the 보기 column head
▣ with no tab open lists every thread's outputs; the pin is in the 보기 head when the 보기 column is the edge.

A thread docked beside the chat, 터미널로 ⌘J
A pinned thread: the chat narrows; ⌘J shows beside 터미널로.

An Agent tab of a Desk thread: Desk로 ⌘J
The Agent tab of a Desk thread carries Desk로 with ⌘J.

Project lane: 📌 before ✕ in the Explorer head
Project lane: the pin left the rail's bottom for the Explorer head.

Project lane, documents alone: 📌 before the View area's ✕
Project lane with the documents alone: the pin sits before the View area's ✕.

Verification record
  • base main 09a5eaf, head 9beed04; CI on e7c7947 (the switch before the review fixes) passed, run 41154765303
  • review fixes: verify-web.sh exit 0 (web 2391, desktop 303); verify-cargo.sh lint exit 0; nextest -E 'test(/desk|remote_spawn/)' 64 passed; desktop e2e desk-switch.spec.ts 1 passed; design contract ok
  • the switch: head ac33053
  • switch: bash scripts/verify-web.sh exit 0 on ac33053 (web 2390, desktop 302); verify-cargo.sh lint exit 0; nextest -E 'test(/desk/)' 38 passed; desk-lane.spec.ts 4 passed, s2 shortcut sheet 1 passed; design contract ok
  • bash scripts/verify-web.sh exit 0 on e5e4c5f (pnpm 10.14.0)
  • bash scripts/verify-cargo.sh lint exit 0; nextest -p herdr-core -E 'test(/desk|unseen_views|lane/)' 81 passed
  • e2e: desk-lane.spec.ts 3 passed; 11 pin-using specs 49 passed + 2 fixed and rerun passed

Base automatically changed from feat/desk-host to main October 31, 2026 00:25
@yansfil
yansfil merged commit 1c1fcb1 into main Oct 31, 2026
39 checks passed
@yansfil
yansfil deleted the feat/desk-lane branch October 31, 2026 02:47
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