Repository navigation
Per-thread scratch notes: notes field, header editor, sidebar preview (#194) - #235
Merged
Merged
Conversation
added 4 commits
August 17, 2026 13:41
… Spaces: named groups for organizing projects in the sidebar
Add a per-thread scratch pad on the data contract and persist it through the existing JSON store. setNotes trims, caps at 2000, never bumps updatedAt, and is matched by thread search.
Scratch notes live next to the thread: a header Notes toggle opens a textarea (save on blur, Escape reverts), and the sidebar card shows a single-line preview. Opening and closing unchanged does not write.
A programmatic select (sidebar card / next-thread) never blurs the notes textarea, so the dirty draft was discarded. Flush it onto the outgoing thread id before reseeding the panel.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Closes #194.
When you supervise many threads, the reason a thread is parked ("merge after #42 lands", "why I snoozed this") lives in your head or in some other app. This adds a plain scratch pad to the thread itself.
notesis user-facing only — the agent never reads it, so it stays distinct from shared agent memory, which is agent-facing.What changed
Contract + main process (
7595bdd)ThreadInfo.notes: string(empty when unset) andTHREAD_NOTES_MAX = 2000insrc/shared/ipc.ts.threads:setNotesthroughservices.setNotes→electron/ipc.js→preload.js, plussrc/wireClient.tsfor the web bridge. Trims, caps at 2000, empty string clears, never bumpsupdatedAt— same rules assetMuted/setPinned.migrateThreaddefaultsnotesto"", so threads already on disk upgrade cleanly.store.searchThreadsmatches notes text alongside titles and messages (checked before the message scan, since it is cheap). Mirrored in thedevCoderfake search.src/devCoder.tsandtest/support/fakeCoder.ts.UI (
4049a00)useCoder.setNotesmirrorsrenameThreadexactly (optimistic list + detail patch, same error scope).Draft-loss fix (
e083210)onBlurnever fired and a typed draft was silently discarded on the way out. The thread-change effect now flushes a dirty draft to the thread it was typed on, which is whyonSetNotescarries a thread id rather than implying the selected thread.Tests
New
electron/test/notes.test.js(trim, cap, clear, unknown thread,updatedAtuntouched), a notes-only search hit inelectron/test/search.test.js,setNotesadded to theipc-seamhandler list, andtest/threadNotes.test.tsxcovering open/seed, save-on-blur, Escape-without-save, the sidebar preview, and the thread-switch flush asserting the old thread id.typecheckclean; renderer 745/745, electron 875/876, core 38/38, memory 122/122. The single electron failure is pre-existing and unrelated —web-integration.test.jsreconnect backoff asserts 1s and gets 120000, reproducing onmainataa4d1caand when run alone. Filed separately as #233.Not built (deliberately)
Markdown rendering, a notes modal, notes on the Kanban/Activity views, autosave-on-timer, notes history, and any agent-facing use of notes. One string on the thread in the existing store.