Repository navigation
Conversation
…and the docs brought up to date Shell takes a page's own sections (sections prop) and lists them in the sidebar under the pages: Settings' Account, General, Appearance, Models and Agents live there now instead of a second nav inside the page. /docs renders the repo's README and docs/*.md with marked on the server, one section per file, with each file's headings as chips (folded past 16), links between docs rewritten to their sections and the app's icon served by the app; the packaged app copies the Markdown into the bundle so the page works there too. The sidebar's foot link goes to GitHub. DEMO.md no longer mentions the old Connect step or the All applications menu; LEARNING.md's map covers build plans, test plans, the narrator, layers, MCP and the Mac app.
Next's output file tracing followed the docs page's read of path.join(process.cwd(), doc.file) and copied the whole working folder into the standalone: the git history, release/ with the last dmg and the private CLAUDE.local.md, and the dmg went from 135 MB to 555 MB. The read now starts from docsRoot(), a lookup the bundler can't fold and the tracer can't evaluate (a plain x || process.cwd() was folded back to process.cwd()), so it traces nothing and pack.cjs copies the Markdown itself. Reads whose folder the tracer can't see had been tracing **/<file> globs over the repo all along, which put the copies of data/ inside release/, an empty .git and the old .stackwise/ into every dmg so far. In standalone mode next.config.ts now excludes those folders from every trace, and pack.cjs fails the build if .git or release/ turn up in the standalone. Verified from a copy of the app outside the repo: 45 MB of standalone, the pages served, no env files.
Learn and the docs were two pages with two structures for the same job. Now /docs is one document in two sidebar groups. Learn comes first, from data/learn.json: Start here (the layers), Parts of an app (one entry per part, with its chips for how to choose, common mistakes, key terms and further reading) and the Glossary (folded contents, 50 terms); then the project's docs as before. Every section has the same shape: title, the file it comes from, its headings as chips, the body. Shell takes more than one group of sections. The Learn page is gone; /learn redirects to /docs and the hash (#part-<slot>, #term-<id>) comes along, so the canvas's zone labels, the dock's Learn button, Learn more on a part and the Mac app's Help menu all land where they did. Help, Documentation opens the page in the app now, with the GitHub link beside it.
…out of the dock, docs text at the app's size In the Mac app the 48px drag strip across the top of the window sat above the chat pane's header and took the hide button's clicks. It takes no clicks now; the drag region still comes from its box, with the no-drag controls cut out of it. The model bubble names the model in normal text, with a note for the rest: through Claude Code, opus[1m] reads as Opus 5.5 with 1M beside it. describeAgentModel reads Claude Code's setting (an alias or an id, [1m] for the 1M window, opusplan), the menu lists every Claude model StackWise knows and the context window, and a pick is written back the same way. Tests cover the parser. Learn leaves the dock; the bar's nav gains a Documentation button beside Projects and Settings. The docs page's text matches the other pages (15px body, smaller leads and headings) and keeps its size at every width. The docs and the learn content lose the turns of phrase on Wikipedia's list of signs of AI writing: bold labels on list items, "not just", "unlocking", "certainly".
Bold labels at the start of every bullet are on Wikipedia's list of signs of AI writing; the labels stay, as plain text. The decisions file is Michael's record and keeps his formatting.
… size The chat pane docks on the right edge of the window now. The bar, the canvas and the planning sheet end at its edge, the dock centers in what's left, Details opens beside it, its resize handle is on its left edge and its hide glyph points right. In the Mac app the traffic lights stay in the bar, so the pane's header is only the plan's name and its two buttons. Projects, Settings and Documentation were set in a larger type than the canvas. The shell has a 14px base now, with 24px page titles, a 224px sidebar and smaller cards, chips and headings in the docs, so every page reads at the same size.
The pane docks on the left again, the way it was asked for. Its header is now a sidebar's: the hide toggle first, right after the traffic lights in the Mac app, then New chat at the right, and no title, since the composer already says which plan and part the conversation is about. The bar beside it keeps the StackWise mark and starts with the plan switcher.
… chats In full screen macOS hides the traffic lights, but the bars kept the room for them, so the chat pane's controls and the sidebar pages started far from the edge. main.cjs now tells the page when the window enters or leaves full screen and preload.cjs sets data-fullscreen, which drops those insets (display-mode: fullscreen is the fallback). Checked on the real window both ways. The toolbar reads left to right: the mark, the plan, the page buttons and the cost and warnings, with only the AI pill, Ask and Export at the right. The chat pane's header gains back and forward after the hide toggle, and Past chats beside New chat: New chat keeps the conversation it replaces (20 at most, titled by its first message, in this browser like the chat itself), and Past chats reopens one, putting the current one away the same way. Store tests cover keeping, reopening, forgetting and older saved plans.
…ompacted past chats Agent replies render through a small formatter (chatText.ts): headings, lists, code fences, bold and code, built as elements, never HTML. A reply over about 130 words or 12 lines folds behind Show more. The "To Claude Code, picked up" line is gone; a message waiting to be picked up is a little quieter and says so on hover. Paired agents are told to write for the pane (REPLY_STYLE): the answer in a sentence or two, at most four one-sentence bullets, under 120 words, no headings, bold labels or em dashes. It travels in the pair prompt, send_message's description and every message wait_for_message returns, so a session started earlier picks it up on its next message. Dry runs of the real agent on four questions: the broad "what is this project" question went from 479 words to 132 with the first wording and 125 with this one, and the bold bullet labels went from 14 of 18 bullets to none. New chat now empties the pane: it starts the chat's clock again, so agents' earlier messages stay out of it, while the shared plan's log is untouched. The old chat keeps copies of what agents said in it, so reopening it reads the same. The newest three past chats stay whole; older ones compact to their questions and the first sentence of each answer, and reopen as that summary.
Every tool call an agent made showed as its own card: one question gave three identical "Compared options: Compared Inngest..." cards and a "Tried Inngest (not applied)". Now only a change to the plan or the project (update_plan, a merged plan file, files written) gets a card. A run of lookups folds into one line, each summary once: "Checked StackWise: compared Inngest, Temporal, Trigger.dev and Upstash QStash for background jobs; tried Inngest in the plan without changing it." The server's summaries say it in plain words too: names joined with "and", the part in lower case, "in the plan without changing it" in place of "(not applied)", and a cost estimate without the whole stack spelled out. Older entries are reworded as they're shown.
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 this does
Shelltakes asectionsprop and lists a page's own sections under the pages (Account, General, Appearance, Models, Agents). The second nav inside Settings is gone, so the sidebar is the one place to move around./docs, in the sidebar next to Learn). It renders the repo's README anddocs/*.mdwithmarkedon the server, one section per file, with the file's headings as chips (folded behind a line past 16, so the 45 decisions don't flood the page), links between docs rewritten to their sections, and the app's own icon served by the app. The Mac app copies the Markdown into the bundle so the page works offline.docs/DECISIONS.mdis untouched.Checks
pnpm typecheck,pnpm lint: clean.pnpm test: 337 passing./settings#modelsshows the sections in the sidebar and switching updates the hash and title;/docsrenders all six documents with no broken image or link, and/docs#decisionslands on its section.Base is
claude/chat-pane-flow(PR #7), which sits onclaude/v1-final(PR #6): merge in order.🤖 Generated with Claude Code