Skip to content

refactor(desktop): move session health feedback into the conversation flow - #1035

Merged
Astro-Han merged 3 commits into
mainfrom
refactor/1032-session-health-notice
Jul 15, 2026
Merged

Astro-Han merged 3 commits into
mainfrom
refactor/1032-session-health-notice

Conversation

@Astro-Han

@Astro-Han Astro-Han commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #1032.

The chat surface no longer mounts a header status cluster that mixed routine lifecycle badges (Running), transient event-stream recovery, and actionable connection problems. Only hard-block health conditions now appear as a composer-adjacent notice with a recovery action; soft rebind heads-ups, session lifecycle badges, event-stream recovery badges, and the always-on fake-backend banner are gone.

Placement deliberately sits above the composer (outside the message scroll area, beside the existing interaction-slot seam) rather than end-of-list inline, so the recovery path stays visible before send. Durable failed/blocked turn outcomes stay on the turn; sidebar session status icons are unchanged.

Verification

  • npm --workspace @maka/ui run build
  • apps/desktop: npm run typecheck
  • node --test dist/main/__tests__/session-health-notice.test.js
  • node --test dist/main/__tests__/session-health-notice-layout-contract.test.js
  • node --test dist/main/__tests__/task-ledger-desktop-contract.test.js dist/main/__tests__/chat-header-actions-inset-contract.test.js dist/main/__tests__/visible-copy-hygiene-contract.test.js
  • Full desktop suite and Playwright E2E not run in this pass
image image

Review focus

  • Hard-only matrix in deriveSessionHealthNotice (soft rebind → silent)
  • Notice mount order relative to maka-composer-interaction-slot / Composer
  • Fake E2E sessions with a usable default must stay notice-free

… flow

Remove the chat header status cluster and routine Running / event-stream
recovery badges. Surface only hard-block connection health problems as a
composer-adjacent notice with recovery actions, and fold the fake-backend
banner into the same hard-only matrix.

Closes #1032
Satisfy the #499 state-token governance contract for the composer-adjacent
health notice recovery button.
Gate the composer-adjacent notice on navSelection.section === 'sessions'
so Skills / Automations / Daily Review do not show chat connection health.
@Astro-Han
Astro-Han merged commit 07f060a into main Jul 15, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the refactor/1032-session-health-notice branch July 25, 2026 15:14
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.

refactor(desktop): move session health feedback into the conversation flow

1 participant