Skip to content

chore(composer): remove saved drafts - #988

Merged
devswha merged 1 commit into
mainfrom
chore/remove-saved-drafts
Oct 13, 2026
Merged

devswha merged 1 commit into
mainfrom
chore/remove-saved-drafts

Conversation

@devswha

@devswha devswha commented Oct 13, 2026

Copy link
Copy Markdown
Owner

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.

  • Deleted ComposerStash.tsx / .css, lib/promptStash.ts and its test, and the wiring in Composer.tsx (replaceDraft).
  • Dropped its ten strings from the four language files, its lines in the guide, DESIGN.md, src/AGENTS.md and THIRD_PARTY_NOTICES.md, and its popover check in scripts/composer-fit-demo-regression.ts.
  • The feature was never released, so the two unreleased fragments that announced it lose that sentence instead of gaining a "Removed" entry.

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 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.
  • bun scripts/composer-fit-demo-regression.ts: every remaining check passes.
  • Not run locally: the integration and browser lanes.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5ca1c0e3-6493-4173-85a2-9e2a9cb9fbfb
📥 Commits

Reviewing files that changed from the base of the PR and between a4b2295 and 8fe9649.

📒 Files selected for processing: 17
  • DESIGN.md
  • THIRD_PARTY_NOTICES.md
  • changelog.d/docs-t3-features.md
  • changelog.d/t3code-ports-and-chat-rendering.md
  • docs/guide.md
  • scripts/composer-fit-demo-regression.ts
  • src/AGENTS.md
  • src/components/Composer.css
  • src/components/Composer.tsx
  • src/components/ComposerStash.css
  • src/components/ComposerStash.tsx
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.tr.ts
  • src/lib/i18n.zh.ts
  • src/lib/promptStash.test.ts
  • src/lib/promptStash.ts
💤 Files with no reviewable changes: 12
  • THIRD_PARTY_NOTICES.md
  • src/lib/i18n.ko.ts
  • src/components/ComposerStash.tsx
  • src/components/ComposerStash.css
  • src/lib/i18n.ja.ts
  • src/lib/i18n.tr.ts
  • src/lib/i18n.zh.ts
  • changelog.d/t3code-ports-and-chat-rendering.md
  • src/lib/promptStash.test.ts
  • src/lib/promptStash.ts
  • scripts/composer-fit-demo-regression.ts
  • src/components/Composer.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

📝 Summary

Summary by CodeRabbit

  • Changes
    • Removed the saved-drafts feature from the composer. Users can no longer save, restore, or delete drafts.
    • Updated the composer control-order description to list attachments, voice input when available, and background tasks before Send/Stop.

The change removes saved-draft storage and the Composer menu for saving, restoring, and deleting drafts. It also removes related translations and regression coverage, and updates documentation and attribution.

Changes: Saved-draft removal

Layer / File(s) Summary
Remove saved-draft storage and controls
src/lib/promptStash.ts, src/lib/promptStash.test.ts, src/components/Composer.tsx, src/components/ComposerStash.*, src/components/Composer.css, src/lib/i18n.*.ts, scripts/composer-fit-demo-regression.ts
The per-pane draft store, Composer menu, and associated styling are removed. The saved-draft translations and regression test are also removed.
Update documentation and attribution
DESIGN.md, docs/guide.md, src/AGENTS.md, changelog.d/*, THIRD_PARTY_NOTICES.md
References to saved drafts and their attribution are removed. The Composer control-order description now places the mic before the task chip.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: jiunshinn

Merge Risk: ⚪ Minimal · up to 8fe96

This change removes saved-draft controls; although older saved drafts may remain inaccessible, no actionable merge-blocking risk is established.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: removal of saved drafts from the composer.
Description check Passed The description includes the required Change and Validation sections. It explains the resulting behavior, lists affected areas, and records validation results, known baseline failures, and unrun integ…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha
devswha merged commit 9e967d8 into main Oct 13, 2026
9 checks passed
@devswha
devswha deleted the chore/remove-saved-drafts branch October 13, 2026 22:27
devswha added a commit that referenced this pull request Oct 13, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant