Repository navigation
feat: show a board as a View that follows the agent's edits - #6
Merged
Merged
Conversation
A board an agent draws with `hide board new` opens as a board View in the caller's checkout, through the same View action every agent open takes: it lands behind the operator, wears its opener's mark and waits in Needs You as To look at with its title. `hide board open` brings it back or forward and, like any open, makes a seen board news again; an edit never does. The View holds only the board id. The board itself rides `rest.boards`, made again only when a board the front Workspace shows, or which boards it shows, changed, and stamped with its own generation, so an edit reaches a board the operator already looked at in place. Where each board's View was is kept in its record, never in workspace-views.json, and put back after a restart.
…w reads The hint that brings a board's View back after a restart was written only while a client read snapshots, so a board opened or closed with no window connected came back wrong after the daemon restarted. It is now read from the layouts each time they are saved, and holds only the area, the openers and the unseen record: its checkout is the board's own. Only a board that moved is drawn again for rest.boards; the others share the last frame's item. views_unavailable now says what happens, and a retitle that fails is logged.
This was referenced Nov 13, 2026
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: mission-6 node
view(boards in Hide itself), after noderecord(#3), nodelook(#2) and nodehide-ai(#5, merged in); nodeskeepandteachbuild on it.Summary
An agent's board had no screen: a Markdown file tab reads its file once, so an edit made after the operator looked never reached them.
A board now opens as a View of its own kind.
hide board newopens it (unless--no-open), it waits in Needs You as볼 것 · <title>until the operator looks, and each laterhide board editis drawn in place, even after they looked, because the View holds only the board's id and draws the board from the snapshot's newrest.boardsfield.hide board openbrings it back or forward and makes a seen board news again; an edit never does. After a restart each open board's View is back in its area with its unseen record, kept in the board's own record soworkspace-views.jsonnever holds a board.No screenshot: captures are kept in the mission's run folder; the fork has no image uploader
What nodes
keepandteachbuild on:BoardCommand::Open { board }andNew { no_open }; the core opens throughAction::OpenBoardandworkspace_control_action, answeringview: {"id","open":true,"unseen"}(or{"open":false,"reason","next_action"}).keep): a board display isDisplayKind::Boardwithboard: Some(id)and the title intitle; replace it in its area at its index withplace_document, andsync_board_viewsdrops its hint once no display shows it.keep):BoardDisplayinweb/src/ViewAreas.tsxpasses nocontrolstoBoardViewyet; feed파일로 남기기and지우기there.keepinherits: an agent'sdeleteleaves the Viewunavailablewithboard_deleted(closing it iskeep's); boards are out ofis_output, so the session record has no board tile yet.teach: the commands to teach arehide board new … --fileandhide board open <id>;hide board helpalready says what each does.Review
board_not_yours.edit,setandlistanswer the View in the board's own checkout, and only that View comes back after a restart; an ancestor's View does not.newkeeps the board when its View cannot open (view_limit,views_unavailable) and says why inview, instead of refusing the board.lookmark a file does; the phone lists no board, so a phone row whose only unseen View is a board showslookand opens the conversation.hide-core/src/runtime/boards.rs- underMutex<Runtime>,refresh_boardswalks the front layout (at most 32 displays) on each snapshot read and draws again only a board that moved;sync_board_viewswalks every layout once per layout save; no I/O, the board folder's save thread writes.hide-core/src/runtime/workspace_view.rs-persist_workspace_viewsnow reads the boards' View hints first, so a View opened or closed while no window reads a frame is kept for a restart.hide-core/src/model/rest.rs- the newboardsrest field rides its own generation, soRetained::capturenever compares it; the stamp must move on every content change (planted below).hide-core/src/runtime/workspace_control.rs-Action::OpenBoardjoins the agent-open path (behind-the-front placement, lane call, opener stamp); it keeps no receipt, since its request id is the core's own.hide-core/src/view_layout.rs,workspace_views.rs- a new display kind;workspace_views::savetakes board displays out so the stored file stays at schema 5 and upstream-readable.hide-core/src/node_migration.rs- threeKEYSrows rewrite the View hint's machine ids on a core move or device rename.Arcs, once per accepted command; per layout save, one walk of every layout for the View hints; a refused or unchanged command publishes nothing.Tests
runtime::tests::boards, 15 new: Needs You with the title, a delegated child, edit vs open and a sibling refused, a parent opening its child's board in the same checkout and from another checkout (a mission's Conductor and its worker's worktree), the cap, a full Workspace, the operator's close, a comment refused, restart with no frame read before it, a View opened or closed with no window reading, the wire field, a deleted board, a mission keeping nothing; oneview_layoutrepair test; one record eviction test extended).web/e2e/board.spec.ts: the agent opens, the person looks, the agent edits, the screen shows the edit. The core tests prove the edit movesrest.boardsand leaves the View seen; only the page proves the View in front draws the new block in place with no reload or reopen, which is what the file-based board failed.boards.test.ts): the store lookup, the state mapping, the wire enums againstcontracts/snapshot-wire-enums.json, and a board's same-content rule.board.spec.ts:162(received "The first text.") and the core wire test; the board open missing fromstamp_control_openerfails four View tests; boards left out ofclosable_viewsfail the cap test;display_statewithout its board arm fails the deleted-board test; the View hint written only when a snapshot is read fails both restart tests; a hint taken from any checkout fails the parent-from-another-checkout test.812795976,runtime::tests::boards::(28 tests) x 10 runs ande2e/board.spec.ts --repeat-each=3(6 of 6), all green; the fork has no repeat job, so there is no link to one.data-agent-status-mark,data-board-blocktext and the front tab's label, and the spec's 120 s budget is unchanged.Evidence
812795976(after mergingmain): exit 0,verify-cargo.sh lintclean, 8540 Rust tests passed and 0 failed, web 319 and desktop 31 unit test files passed (macOS);verifyon the fork passed at the previous head3ce571912.verify-cargo.sh cliandpnpm --dir web build,pnpm --dir web exec playwright test e2e/board.spec.ts --repeat-each=3at812795976: 6 passed on an isolated daemon (macOS); the renderer capture of the board View after the look and the edit is in the mission's run folder.verify-cargo.sh test-scoped -p hide-core --libforruntime::tests::boards::(28),suggestions::(108, after the merge ofmain),unseen_views::(25),view_areas::(52),view_layout::(19),node_migration::(70),missions::(226);-p hided --lib -- board_cli:: cli_contract:: mobile::looks(24); webboards,BoardView,viewLayout(55).check-core-touches-no-machine.py,check-timed-waits.py,check-no-workstation-identity.sh,check-capability-readers-off-lock.sh,check-design-contract.mjs,check-no-attribution.py: clean.verify-web.sh install docsthennode scripts/docs/check-all.mjs --hide target/debug/hide: ok.verifyrun on the fork covers them; nothing here is written for one system.phone_looks) andrest.boardsis not in its projection; no phone run was made.docs/tasks-and-pr-list.mdowns, so no paired pull request is named.board_files_follow_the_core_owner,board_files_follow_a_device_rename).How to run what this pull request was checked with
From the worktree, with no
HIDE_*variable set:The capture comes from the same run with
HIDE_E2E_SCREENSHOT_DIR=<folder>set (screenshot(page, "board-view")).