Skip to content

Rich rendering (#81): review findings deferred at merge #97

Closed as not planned

Description

@lydakis

#81 merged under the "cut and merge" rule: once a Codex round finds no bug a person would hit in ordinary use, the PR merges and what is left is logged here. Each entry links the review comment and says what kind of finding it is and why it was deferred. Later rounds that skip findings add to this list.

Finding Kind Why deferred
Enforce table bounds before Markdown block parsing hostile input Needs a crafted message (many 256-column tables of one-cell rows). A fix means bounding rows inside markdown-it's table rule, so its own block rule instead of a post-pass.
Measure the highlighter's actual lazy-load lifecycle other (measurement) The bench preloads highlight.js, so the "first time" numbers in docs/APP.md leave out the plain parse and onReady redraw a fresh window pays. Fix: exercise the lazy load in app/bench/render.cjs, or state the boundary in the docs.
Reset the drawn-cache identity when stores change other (memory after a store switch) Only after reattaching to a different store that shows the same agent names; at most 16 MiB of old drawn HTML stays referenced until the shown names change. Fix: clear drawnBy/drawnOn in forgetStore().
Keep history pages below the response-size limit (#98) hostile input A page now names each folder once, so only a page whose turns ran in hundreds of different multi-kilobyte folders nears the 1 MiB event limit. Fix: byte-bound the page in history_nodes and continue from next_from.
Invalidate inherited folders when their source is deleted (#98) other (by design) A fork that cached a source turn's folder before the source was deleted keeps opening links from that folder, which is where the turn ran; only an uncached page falls back to the fork's folder. Fix if wanted: forget a deleted source's turns in fork transcripts.
Filter deleted tracked paths out of the finder (#106, sparse-checkout part) other (rare setup) Unstaged deletions are filtered; skip-worktree entries of a sparse checkout still list, and open as "no such file". Fix: drop S entries via ls-files -t.
Bound the preliminary deleted-path scan (#106) other (rare state) Only a repository with a very large number of tracked files deleted but not staged makes git ls-files --deleted big; it is buffered whole before the bounded listing. Fix: stream it under the same 16 MiB bound, or drop names lazily with ls-files -t.
Verify index entries against the working tree (#106) other (rare state) A tracked symlink that is broken or points to a folder, or a tracked file replaced by a folder, still lists and opens as "no such file" or "is a folder". Fix: stat each listed path, at the cost of one call per file.
Preserve ~/ when searching beside a home-level file (#106) other (rare setup) Only a git repository rooted at the home folder, with a file like ~/.gitconfig open: ⌘P from it asks for ~ and is refused. Fix: keep the parent as ~/ in searchFolder().
Parse untracked records without guessing staged format (#106) hostile input Only a new file whose name starts with six digits and a space is misread as an index record. Fix: list new files and index entries with two git calls.
Preserve newlines in repository root paths (#106) hostile input Only a repository whose folder path holds a newline splits the rev-parse answer wrongly. Fix: ask for --show-toplevel and --show-cdup in two calls.
Forward the file shortcut out of HTML previews (#106) other (focus edge) With the keyboard inside a clicked HTML preview, ⌘P (like ⌘K and the other window keys) does not reach the window; Escape is the one key the preview bridge forwards. Fix: forward ⌘K/⌘P through the bridge for the frame's pane.
Cancel listings when closing the finder (#106) other (performance under repeated open/close) Closing the finder lets go of the listing but not of a git still running; ⌘P, Escape, ⌘P on a slow repository runs git again while the first finishes (each bounded at 100,000 paths / 16 MiB). Fix: keep the pending listing per folder and reuse it until it settles.
Show staged and unstaged deltas separately (#117) other (rare state) Only an MM file whose folder copy was put back to HEAD after staging shows an empty diff, since the Git tab diffs the folder against the last commit. Fix: show diff --cached and diff as two parts when both letters are set.
Decode quoted paths in diff headers (#117) other (rare names) A file whose name holds a tab, newline, quote or backslash is C-quoted in +++ headers, so a commit's file label and a note on it name the quoted form. Fix: unquote git's C-style path in diffRows.
Match symlinked worktrees by filesystem identity (#117) other (rare setup) Agent folders are canonical, so this needs a folder reached through a symlink; the current worktree is then not marked and Enter can open a second tab for it. Fix: have git_view return which worktree is the current one.
Skip exhaustive untracked scans on automatic refreshes (#117) other (performance in an unusual repo) Only a large untracked directory that is not ignored makes status --untracked-files=all walk every file before the 2,000-row bound applies, on each refresh after an agent's step. Fix: list such directories with normal and expand one lazily when it is chosen.
Refuse blocking targets for untracked symlinks (#117) hostile input Only an untracked symlink to a FIFO or similar makes diff --no-index block forever, leaving a git child and a worker. Fix: lstat untracked paths and refuse non-regular targets, or give capture a timeout.
Drain git stderr while reading stdout (#117) crash/hang (rare) Only git writing over a pipe's worth of diagnostics before closing stdout deadlocks capture. Fix: read stderr on its own thread, bounded.
Surface git log failures (#117) other (corrupt repo) Only a repository with a missing history object shows "No commits yet" instead of git's error. Fix: treat a failed log as an error unless status says the branch is unborn.
Keep note anchors stable when duplicate lines shift (#117) other (edge case) Only when an agent adds or removes a copy of the noted line above it between reads does a sent note move to another copy. Fix: anchor by nearest position as noteRow does and rebind on each read.
Report worktrees past the 200 cap (#117) other (rare setup) Only a repository with over 200 linked worktrees drops later ones silently, and a tab for one of those marks none as current. Fix: return a more flag and always include the current worktree.
Open changed submodules as repositories (#117) other (rare setup) Only a submodule whose commit changed ( M sub) opens as a file tab that fails to read. Fix: have git_view mark gitlinks and open their Git tab instead.
Count blank context lines under suppressBlankEmpty (#117) other (rare config) Only with diff.suppressBlankEmpty=true does an empty context line lose its space, so later line numbers run low. Fix: pass -c diff.suppressBlankEmpty=false in run.

Generated by Claude Code

Activity

  1. lydakis commented on Oct 25, 2026

    @lydakis
    OwnerAuthor

    Deferred from #140 (Pele in place of Mermaid.js):

    Finding Kind Why deferred
    Bound automatic diagram rendering (#140) hostile input Needs a crafted reply: thousands of distinct diagrams that each lay out just under the 3 s timeout but produce tiny SVGs, so the 2M-character drawn bound never trips. The layout runs in the worker, so the window stays responsive, but the queue keeps a core busy, and a clicked chart waits behind it. Fix: cap the number of automatic draws per hydrate, or their total worker time, and leave the rest click-to-draw.

    Generated by Claude Code

  2. lydakis commented on Oct 31, 2026

    @lydakis
    OwnerAuthor

    Closing as part of a backlog cleanup. Every entry except one is about the deleted desktop app's renderer, finder and Git tab. The one that still applies, history_nodes pages bounded only by count, now has its own issue: #472.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions