Repository navigation
chore(composer): remove saved drafts - #988
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
…r the message box (#991) ## Change The strip under the message box (#951) had a place for the branch that nothing filled: `Composer` takes `branch`, and `PaneTerminal` passed only `cwd`. - The strip now names the workspace checkout's branch at its right end. `lib/paneBranch.ts` is a small store the sidebar's `useWorktreeBranches` publishes into and `PaneTerminal` reads (`usePaneBranch`), so the roster stays the only reader of the git inventory and no second poll is added. A detached checkout reads "Detached HEAD". - A linked worktree is marked as one: its folder takes lucide `FolderGit2` and the word Worktree after its name, from `workspace.worktree.is_linked_worktree` in the snapshot. It only names them; nothing in the strip is pressed. A repository with no linked worktree open has no branch there (the roster does not inventory it), and a PC whose roster is folded names the folder alone. This touches the same lines of `Composer.tsx`, the guide, `DESIGN.md`, `src/AGENTS.md` and the language files as #988; whichever merges second needs a rebase. ## Validation - `bun run check fast` on macOS arm64, Bun 1.4.0: generated types, typecheck and build ok. Unit tests: every file passes except `server/voice.test.ts` ("streams deltas and the done text from a split SSE answer"), which fails the same way on `main` a4b2295 on this Mac. `portal`, `plugin`, `install-star` and `ci-setup` tests failed in a run that shared the PC with another full suite; each passes alone here and on `main`. - New unit test `src/lib/paneBranch.test.ts`; one new string, translated in the four language files. - A one-off browser script against the test herdr session, not committed: a repository workspace and a worktree of it, each running Codex. The worktree's strip read `login-form`, Worktree, `feature/login-form`; the repository's read `test-project`, `main`, no mark. - Not run locally: the integration and browser lanes.
Change
The composer's saved drafts (the bookmark button beside Attach, from #951) are removed before they ship. The box already keeps a draft per pane, so the button only added a list of put-aside drafts that lived in one browser and could not be reached again once the pane closed, for a fourth control in the row.
ComposerStash.tsx/.css,lib/promptStash.tsand its test, and the wiring inComposer.tsx(replaceDraft).DESIGN.md,src/AGENTS.mdandTHIRD_PARTY_NOTICES.md, and its popover check inscripts/composer-fit-demo-regression.ts.Drafts someone already saved stay in that browser's storage (
herdr-web-ui:prompt-stash:*) with nothing left to show them.Validation
bun run check faston macOS arm64, Bun 1.4.0: generated types, typecheck and build ok. Unit tests: every file passes exceptserver/voice.test.ts("streams deltas and the done text from a split SSE answer"), which fails the same way onmaina4b2295 on this Mac.portal,plugin,install-starandci-setuptests failed in a run that shared the PC with another full suite; each passes alone here and onmain.bun scripts/composer-fit-demo-regression.ts: every remaining check passes.