Repository navigation
Remote lane B record with no digest reads its listing's state - #556
Merged
Merged
Conversation
…its listing's state On master (ed321a5) every glyph reads Idle, the collapsed project carries no waiting or working count, a busy record ranks by recency behind a later idle one, and its age is not "now": no digest says another machine's lane B session's state. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ting's state Another machine's lane B record has no digest (no lane B module emits one), so the sidebar row of a session open in a tab here read Idle while its listing said busy, and it was left out of the working tier, the rollups and the "now" age. One place now decides it (src/renderer/src/sessions/listed-state.ts): with no digest and a lane B listing at the address, the listing's word says the state. glyphFor takes the listing and draws the word as the listed row does (open items first, the holder and contested glyphs before it, an unread idle record "Idle, unread"); priorityRank ranks a busy one among the working by its last activity; the project's working and waiting counts, the row's age and the Overview card's activity line read the same. Every record-glyph caller passes its listing: the sidebar row, the hover card, the Overview card, the palette, the resume chooser's row and preview, the tab, the side thread chip and the comment card's thread glyph. Tests at each reader; e2e:remote restates B's session busy mid-turn and reads Working on A's row (the scene's list() takes the state word). The tracker row "a busy remote session's rank" closes; one residue row: the Overview board's eligibility still reads a digest alone. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… glyph.ts and overview/derive.ts import Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
What was wrong
A session on another machine that has a record here (lane B, opened in a tab) has no digest: no lane B module emits one. So its sidebar row read Idle even while its listing (
sminos list --org) said busy. It was also left out of the working tier of the ranking, the project's ◐/● rollups and the "now" age. This is the record path; the listed-row path, which applies with no tab open, already read the listing.Red first (4bbe2a7,
sidebar/Sidebar.test.tsx): on master, each state's record row read Idle, the collapsed project showed no waiting or working count, a busy record ranked by recency behind a later idle one, and its age read "1w" instead of "now".Change
src/renderer/src/sessions/listed-state.tsholds it: a record with no digest whose listing is lane B takes its state from the listing's word (listedStateOf).isWorkingis the working predicate everything reads.glyphFor(record, digest, pending, listed?)draws that word as the listed row draws it (the word-to-glyph table is now shared withlistedGlyph). Open items, holder glyphs and contested glyphs still come first, and an unread record whose listing says idle reads "Idle, unread".priorityRankputs a busy record in the working tier, keyed by its last activity (sortSessions,projectSessionsandprojectItemstakelistings). The project rollups count a record by its listing's waiting/busy,sessionAgereads "now" while busy, andcardActivitysays the listing's word.tsconfig.node.jsonlists the new module, becauseglyph.tsis in that project.Tests
e2e:remotegains one assertion. Mid-turn, with B's session open in A's tab, the scene restates the session busy (as sminos's observer would) and A's row must read Working; at the turn's end it restates idle and the row must read Idle. This has not been run yet; it needs the Mac runner.Tracker
Removes the 2026-11-05 row "P5 O7 M10 (a busy remote session's rank)". Adds one row for what is left: the Overview board's eligibility still reads a digest only, so a read, busy remote record with nothing waiting gets no card.
Class 1a gate: run 42833493007, green.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)