Repository navigation
feat: open Desk's threads, outputs and missions in its lane and pin the lane from its column head - #1915
Merged
Conversation
…tputs a place to read from
…ove the lane pin beside the column's close
…e and Desk로 on any Desk thread pane
…'s gallery scenes
…ve Desk's store only when it changed
…g a closed View seen
…chat's words clear of a lane over it
…ep a thread line's state words whole
…der hosts working without the Desk report
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
◆ Deskrow, a thread's Agent tab has noDesk로, ⌘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.
With Desk off the sidebar starts at Overview: no
◆ Deskrow.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 · Donewhole.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 sendstone; Desk'sdecidingis 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
◆ Deskrow; a checkout's◆ Desktab group Desk made earlier stays as the operator's tab group.Desk thread ⇄ terminalwhile Desk is off; the page tells the host the switch (hide:desk) as it tells it the bindings and the languageopenDeskanddeskTerminalrefuse while Desk is off, whichever menu, host chord or button asks조심해서 볼 파일:
herdr-core/src/runtime/desk.rs- Desk off refuses everydesk_*event butdesk_settings_set(desk_off) and checks no agent; turning it off ends the process as다시 시작does. Also newdesk_laneanddesk_output_seenevents; pin and kept tabs live in Desk's store, 16 kept tabs at most, a 17th refused asdesk_tabs_full.조심해서 볼 파일:
herdr-core/src/runtime/desk/jobs.rs- outputs now onlyis_outputViews (B30) with their device, checkout and path; newworkerscards 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_seensplit out ofsettle_seen_views, so looking at an output in Desk reads it as looking at it in its checkout.조심해서 볼 파일: snapshot wire -
desk.lane,desk_jobs.workersand 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.
workersshares 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 existingfile_bytespath 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.ts3 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.cargo nextestdesk, 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.shexit 0 on e5e4c5f (web 2383, desktop 302),cargolint clean,check-design-contract.mjspasses.main · Done.desk-lane.spec.ts4 passed, the new one on a real Herdr and hided: no◆ Deskrow and noDesk로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 noDesk로; the other three turn Desk on first. The shortcut sheet e2e lists 60 rows with no Desk row by default.desk_is_off_by_default_and_only_its_switch_reaches_it_while_off(no order reaches the worker while off, on sends a check) andswitching_desk_off_ends_its_process_and_keeps_its_conversation(cancel and end sent, the waiting card closed, the conversation kept,hide:deskcommands refused);DeskScreen.testcovers the sidebar entry and leaving the room.desk-switch.spec.tson the real Electron build: nodesk_terminalmenu item while Desk is off,Command+Jonce Settings turns it on, gone again when off;menu.testchecks the same for macOS and Windows/Linux (Control+Shift+J); anactions.testcase sends the host'sdesk_terminalwith a Desk thread in front andopenDeskwhile off and sees no move (it fails without the guard), and checks the host is told on and off; core testa_queued_spawn_waits_while_desk_is_off_and_starts_when_it_is_on_againkeeps a queued spawn waiting with a place free while off and starts it when on (it fails without the queue's check).추가 증거
Verify defects, the rest of the pairs (before dead645, after 98ef95a1, same scene numbers as the verify run):
main · Done▣ with no tab open lists every thread's outputs; the pin is in the 보기 head when the 보기 column is the edge.
A pinned thread: the chat narrows; ⌘J shows beside
터미널로.The Agent tab of a Desk thread carries
Desk로with ⌘J.Project lane: the pin left the rail's bottom for the Explorer head.
Project lane with the documents alone: the pin sits before the View area's ✕.
Verification record
main09a5eaf, head 9beed04; CI on e7c7947 (the switch before the review fixes) passed, run 41154765303verify-web.shexit 0 (web 2391, desktop 303);verify-cargo.sh lintexit 0;nextest -E 'test(/desk|remote_spawn/)'64 passed; desktop e2edesk-switch.spec.ts1 passed; design contract okbash scripts/verify-web.shexit 0 on ac33053 (web 2390, desktop 302);verify-cargo.sh lintexit 0;nextest -E 'test(/desk/)'38 passed;desk-lane.spec.ts4 passed, s2 shortcut sheet 1 passed; design contract okbash scripts/verify-web.shexit 0 on e5e4c5f (pnpm 10.14.0)bash scripts/verify-cargo.sh lintexit 0;nextest -p herdr-core -E 'test(/desk|unseen_views|lane/)'81 passeddesk-lane.spec.ts3 passed; 11 pin-using specs 49 passed + 2 fixed and rerun passed