Repository navigation
App: Home, tabs, and a list one level below what is open - #86
Conversation
The libraries the next commit draws messages with, unmodified apart from dropping source-map comments and wrapping vega-interpreter's ES module to read vega-util from the vega global, so all of Vega is one lazily loaded file. Versions and licenses in LICENSES.txt: marked 18.0.13, highlight.js 11.12.0 (common languages), Mermaid 11.17.2, Vega 6.4.0, Vega-Lite 6.4.3, vega-interpreter 2.3.2. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
Messages draw as Markdown with highlighted code, Mermaid diagrams, Vega-Lite charts (static SVG, data from the spec only) and ```html blocks as previews in a sandboxed frame with no network. Streaming draws each finished block once; the block still being written stays plain text. A message is parsed once and its HTML kept with the item. A path in a read, write or edit step, or a message's link to a path, opens that file in the pane beside, drawn by its kind. The core gains read_file (first 4 MiB, this machine only) and open_link (http, https and mailto in the default browser). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
An ```html block in a message now opens as code and runs only when its preview is clicked: a preview's scripts share the window's thread, so a page a model wrote must not run merely by appearing. Hiding it removes the frame. Previews someone ran run again when the pane is redrawn. Diagrams and charts draw as they come near the screen instead of all at once, and a reader below one that draws keeps their place. The drawn-SVG cache is bounded by bytes as well as count, and keys a chart by width. Drawing a message past the chat's decoded-byte bound now folds the oldest bodies. CSV files keep quoted fields whole. An open file closes with the agent or store it came from. read_file reads regular files only, so a FIFO or device cannot hold a blocking thread. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
A chart in a message now opens as its spec and draws with a click, like an HTML preview: Vega runs on the window's thread, and a short spec (a sequence transform to a billion, a billion ticks) can ask for more than it can draw. A chart drawn once shows again from the cache when its pane is redrawn, and a chart file someone opens draws at once. Mermaid keeps drawing near view; it bounds its own work. A read, write or edit step keeps the path it named, whole, beside its shortened summary, so its link and the reload after a write use the real path. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
The list moves to the right and holds one level below the open agent: Home's projects and loose bots, a project's threads and swarms, a thread's helpers, a swarm's agents. A click on a row looks in beside with its own composer; a double-click or "Open as tab" opens a tab. Tabs float on a bar after Home; crumbs in the head go back up, and the window title says where it is. ⌘K opens what it finds as a tab. Tabs are remembered per store; a deleted agent's tab goes up a level. Project folding and swap are gone. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LUfmHatoC6WnM3AUVJ4JA8
Codex Review SummaryThis 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. |
Mermaid fetches a node's `img:` URL, and a `url()` in its theme CSS, while it draws, so a diagram in a reply could make a request a model chose. The window's policy now takes images, fonts, media and stylesheets only from the app, data: and blob:; such a diagram fails with the reason in its head and nothing is fetched. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 49c1ca6ee7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
An ```svg block in a message now opens as code and draws with a click, like HTML and charts: its filters and animations run on the window's thread. A data: SVG image in Markdown shows as its text. A preview is no longer remembered by its source, which ran every block with the same source after a redraw and kept their text alive; running is asked of one block, once, and a redraw shows it as code again. CSV and TSV tables keep at most 256 columns, so a line of separators costs no more than a wide table. A chat covered by a file beside is off screen: its finished turn is marked unseen, and seen once the file closes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
A link the system opener refuses (no xdg-open, a failed open) now shows why in a toast instead of doing nothing. The streaming scan remembers how far an unfinished line was searched, so a long line arriving in pieces is searched once. A diagram queued behind the same source takes the first one's result, and a drawing larger than the whole cache budget is shown but not kept. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
Mermaid lays out on the window's thread and its size limits do not bound layout work: a 29-byte block-beta diagram with space:500000 holds the window. Diagrams in a message now open as source like charts, html and svg, and draw on a click; files opened beside the chat still draw at once. The scroll watcher is gone. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
… #section Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
…ck the render bench A raster data: image can decode far larger than its bytes and an animated one takes CPU while shown, so it now waits for a click like every other heavy block. A relative image target becomes a file link. The rendering benchmark behind docs/APP.md's numbers is now app/bench/render.cjs. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
A Mermaid click link is an SVG <a xlink:href> outside .md's anchor guard, so clicking it navigated the window to the model's URL. Every anchor in drawn content now opens only through open_link, or not at all. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
…nks; ~name is the folder's A GFM row is padded to its header's width, so a wide header and short rows could ask the window for millions of cells; a table past 256 columns or 10,000 cells now shows as its source. The middle-click guard covers every anchor in drawn content, xlink:href included. Only ~/ means home when resolving a linked path. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
…only code A list item or an emphasis is an element from a few bytes, so a message that would draw past 100,000 tags (or runs past 50,000 lines, unparsed) shows as its text. When the highlighter loads, only messages whose code was drawn plain while it loaded are parsed again. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
…' into claude/project-thread-060xsk # Conflicts: # app/tests/state.test.cjs # app/ui/app.js
A 4 MiB Markdown file of many fences just under 64 KiB each was highlighted block by block before the tag bound could fall back. Highlighting now stops at 256 KiB of code per message or file; later blocks are plain. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
… helpers listed, tabs keep identity - From Home, Down opens the first agent and Up the last; the arrows read the rail's cached tree instead of rebuilding it per key. - A focused tab opens on Enter or Space; its close button keeps its own keys. - The second click of a double-click (event.detail === 2) opens the tab, so a slower double-click that lands on a row the look redrew still opens it. The separate dblclick handler is gone. - An agent of a swarm, left out of the tree, lists what it made from who made whom, with counts one further down. - Saved tabs and the agent beside carry the bot id, and restore drops one whose name now belongs to another bot. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LUfmHatoC6WnM3AUVJ4JA8
|
@codex review Generated by Claude Code |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 860e0d7498
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Each finished block of a streaming reply was checked against the line and tag bounds alone, so many blocks under them could add up past them. The blocks now share one budget, and past it the rest streams as plain text. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
…s as observed A %3A in a linked name is now a colon in the file's name rather than a line suffix or a URI scheme. docs/APP.md says what Chromium showed for a chart's href (no link drawn) and that any drawn link uses the guarded opener. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
…ross a stream, cap a table's cells; bench the old renderer with its own stylesheet Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 213def1060
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…once it loads; a chart asked for redraws at a new width; consent remembered for the last 1,024 blocks; docs say what draws unasked Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
…els, the finder and the arrows Rows, Home, tabs, crumbs, the finder, keys and the app's own opens all go through go(name, how), which first cancels a row's pending look, so a later click or key always wins. A double-click opens the tab from where the window was before its first click, which covers a look beside and a swarm opened in place alike. The tree now holds every bot, a swarm's agents and what they made under its row, and is cached once per fleet shape; the list's levels, the finder and the arrow keys read it. openOnly, openTab, closeTab, openBeside, full, closeSide, rowTwice, madeBy and countMade are gone, and the swarm and hidden-subtree special cases with them. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LUfmHatoC6WnM3AUVJ4JA8
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4c5a80b6de
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Navigation redesign in 4c5a80b
@codex review Generated by Claude Code |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4c5a80b6de
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
…hlighting arriving leaves a file beside alone Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
… and a redraw; a failed one asks again; the stream bench lays out every delta A diagram or chart's id is now its turn or file plus a digest of its source, so the streamed draft, the committed message and a redraw for highlighting share it. A render that fails forgets its consent. The stream bench reads and keeps the reader's place on every delta, as the app's render does, and hydrates what each delta added. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
…' into claude/project-thread-060xsk # Conflicts: # app/tests/state.test.cjs
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e725e14ed4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A tab is saved with its bot's id and the id of the level above it, so a tab whose agent was deleted while the app was closed comes back as its maker. A live deletion's move up is saved at once. Any move clears a row's pending look, so a later second click cannot open the old row. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LUfmHatoC6WnM3AUVJ4JA8
|
You have reached your Codex usage limits for security reviews. Please try again later. |
|
@codex review Generated by Claude Code |
|
You have reached your Codex usage limits for security reviews. Please try again later. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
deab543 to
bff8799
Compare
Merged against the rich-rendering snapshot this branch last took, so main's final rendering code wins where H1 did not change it (marked.js stays removed, a link's context menu stays guarded). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LUfmHatoC6WnM3AUVJ4JA8
|
You have reached your Codex usage limits for security reviews. Please try again later. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c5736a10f7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // - 'beside': beside what is open, with its own composer; the one already beside closes instead. | ||
| // - 'close': its tab closes, and an open one hands the window to the tab before it, or Home. | ||
| async function go(name, how = 'here') { | ||
| clearTimeout(rowLook.timer); rowLook.who = rowLook.before = null; |
There was a problem hiding this comment.
Cancel the pending row look when opening the finder
Keeping row-look cancellation solely inside go() misses controls that open an overlay without navigating. If a user clicks a row and presses Ctrl/⌘-K within 230 ms, openPicker() leaves the timer armed; it then opens the old row beside and loads its transcript while the user is searching, and cancelling the finder reveals that unexpected pane. Cancel rowLook when the finder (and similar keyboard-opened overlays) claims the interaction, rather than only when a later go() occurs.
Useful? React with 👍 / 👎.
| const tab = e.target.closest?.('[data-tab]'); | ||
| if (tab && (k === 'Enter' || k === ' ') && !e.target.closest('[data-act]')) { await go(tab.dataset.tab); e.preventDefault(); return; } |
There was a problem hiding this comment.
Preserve Space activation on tab close buttons
When focus is on a tab's × button and the user presses Space, this exclusion only skips the custom tab activation; the event then falls through to the printable-key fallback at line 2809, which moves focus to the main textarea during keydown. Native button activation for Space occurs on keyup, now delivered to the textarea, so the close button does not reliably click. Return after recognizing the nested action control, or otherwise avoid redirecting focus for interactive elements.
Useful? React with 👍 / 👎.
Before: the left sidebar showed the whole tree, with each project's tasks folded under it. A click on a row replaced the main pane, and ⤢ swapped a task opened beside into full view.
After: a tab bar with Home and floating tabs runs along the top. The list moves to the right and shows one level below whatever is open:
A click on a row looks in beside, with its own composer. A double-click, or "Open as tab" in the row's ⋯ menu, opens a tab. Crumbs in the head (Home › project › thread) go back up, and the window title shows the same path. ⌘K opens whatever it finds as a tab.
This is H1 from the shipping plan, built from the v21–v23 prototype. Rich rendering (#81) has landed, so this now targets main; main was merged in at c5736a1.
How
S.ui.tabsin the existing per-store saved state. A deleted agent's tab moves up to what made it.Performance
Headless Chromium on one synthetic fleet: 40 projects × 25 threads, with one thread per project holding 120 rounds. Five page loads per build. Main is 169cf40; R1 is the rich rendering branch this was measured on.
Ready is faster mostly because Home draws 40 rows where the tree drew a 300-row window. The macOS webview was not measured.
Checks
node --test app/tests/state.test.cjs: 187 pass after the main merge.cargo fmt --check: clean.cargo clippy --workspace --exclude agent-app --all-targets -D warnings: clean.cargo test --workspace --exclude agent-app: green.Not done here: an overlay title bar on macOS. The crumbs live in the pane head and in the native window title instead, because drawing into the title bar needs a check on a Mac.
🤖 Generated with Claude Code