# NousResearch/hermes-agent · Desktop composer draft leaking across sessions

## Open now

- Nothing open on GitHub.

Multiple bug reports and fix attempts addressing a desktop composer issue where draft text, attachments, or input persists incorrectly between different chat sessions. Several fixes have been proposed targeting draft key scoping and session lifecycle decoupling.

## TL;DR

- 11 member(s): 0 open issue(s), 7 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #128476. Verify it addresses your case.
- **Recommended:** read PR #128476 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.12`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #58251: Desktop: removed composer attachments resurrect on session switch
- #61191: \[Bug\] Desktop Composer persists stale URL/file attachments across conversations (localStorage draft cache)
- #62490: Desktop: Composer draft leaks across new sessions + first Enter ignored after #54527 fix
- #63025: Desktop: New session pre-fills previous prompt text that must be manually deleted before typing
- #63054: bug(desktop): new-session composer prefilled with another session's first input (draft cross-session leak)
- #66662: \[desktop\] New sessions share __new__ draft key causing draft bleed between unsaved chats
- #68417: bug(desktop): removing composer attachments still resurrects them after session switch (regression)

## Prior & competing PRs

- **#58257: fix(desktop): persist removed composer attachments**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `9998ff4cbebc9812aec66a7d0839665fa7fbfa36`, `#58251`, `#61191`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#128476: fix(desktop): give every new chat its own draft key instead of a shared __new__ bucket**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `apps/desktop/src/app/chat/composer/hooks/use-composer-draft.test.tsx`, `apps/desktop/src/app/chat/composer/hooks/use-composer-draft.ts`, `apps/desktop/src/app/chat/composer/index.tsx`, `apps/desktop/src/app/chat/composer/types.ts`, `apps/desktop/src/app/chat/index.tsx`, `apps/desktop/src/app/session/hooks/use-route-resume.test.tsx`, `apps/desktop/src/app/session/hooks/use-route-resume.ts`, `apps/desktop/src/app/session/hooks/use-session-actions.test.tsx`, `apps/desktop/src/app/session/hooks/use-session-actions/index.ts`, `apps/desktop/src/sdk/composer.ts`, `apps/desktop/src/store/composer.test.ts`, `apps/desktop/src/store/composer.ts`, `apps/desktop/src/store/session.test.ts`, `apps/desktop/src/store/session.ts`
- **#62586: fix(desktop): prevent composer draft leak on new session**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#128476`
- **#68423: fix(desktop): stop removed composer attachments resurrecting on session switch**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `d083d9dacd4494eb4a9570b4bdf8ad6e5d0fafbf`, `#68417`

## Fix status

- Merged to main in PR #128476 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-29`.
- Subsystem: `apps/desktop`
