Skip to content

Unify Chat and Dashboard into single view#11

Merged
PureWeen merged 7 commits intomainfrom
dashboard-unified-view
Feb 9, 2026
Merged

Unify Chat and Dashboard into single view#11
PureWeen merged 7 commits intomainfrom
dashboard-unified-view

Conversation

@PureWeen
Copy link
Owner

@PureWeen PureWeen commented Feb 9, 2026

Summary

Removes the separate Chat view and makes Dashboard the sole interface. The Dashboard grid shows all sessions at a glance, and ⌘E (or clicking a session title) expands any session to a full-featured chat view identical to the old Chat page.

What changed

  • Removed: Home.razor and Home.razor.css (Chat view)
  • Dashboard is now / (default landing page)
  • Expanded mode mirrors the old Chat UI exactly:
    • Tool activity feed, intent pills, error bars
    • Chat/Plan mode toggle, model selector, token usage (↑↓ ctx)
    • Font size controls (A−/A+), message queue with individual remove
    • Session ID with copy, git branch/directory context badges
    • SVG stop/send buttons, auto-expanding textarea
  • Tab/Shift+Tab cycles between sessions in both grid and expanded modes
  • Message windowing: Shows 25 most recent messages, auto-loads more on scroll (IntersectionObserver)
  • Draft text + cursor position preserved across expand/collapse

Other fixes included

  • Fix static field initialization crashes on Android/iOS (lazy ??= properties)
  • Fix null reference in SessionErrorEvent handler
  • Fix reconnect path carrying over ResponseCompletion
  • Add git branch detection (reads .git/HEAD, refreshes on SessionIdleEvent)
  • Updated copilot-instructions.md with full build/deploy commands for all platforms
  • Net reduction: -800 lines (1,335 added, 2,136 removed)

- Remove Home.razor (Chat view) — Dashboard is now the sole interface at /
- Dashboard grid view shows all sessions with compact message previews
- Cmd+E expands any session to full Chat-identical view with:
  - Tool activity tracking, intent pills, error bars
  - Chat/Plan mode toggle, model selector, token usage display
  - Font size controls, message queue with individual remove
  - Session ID badge with copy, git branch/directory context
- Tab/Shift+Tab cycles between sessions in both grid and expanded modes
- Message windowing (25 most recent) with auto-load-on-scroll via IntersectionObserver
- Draft text and cursor position preserved across expand/collapse transitions
- Per-session state: streaming, tool activities, intent, errors, usage info
- All 11 CopilotService events wired up (was 4)
- Fix static field initialization crashes on Android/iOS (lazy properties)
- Fix null reference in SessionErrorEvent handler
- Fix reconnect path carrying over ResponseCompletion
- Add git branch detection (reads .git/HEAD, refreshes on SessionIdleEvent)
- Update copilot-instructions.md with full platform build/deploy commands
- Add xUnit test project (91 tests) — separate commit in test project
@PureWeen PureWeen merged commit 72771ef into main Feb 9, 2026
PureWeen added a commit that referenced this pull request Feb 19, 2026
- Fix #9 off-by-one: CurrentIteration==0 check unreachable (now ==1)
- Fix #10 incomplete: set IsCancelled on OperationCanceledException
- Fix ConsecutiveErrors: reset to 0 after successful iteration
- Fix #11 stale comments: update hash references to string equality
- Fix #12 incomplete: mark pruned ghost evaluators in _closedSessionIds

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PureWeen added a commit that referenced this pull request Feb 20, 2026
Concurrency fixes:
- Swap _sessions before wiring event handler on reconnect (#2)
- Block ALL events from orphaned handlers, not just terminal (#3)
- Add lock(_imageQueueLock) to all image queue mutations (#4)
  including dequeue, reinsert, ClearQueue, rename, close, dispose
- Clear IsResumed on error and watchdog paths (#5)
- Add RunContinuationsAsynchronously to remaining TCS (#6)

Architecture/contract fixes:
- Add [JsonIgnore] to ShouldWarnOnStall, LastSimilarity (#7)
- Fix ConsecutiveErrors increment-before-check ordering (#8)
- Set IsCancelled on all non-success termination paths (#10)
  including stall, error-stall, max-iteration, OperationCanceled,
  empty-assignment error stall, and single-agent StopReflectionCycle
- Add session dir deletion for ghost evaluator pruning (#12)
- Add CompletedAt to StopReflectionCycle (#12 related)

Already correct (no changes needed):
- #9: CurrentIteration == 1 check was already fixed
- #11: Comments already reference string-based stall detection

Documentation:
- Update stall detection from 'hash match' to 'string equality'
- Update error handling to show ConsecutiveErrors (not ConsecutiveStalls)
- Add IsCancelled invariant to exit conditions table
- Add 5 new invariants: orphan gate, reconnect ordering,
  image queue locking, IsResumed clearing, TCS creation
- Document empty-assignment retry behavior

817/817 tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen PureWeen deleted the dashboard-unified-view branch February 22, 2026 00:16
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