# fix\(web\): toggle a single stashed prompt with Cmd\+S \(\#9644\) · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/14bf3f6d1644a37029be58429e8f0138e1ceb743)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: 14bf3f6d1644a37029be58429e8f0138e1ceb743

Requested commit: 14bf3f6d1644a37029be58429e8f0138e1ceb743

Commit: 14bf3f6d1644a37029be58429e8f0138e1ceb743

Tree: d4ecd9d072c4f32e9931edeaa33afc88b7e1b7ee

Author: Theo Browne

Committer: GitHub

## Message

```
fix(web): toggle a single stashed prompt with Cmd+S (#9644)

Cmd+S opened the stash menu even when the composer was empty and only one prompt was stashed. It now restores that prompt directly, so repeated presses toggle between the draft and stash.

Multiple entries and images that are still saving open the menu. The stash badge still opens the menu.

Validation: 94 focused stash, shortcut, and attachment tests pass. Web typecheck and formatting pass. Targeted lint has no new warnings or errors. Browser checks were skipped at Theo's request.

Original implementation by Theo Browne. No code changes were needed during the takeover audit.

Audited with GPT-6 Astra (preview) in Codex.
```

## Parents

- [09d13de4381925fa2a6dea74eff8185fa301e905](https://git.cafe/gitcafe/t3code/commit/09d13de4381925fa2a6dea74eff8185fa301e905?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/14bf3f6d1644a37029be58429e8f0138e1ceb743?format=markdown)
