Skip to content

fix(code): hide startup tips when resuming threads - #5349

Merged
Mason Daugherty (mdrxy) merged 5 commits into
mainfrom
mdrxy/code/hide-tips-on-resume
Aug 6, 2026
Merged

fix(code): hide startup tips when resuming threads#5349
Mason Daugherty (mdrxy) merged 5 commits into
mainfrom
mdrxy/code/hide-tips-on-resume

Conversation

@mdrxy

Copy link
Copy Markdown
Member

Resumed threads no longer show a startup discovery tip above the chat input.


Startup tips are only relevant to fresh sessions and otherwise displace resumed context from the input.

Made by Open SWE

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 6, 2026

@open-swe open-swe Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open SWE Review found 1 potential issue.

Open in WebView Open SWE trace

Comment thread libs/code/deepagents_code/app.py
@mdrxy
Mason Daugherty (mdrxy) marked this pull request as ready for review August 6, 2026 05:23
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
@github-actions github-actions Bot added size: S 50-199 LOC and removed size: XS < 50 LOC labels Aug 6, 2026
Mason Daugherty (mdrxy) and others added 3 commits August 6, 2026 02:15
The startup-tip remount ran inside `_resolve_resume_thread`'s `finally`
ahead of `_resume_thread_resolved_event.set()`. `suppress(NoMatches)` does
not cover `MountError` or `WrongType`, so a mount failure skipped `set()`
and stranded `_write_launch_name_memory`, hanging onboarding and killing
the server-startup worker.

Signal resolution first, then restore the tip behind its own handler.
Narrow the suppress to the two lookups it actually covers and log a miss
instead of vanishing silently. Drop the post-mount re-check: `Widget.mount`
registers synchronously before it suspends, so a dismissal during the await
already removes the tip itself.

Cover the successful-resume case, all three remaining fallback branches,
the hide-tips opt-out, and the restore-failure invariant. Clear
`DEEPAGENTS_CODE_HIDE_SPLASH_TIPS` in conftest so tip assertions cannot
pass vacuously.
@github-actions github-actions Bot added size: M 200-499 LOC and removed size: S 50-199 LOC labels Aug 6, 2026
@mdrxy
Mason Daugherty (mdrxy) merged commit ff421f2 into main Aug 6, 2026
57 checks passed
@mdrxy
Mason Daugherty (mdrxy) deleted the mdrxy/code/hide-tips-on-resume branch August 6, 2026 14:37
Alexander Olsen (aolsenjazz) pushed a commit that referenced this pull request Aug 7, 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.54](deepagents-code==0.1.53...deepagents-code==0.1.54)
(2026-08-07)

### Features

- Added Meta `muse-spark-1.2` to the model switcher
([#5389](#5389)).
- Improved diff readability with quieter hunks and word-level highlights
([#5106](#5106)).

### Bug Fixes

- Hid startup tips when resuming threads
([#5349](#5349)).
- Prevented post-tool hook replay
([#5376](#5376)).
- Stored update logs under the OS cache directory
([#5363](#5363)).

_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: M 200-499 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant