Skip to content

feat(macos): redesign chats and smooth conversation switching - #14

Merged
cheetahbyte merged 1 commit into
mainfrom
ui/macos-polish
Nov 15, 2026
Merged

cheetahbyte merged 1 commit into
mainfrom
ui/macos-polish

Conversation

@cheetahbyte

Copy link
Copy Markdown
Contributor

Summary

Port the three unmerged avatar/macOS commits onto current main, without replaying their superseded API refactors or the separate Xcode membership change. Redesign the sidebar, chat header, composer, details, call, desktop, and job panels; add pointer-following avatars and cached chat-switch crossfades while preserving #13's attention and reply-surface hooks. Reconcile cached history and readiness gates, and keep step expansion outside regrouped job blocks.

JobSheet: expanded step IDs, scoped to the displayed job
  JobBlockView: consecutive steps grouped into a card
    JobStepRow: expansion binding keyed by step ID

Why

The macOS work remained on ci/apple-releases after the server-contract changes landed in #13. It needs to use the current server projections and job models without restoring old transport code or losing chat-attention behavior.

Evidence

  • python3 apfelkern/scripts/contract.py --check: passed; generated contract output unchanged.
  • apfelkern build and tests: 329 shared tests and 5 BotAvatar tests passed. BotAvatar's unsigned iOS Simulator build passed.
  • macOS: 119 tests passed; SwiftLint passed with 10 existing warnings and no serious violations; scripts/check-app-bundle.sh passed.
  • iOS: unsigned app/test-target build passed, and all 112 unit tests passed on iPhone 18 Pro Simulator, iOS 27.0, using isolated derived data at ios/build/verify-macos-polish. The unit tests were rechecked immediately before pushing. iOS lint passed.
  • Failing-before/passing-after regressions cover cached pagination and keyboard readiness:
    • Confirmed cached rows appear immediately, without duplicating pending sends. Overlapping snapshots retain earlier pages; disjoint snapshots replace cached confirmed rows and restart pagination at the server's cursor.
    • A held initial refresh plus attempted pagination reproduced a late response restoring disconnected rows and overwriting the fresh cursor. Pagination now waits for a loaded snapshot.
    • The actual hosted composer's Return handler invoked Send before readiness. It now waits for readiness, while the field remains available; the same readiness gate disables the Send button in both bot and group views.
  • Cache tests also verify that connection changes clear cached transcripts.
  • Static follow-up review found no further issues in the pagination guard, composer readiness, and expansion-state ownership.
  • Local fixture spot inspection covered the chat/sidebar and sample coding/desktop panels. No live account or credentials were used; screenshots were not attached.

Risk & Rollback

Reversibility: Reversible by reverting this change. There is no data migration; the transcript cache is in memory and scoped to the connection. The new shared avatar option defaults to off.

Blast Radius: Most macOS chat chrome and panels, bot-chat selection/pagination, composer keyboard handling, grouped job history, debug fixtures, and the shared BotAvatarView initializer. iOS source, server contracts, generated models, Xcode membership, and CI workflows are unchanged.

Known limitations, kept visible while this is a draft:

  • ios/scripts/test.sh unit still fails with the existing default-output missing-type diagnostics, including ReasoningPreview and AutomationDraft.previewRequest, despite those declarations existing in source. Equivalent tests pass with isolated derived data. The cause remains UNKNOWN; existing build data was not deleted.
  • Step expansion across pagination and changed jobs is statically reviewed but runtime-unverified. Hosted SwiftUI accessibility did not expose controls, and the attempted UI harness did not yield valid regression evidence; those attempts are not in the test suite.
  • Live-server attention behavior under the new header/blur overlays and during crossfades has not been verified.
  • A local fixture review showed a 404 refresh error in the debug coding-job sample when its server job was absent. This remains unresolved and does not affect release builds.
  • The imported progressive header blur uses private Core Animation runtime APIs, with a material fallback when unavailable. Compatibility beyond the local spot inspection remains unverified.

Port avatar pointer tracking and the macOS sidebar, composer, headers, and job panels onto the current server contract while preserving chat-attention hooks.

Keep confirmed chat caches connection-scoped, reconcile overlapping history, and gate pagination and sending on readiness. Store expanded job-step IDs outside regrouped blocks and add cache-ordering and keyboard regressions.
@cheetahbyte
cheetahbyte marked this pull request as ready for review November 15, 2026 14:36
@cheetahbyte
cheetahbyte merged commit 7df05b0 into main Nov 15, 2026
6 checks passed
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