Skip to content

fix(code): drop the "Message restored to input" toast - #5253

Merged
Mason Daugherty (mdrxy) merged 3 commits into
mainfrom
mdrxy/code/drop-restore-toast
Aug 11, 2026
Merged

fix(code): drop the "Message restored to input" toast#5253
Mason Daugherty (mdrxy) merged 3 commits into
mainfrom
mdrxy/code/drop-restore-toast

Conversation

@mdrxy

Copy link
Copy Markdown
Member

Interrupting a prompt with Esc no longer shows a "Message restored to input" toast — the prompt still returns to the chat input, silently.


The restore is self-evident: the text reappears in the chat input, right where the user is looking. The toast reported that back to them while covering the bottom-right of the transcript, which is most intrusive when dcode runs in a tiled or narrow terminal.

The behavior itself is unchanged — _restore_interrupted_message_to_input still returns the prompt (and any captured media) only when the chat input holds no draft and the turn produced no visible output. Ctrl+C still does not restore at all.

Made by Open SWE

Restoring an interrupted prompt already shows itself: the text reappears in
the chat input. The toast added nothing and covered the transcript, which is
most noticeable in a tiled terminal.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
@github-actions github-actions Bot added dcode Related to `deepagents-code` fix A bug fix (PATCH) internal User is a member of the `langchain-ai` GitHub organization size: XS < 50 LOC labels Aug 3, 2026
@mdrxy
Mason Daugherty (mdrxy) marked this pull request as ready for review August 11, 2026 05:46
The docstring justified silence only for a successful restore. The paths
that decline to restore are silent for a different reason -- nothing was
consumed, so unlike the queued-message pop there is no discarded outcome
to report -- and that asymmetry now reads as deliberate rather than as an
oversight.

Also drops the stale "restored" toast reference from set_value_at_end
(the only remaining toast caller is the queued-message pop) and asserts
that the Ctrl+C interrupt path is silent too.
@mdrxy
Mason Daugherty (mdrxy) merged commit c206eb4 into main Aug 11, 2026
57 checks passed
@mdrxy
Mason Daugherty (mdrxy) deleted the mdrxy/code/drop-restore-toast branch August 11, 2026 06:24
Mason Daugherty (mdrxy) pushed a commit that referenced this pull request Aug 12, 2026
> [!CAUTION]
> Merging this PR will automatically publish to **PyPI** and create a
**GitHub release**.

For the full release process, see
[`.github/RELEASING.md`](https://github.com/langchain-ai/deepagents/blob/main/.github/RELEASING.md).

---

_Release notes preview: keep this section in sync with the package
`CHANGELOG.md`. Publish reads the merged CHANGELOG via `release.yml`,
not this PR description — keep them aligned anyway so the PR stays an
accurate historical record for reviewers and anyone returning later._

---


##
[0.1.55](deepagents-code==0.1.54...deepagents-code==0.1.55)
(2026-08-12)

### Features

- Added a `/context` usage report for inspecting context consumption
([#5407](#5407)).
- Added a cache and context status row for at-a-glance session state
([#5408](#5408)).
- Added configurable warnings when a session exceeds the configured cost
threshold
([#5405](#5405)).
- Added support for persisting and reconfiguring ACP sessions
([#5366](#5366)).
- Added automatic updates for installed plugins
([#5368](#5368)).
- Added a toggle for diff line numbers
([#5427](#5427)).
- `Ctrl+S` in `/auto model` now stores `[models].auto_classifier`
([#5313](#5313)).

### Fixes

- Restored edit diffs in resumed threads
([#5391](#5391)).
- Added a resume hint after crashes
([#5412](#5412)).
- Clarified the project hooks trust prompt and stopped prompting for
user hooks
([#5426](#5426)).
- Cleared dynamic subagents on the next turn
([#5437](#5437)).
- Improved grouped tool summaries by counting distinct targets
([#5409](#5409)).
- Improved ask-user choice wrapping and selection styling
([#5442](#5442)).
- Serialized `dcode` self-upgrades across processes
([#5252](#5252)).
- Added warnings for stale dependencies in editable installs
([#5386](#5386)).
- Hid incomplete extras from version output
([#5352](#5352)).
- Removed the optional-provider startup tip
([#5421](#5421)).
- Removed the “Message restored to input” toast
([#5253](#5253)).

_End release notes preview._

---

> [!NOTE]
> A **New Contributors** section is appended to the GitHub release notes
automatically at publish time (see [Release
Pipeline](https://github.com/langchain-ai/deepagents/blob/main/.github/RELEASING.md#release-pipeline),
step 2).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: langchain-oss-automated-triage[bot] <248757908+langchain-oss-automated-triage[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dcode Related to `deepagents-code` fix A bug fix (PATCH) internal User is a member of the `langchain-ai` GitHub organization size: XS < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant