Skip to content

Fix chat startup, blank tab switches, and delayed team workers - #1946

Merged
santoshkumarradha merged 3 commits into
devfrom
fix/team-first-turn-wake
Oct 25, 2026
Merged

santoshkumarradha merged 3 commits into
devfrom
fix/team-first-turn-wake

Conversation

@santoshkumarradha

@santoshkumarradha santoshkumarradha commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

New chats briefly showed a separate opening screen, returning tabs could stay blank while history reloaded, and a manager-created worker could remain idle until a second message arrived.

This change:

  • Shows the ordinary chat view and first message while a new conversation opens. Follow-up typing, pasted text, attachments, and Mac editing shortcuts survive setup and ownership checks.
  • Keeps an open tab’s last displayed transcript visible until atomic replay replaces it, without duplicating messages.
  • Lets the ongoing traffic watcher recognize a worker’s own admitted start when team membership arrives after the initial 20-second watch.

Live terminal measurements with an 800 ms engine delay:

Scenario Before After
New tab → ordinary chat visible 857 ms 19 ms
Home → ordinary chat visible 857 ms 32 ms
Returning tab → text visible, median of 6 switches 822 ms 21 ms

These measure screen response independently of engine setup and provider latency. The delayed membership reproduction held admission for 25 seconds: before the fix the worker had no messages and started only after go; after the fix it executed and reported completion without a second message. A live background response also replaced the cached preview with exactly one user prompt and one assistant answer.

Every recorded model entry in the live acceptance runs used OpenRouter deepseek/deepseek-v4.1-flash, including auxiliary roles. Existing focused startup, ownership, replay, switch, wake, and cap checks passed. make pr-ready passed, including make test-quick and all 16 session/UI shards on their first runs. GitHub checks are still running. No new regression tests were added, as requested; acceptance uses the live TUI.

Standards: 0 findings. Spec: 0 outstanding findings. Returning tabs retain their last rendered rows in memory while kept open. The history-clearing path predates the last two days; no specific recent commit was established as the cause of the observed delay.

Live terminal captures are preserved locally. Direct PR attachment upload is unavailable, so media has not been committed or published elsewhere.

@santoshkumarradha santoshkumarradha changed the title Fix new team workers stalling before their first response Fix chat startup, blank tab switches, and delayed team workers Oct 25, 2026
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review October 25, 2026 23:45
@santoshkumarradha
santoshkumarradha merged commit f6dc162 into dev Oct 25, 2026
7 checks passed
@santoshkumarradha
santoshkumarradha deleted the fix/team-first-turn-wake branch October 25, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant