Skip to content

fix(tui): refresh after external session reset#93562

Merged
vincentkoc merged 3 commits into
mainfrom
clownfish/ghcrawl-157015-autonomous-smoke
Jun 16, 2026
Merged

fix(tui): refresh after external session reset#93562
vincentkoc merged 3 commits into
mainfrom
clownfish/ghcrawl-157015-autonomous-smoke

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

  • Fixes TUI does not refresh when session is reset from another client (e.g. Telegram /new) #38966 by teaching the TUI to handle active-session sessions.changed reset/new events from the gateway.
  • Clear stale in-memory run state, streaming assembly, local run tracking, and visible stale transcript state before reloading history/session metadata.
  • Keep the patch narrow to TUI event dispatch/handling and regression coverage; gateway already emits and advertises sessions.changed on current main.

Credit

This carries forward the useful direction from @wsyjh8 in source PR #40472, with attribution preserved here and in the changelog. Thanks also to @yizhanzjz for the original external reset reproduction in #38966.

Validation

  • pnpm -s vitest run src/tui/tui-event-handlers.test.ts
  • pnpm check:changed

Clownfish 🐠 replacement reef notes:

fish notes: model gpt-5.5, reasoning medium; reviewed against 6ade249.

@vincentkoc vincentkoc added the clownfish Tracked by Clownfish automation label Jun 16, 2026
@vincentkoc
vincentkoc merged commit 9b49387 into main Jun 16, 2026
20 of 22 checks passed
@vincentkoc
vincentkoc deleted the clownfish/ghcrawl-157015-autonomous-smoke branch June 16, 2026 08:10
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Jun 16, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 17, 2026
* fix(tui): refresh after external session reset

* fix(clownfish): address review for ghcrawl-157015-autonomous-smoke (1)

Co-authored-by: Jason <[email protected]>

* fix(clownfish): address review for ghcrawl-157015-autonomous-smoke (1)

Co-authored-by: Jason <[email protected]>

---------

Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
Co-authored-by: Jason <[email protected]>
crh-code pushed a commit to crh-code/openclaw that referenced this pull request Jun 18, 2026
* fix(tui): refresh after external session reset

* fix(clownfish): address review for ghcrawl-157015-autonomous-smoke (1)

Co-authored-by: Jason <[email protected]>

* fix(clownfish): address review for ghcrawl-157015-autonomous-smoke (1)

Co-authored-by: Jason <[email protected]>

---------

Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
Co-authored-by: Jason <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clownfish Tracked by Clownfish automation maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI does not refresh when session is reset from another client (e.g. Telegram /new)

1 participant