Skip to content

feat(desktop): chat-first Chat tab with always-on search, Activity tab in Memories, hide-on-unfocus, notch click-through fix - #11372

Merged
kodjima33 merged 12 commits into
mainfrom
kodjima33/build-test-macos-desktop
Aug 10, 2026
Merged

kodjima33 merged 12 commits into
mainfrom
kodjima33/build-test-macos-desktop

Conversation

@kodjima33

@kodjima33 kodjima33 commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Requested by Nik in-session (chat-first Home; Activity tab; Memories rename; hide-on-unfocus; dead-zone fix):

  • Home is a chat with Omi. Opens straight into the conversation; the always-visible search bar ("Search what you've seen and heard…") sits above it — typing narrows the spine live, clearing (or Esc) returns to the chat. Mode is derived from search text, never stored.

  • Activity tab. The former search-first landing surface (spine + filter chips + count) moved into the Memory hub as its first destination; top-bar pill renamed Library → Memories. ShellDestination.activity joins the INV-NAV-1 reachability contract.

  • Hide on unfocus. Reverts 3715ee2: the summoned shell hides when another app takes focus and returns on re-activation. isDressed now asserts the presentation-matched hidesOnDeactivate so the attachment view cannot re-dress forever; permission-prompt restore re-asserts its frame after order-in.

  • Notch overlay click-through fix. The fixed 430×527 notch panel swallowed clicks across its whole frame whenever a conversation was open (including collapsed "thinking"), parking an invisible dead zone over other apps and Omi's own centered shell (dead Tasks/Rewind/Apps pills). View-level hitTest nil cannot make a window click-through, so the panel now syncs ignoresMouseEvents to the pointer (ignored over dead margin, interactive over visible content), and whole-frame hits require a visibly-expanded response panel or notification (notchWholeWindowHitsAllowed, unit-tested).

  • New non-prod debug_hit_probe bridge action (topmost window + hit-tested view at a screen point) — the diagnostic that found the dead zone, kept for future click-routing triage.

  • Home tab renamed to Chat with a chat glyph (magnifying glass belonged to the search-first surface).

Product invariants affected

  • INV-AUTH-1
  • INV-CHAT-1

Verification

  • Built and ran the real bundle (omi-ankara.app, signed in as [email protected]) after every change; screenshots of chat-first Home with search bar, and Memories → Activity, captured from the running app via the automation bridge.
  • Hide-on-unfocus exercised live: CGWindowList probe shows the shell leaves the screen when Finder activates and returns on re-activation.
  • Dead zone root-caused live with debug_hit_probe (click at the Tasks pill hit the notch window's NSNextStepFrame); after the fix, Nik exercised clicks on the running build and confirmed: "seems it works".
  • Suites green post-change: QueryShellTests, TopNavigationBarLayoutTests, MemoryHubSidebarRoutingTests, ChatFirstDestinationParityTests, ShellSummonTests, ShellWindowChromeTests, FloatingBarGeometryTests, FloatingBarWindowLevelTests (101 tests, 0 failures in the final combined run).

Failure-Class: none

Review in cubic

… vanishing when another app takes focus"

Reinstates hidesOnDeactivate for the summoned shell: clicking anywhere
outside Omi puts the window away, re-activating brings it back. isDressed
now asserts the presentation-matched value instead of a flat false so the
attachment view does not re-dress forever.

This reverts commit 3715ee2.
QueryShellMode.homeDefault = .answer; the spine/search surface stays one
esc / < Results away instead of being the landing page.
The chronological spine that was Home's landing surface now lives as the
first destination in the Memory hub (Activity | Conversations | Memories |
Brain Map), wearing the same panel chrome without a composer (INV-NAV-1:
no second chat surface). Top-bar pill renamed Library -> Memories.
…rom it

The mode is a constant: no escape key, bridge action, or cleared transcript
can put the results panel back on Home. The < Results chip is gone
(QueryResultsPanel.onExitAnswer is optional and Home passes nil); the
timeline lives solely in Memories > Activity.
ShellDestination.activity (reach = memoryHubView, appended last to keep raw
values stable) so INV-NAV-1 coverage includes the new hub view; top-nav
reachability tests updated to expect it.
…cks under it

acceptsMouseHit treated any open conversation as whole-window-clickable, so
the fixed 430x527 notch frame became an invisible click sink over the main
window top bar (dead Tasks/Rewind/Apps pills) whenever the bar was thinking.
Whole-window hits now require a visibly-expanded response panel or a
notification card (FloatingControlBarGeometry.notchWholeWindowHitsAllowed,
unit-tested); an open-but-collapsed conversation keeps the content-derived
region extended by the ask-input panel height.

Failure-Class: none
QuerySearchBar (shared with the Activity tab) sits above the panel in both
modes: typing narrows the spine live, clearing (or esc) lands back on the
conversation. Mode is derived from the search text, never stored. The chat
composer remains the one composer inside the panel (INV-6).
…ions

A view-level hitTest nil cannot make a window click-through: the window
server routes the click to the window under the cursor and NSNextStepFrame
swallows what the content view declined. The fixed oversized notch panel
was therefore an invisible click sink over other apps and over Omi's own
centered shell (dead Tasks/Rewind/Apps pills; proven via the new
debug_hit_probe bridge action). The panel now syncs ignoresMouseEvents to
the pointer: ignored over dead margin, interactive over visible content.
Also: restoreAfterPermissionPrompt re-asserts its frame after order-in.

Failure-Class: none
…update home flow description to the chat-first surface
@kodjima33
kodjima33 merged commit 6b1e6a7 into main Aug 10, 2026
10 of 11 checks passed
@kodjima33
kodjima33 deleted the kodjima33/build-test-macos-desktop branch August 10, 2026 18:30
kodjima33 added a commit that referenced this pull request Aug 10, 2026
#11373)

## Summary

`Desktop Swift Release Compile` has been red on `main` since #11369
(strict-concurrency error only visible under the release lane's
whole-module optimization), which fails the auto-release gate closed —
no beta candidate has cut, so #11372 (and everything since the last tag)
is not reaching users.

`KnowledgeGraphToolSupport.ResolveOutcome` was non-Sendable (its
`ClientGraph` carries `[String: Any]` JSON-shaped dictionaries) and is
returned from a nonisolated async function. The dictionaries hold only
locally-built immutable `String`/`[String]` values, so `ClientGraph` is
now `@unchecked Sendable` with that contract documented at the
declaration, and `ResolveOutcome` is `Sendable`.

## Verification

- `xcrun swift build -c release --package-path Desktop` locally: **Build
complete (353.8s), zero errors** — the exact lane that fails in CI.
- No behavior change; type-level conformance only.

Failure-Class: none


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/11373?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
kodjima33 added a commit that referenced this pull request Aug 10, 2026
… & Suggestions (#11378)

## What

Make the proactive notch notifications wider and more legible — the
"Clicky-style" prominence Nik asked for.

- Widen the notch card from 430pt to 508pt (height 108→128).
- Default notification card and the focus-nudge suggestion card each get
a 44pt accent-icon tile (soft white gradient + hairline border), a
bolder 15pt title/header, roomier body text and spacing, and a circular
dismiss button.

This branch also carries the focus-nudge + Suggestions feature it was
built on: focus nudges name your due-today tasks when you're drifting,
and AI-captured tasks land in a collapsed **Suggestions** category until
accepted.

## Why

The old card was narrow and quiet — a 34pt icon chip with 12–13pt text
that blended into the notch, so proactive nudges were easy to miss.

Failure-Class: none

## Product invariants affected

- INV-CHAT-1

The notch notification cards still open into the existing chat via
`openNotificationAsChat` — this change is presentation-only (size, icon,
typography, spacing) and does not alter chat session creation,
continuity, or message flow.

## Verification

Built the `omi-notch` named bundle from this branch and fired the real
`com.omi.test.notification` path (`NotificationService.sendNotification`
→ `FloatingControlBarManager.showNotification`) for both the suggestion
and the default insight card, then screenshotted the rendered cards in
the notch. Also confirmed the account's `notification_frequency` was 0
(throttling every suggestion) and set it to 5 so nudges actually
deliver.

Merge is conflict-free: zero file overlap with everything `main` gained
since this branch's base (including the parallel #11372
Home/deadzone/click-through work).

🤖 Generated with [Claude Code](https://claude.com/claude-code)
kodjima33 added a commit that referenced this pull request Aug 14, 2026
… and notch windows (#11552)

## Problem

Clicking "somewhere else" while the Omi shell or notch surfaces are up
hit an invisible dead zone: the click landed on Omi instead of the app
the user aimed at, and that app never came forward.

Two windows had transparent regions that swallowed clicks:

1. **Main chat-first shell** — deliberately a transparent window
noticeably larger than its floating panels (`ShellWindowChrome`). The
window server routes clicks by window frame, so the reserved title-bar
band, the lane margins, and the gaps between the pills bar / search bar
/ response card were all invisible click sinks.
2. **Notch panel** — in its response and notification states the whole
fixed frame accepted hits, including the transparent glow ring around
the visible surface.

## Fix

- **Shell**: `ignoresMouseEvents` is synced to the pointer (same
mechanism as PR #11372's notch fix). Visible content is answered by
`InkGlassHitRegions`: both InkGlass primitives (`inkGlassPanel`,
`InkGlassView`) register their live extent, so every page is covered
through the one-glass seam with no per-page wiring; the
`ShellModalScrim` barrier registers its host so dialogs stay modal; an 8
pt rim along the frame edge stays interactive so edge-resize survives.
Deliberate trade-off: dragging from the invisible title-bar band no
longer works — the visible top bar still drags
(`ShellWindowDragHandle`).
- **Notch panel**: response/notification states now own only the visible
surface (frame minus glow outsets) via
`notchSurfaceContentContainsLocal`; the resize grip sits inside the
surface, so response resizing is unaffected.
- `debug_hit_probe` now reports the shell policy verdict
(`shellAccepts=`) for non-bar windows.

## Product invariants

- INV-CHAT-1 — chat surfaces touched
(`FloatingControlBarWindow/Geometry`, QueryShell-hosting shell chrome).
Chat behavior itself is unchanged: only pointer ownership of transparent
margins changed; the invariant's guarded flows (ask → answer in the
shell) were exercised live (`ask_main_chat` produced a streamed answer
in the response card).

Failure-Class: FC-transparent-top-level-window-occlusion

## Verification

- Built and ran the `omi-deadzone` dev bundle (run.sh --yolo, bridge on
47805).
- Exercised the real chat path (`ask_main_chat` → streamed answer
rendered in the response card; window capture attached to the review).
- `debug_hit_probe` sweeps: title-bar band, side margins, panel gaps,
and the notch glow ring report `accepts=false` (clicks pass through);
pills bar, search bar, response card, input field, resize rim, and notch
response panel report `accepts=true`.
- `swift test --filter
"ShellClickThroughPolicyTests|FloatingBarGeometryTests"`: 32/32 pass
(new: `testSurfaceFillingContentDoesNotOwnTheTransparentGlowRing`,
`ShellClickThroughPolicyTests`).
- User-confirmed on the running build: clicks beside/between the panels
now reach the app behind and bring it forward.

Line-Count-Exception:
desktop/macos/Desktop/Sources/DesktopAutomationBridge.swift | 4565 ->
4575 | debug_hit_probe gains the shell click-through verdict; splitting
the bridge is out of scope for this fix
Line-Count-Exception:
desktop/macos/Desktop/Sources/FloatingControlBar/FloatingControlBarWindow.swift
| 5209 -> 5219 | acceptsMouseHit surface-rect branch for the glow-ring
fix; splitting the window class is out of scope for this fix


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/11552?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
pull Bot pushed a commit to codingwatching/omi that referenced this pull request Aug 14, 2026
… and notch windows

The chat-first shell is a transparent window noticeably larger than its
floating panels; the window server routes clicks by window frame, so the
title-bar band, lane margins, and inter-panel gaps swallowed clicks
aimed at other apps — the click landed nowhere and the other app never
activated. The notch panel had the same defect in its response and
notification states, whose whole-window hit region included the
transparent glow ring.

Shell: sync ignoresMouseEvents to the pointer (the PR BasedHardware#11372 mechanism).
Every glass surface registers its live extent through the InkGlass
primitives (InkGlassHitRegions), the modal scrim barrier registers its
host so dialogs stay modal, and an 8pt rim along the frame edge stays
interactive so edge-resize survives. Notch: response/notification states
now own only the visible surface (frame minus glow outsets).

Verification: built and ran the omi-deadzone bundle; debug_hit_probe
confirms dead air (title band, margins, gaps, glow ring) passes through
while pills bar, search bar, response card, input field, resize rim and
notch response panel stay interactive; 32/32 geometry+policy tests pass;
user confirmed clicks reach the app behind the window.

Failure-Class: FC-transparent-top-level-window-occlusion
kodjima33 pushed a commit that referenced this pull request Aug 22, 2026
…mary is whole again (#12042)

* fix(desktop): Activity is reachable, stays selected, and opens what you clicked

Three defects, one surface. The hub's four views share two chat-first routes, and
every one of these came from a place where that sharing was hand-listed instead of
derived.

1. Activity always lost to Memories. `ChatFirstMemoryRoutePolicy` preserved the
   caller's hub view across the `.memories` route by naming one of them:
   `current == .brainMap ? .brainMap : .memories`. `.activity` was appended as a
   fourth hub view later and never added, so the route sync that runs on the very
   next `onChange` rewrote the just-written `.activity` back to `.memories`. The
   click was correct and then undone a frame later, from the pill and from the
   hub's own switcher alike. It now derives the answer from the one route mapping
   (`MemoryHubSelectionPolicy.chatFirstRoute`), so a view that lives on a route
   survives it and the next view added cannot ship broken the same way.

2. The pill said Memories and opened whichever view was persisted last. It is
   titled Activity, wears a glyph that is not Rewind's, and routes through
   `selectHubDestination(.activity)` — the same writer the switcher uses, so one
   path owns moving both halves of the state. Conversations, Memories and Brain
   Map stay one click away in the hub switcher; `ShellDestination.activity.reach`
   is now `.topBar` so the reachability model states that honestly, and
   `unreachable()` remains empty (INV-NAV-1).

3. Activity's rows did not open anything. Memory rows had no action at all — no
   Button, no tap gesture, no hit region — so the one row naming what Omi learned
   was the one row you could not open; clicks landed on the conversation card
   above it. Conversation rows carried the full record, narrowed it to an id,
   wrote that id into the automation *snapshot* singleton, then called
   `selectPrimary`, whose contract is to discard an unconsumed deep link. Rows now
   hand the record to the typed deep link, and memories open through the gate the
   Brain Map's citations use, which does not leave Activity if the memory cannot
   be resolved.

`showsCaptureArchive` also had no second release: once any capture link was
followed it stayed latched, so later conversation navigation kept landing in the
reduced archive pane. An exact-conversation deep link now releases it, which is
what the branch's own comment already promised.

Verified: clicked through a real signed build (omi-navfix, prod backend, never the
production bundle). Activity pill -> Activity page; switcher Memories -> Activity
stays on Activity; conversation row -> conversation_detail_snapshot reports
detail_open=true on the exact conversation; standalone and indented memory rows
both open that memory's inspector; Chat/Tasks/Rewind/Apps pills each land on their
own page; hub switcher persists activity=3 conversations=1 brainMap=2 memories=0.
`swift-test-suites.sh`: 664 suites, 0 failures.
`OMI_AUTOMATION_PORT=47911 tests/test-mounted-navigation-latency.sh`: every route
mounts as itself within budget.

Failure-Class: new

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(desktop): Activity is three panels with one row of chips, and the row navigates

Activity carried two rows of chips a few points apart — the Memory hub's switcher
(`Activity | Conversations | Memories | Brain Map`) and, directly beneath it, a
filter row (`All | Conversations | Memories | Tasks | Rewind`) that narrowed the
spine in place. They shared three of their words and did different things, so the
row you were about to press told you nothing about what pressing it would do.

There is one row now, and every chip in it navigates. `Brain Map` joins it as a peer
destination. `All` becomes `Activity` — the page you are on, which is what the row's
selected state now means rather than a filter that happens to match everything.

**The spine's in-place filtering goes with it.** That is the real cost of the change
and it is deliberate: a row where `Conversations` leaves the page while `Tasks`
narrows it is the rule-then-broken-rule this row is being collapsed to avoid.
Home's search results keep their filter chips — that panel is shared, and a
navigating chip there would throw away the query you just typed, so `ChipBehavior`
makes the two surfaces say which one they are instead of drifting.

Activity also renders as three separate panels now, like Chat. It always built the
right column — the same `panelGap`, corner radius and lane Chat uses — but
`PageGlassLane` wrapped the whole Memory hub in a fourth, full-height panel, nesting
Activity's two inside it. Nesting `.behindWindow` inside `.behindWindow` does not
stack two materials, it takes a second copy of the desktop and doubles the scrim, so
Activity read visibly muddier than every page around it. The wrap is now asked which
hub page is mounted: Activity brings its own glass, the hub's list pages still need
the lane.

Two things this uncovered:

- `ShellDestination.Reach.memoryHubView` named the switcher as the mechanism reaching
  Conversations, Memories and Brain Map, but `unreachable()` only ever checked that a
  pill existed. Deleting the switcher would have stranded three pages with every test
  green. `Reach.activityChipRow` is checked against `ActivityDestinationChip`, the same
  value the row renders from, so the claim is falsifiable now.
- The non-chat-first shell's pill never wrote the hub destination — `DesktopTopBar`
  declared the binding and never used it. With the switcher gone, pressing `Activity`
  there would land on Memories (the stored default) with neither a switcher nor a chip
  row: a dead end reachable from a cold launch. Both shells now force `.activity`.

Verified by clicking the real build (omi-navfix, prod backend, never the production
bundle): Activity renders as three separate panels with one chip row; Conversations,
Memories and Brain Map chips each open their page; Tasks and Rewind chips reach
theirs; the Activity pill returns from each. `scripts/swift-test-suites.sh`: 663
suites, 0 failures.

INV-NAV-1

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(desktop): the conversation summary renders the sections the backend sends

The summary did not get worse; the client stopped reading most of it. The backend's
notes pipeline moved the substance of a conversation summary out of `overview` and
into `structured.sections` — headed blocks, each with a markdown body — leaving
`overview` a short compatibility paragraph. The generated wire DTO has decoded
`sections` since that landed. The domain `Structured` never read the field: a grep
for it across the desktop sources outside `Generated/` returned nothing. So every
desktop surface rendered the compatibility paragraph and presented it as the whole
summary.

`sections` is now decoded, encoded, and rendered:

- `SummarySection` on `Structured`, populated in both initialisers and round-tripped
  through `encode(to:)` — the cache path matters as much as the decode, since
  dropping it there empties an already-correct summary one relaunch later. Named
  `SummarySection` rather than `Section` because the latter shadows SwiftUI's
  `Section` across the whole module.
- One `ConversationSummarySections` view used by both detail surfaces. They had
  already drifted — the legacy editor rendered markdown, the chat-first archive
  pane rendered plain `Text` — and a shared renderer is what keeps the next field
  the backend adds from reaching only one of them.
- The archive pane also gains markdown and action items, which it never showed.

Deliberately unchanged: an app-generated summary still replaces `structured.overview`
rather than appearing beside it. That is a recent, intentional mobile-parity
decision; sections are added on top of it rather than reopening it here.

Note for whoever picks this up next: the Flutter app has the identical gap in
`app/lib/backend/schema/structured.dart`, so "match mobile" is a lower bar than
"render what the backend sends". Worth its own issue.

Verified: clicked a conversation in a real signed build (omi-navfix, prod backend);
its detail renders "Product Cleanup" and "Metrics Strategy" as headed markdown with
bullets where it previously showed one paragraph. New decode tests cover the wire
decode, a missing `source_segment_ids`, a pre-notes-pipeline capture with no
sections, and the cache round trip. `swift-test-suites.sh`: 664 suites, 0 failures.

Failure-Class: new

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(app): the conversation summary renders the sections the backend sends

Same defect the desktop had, in the Flutter client: the backend moved the substance
of a conversation summary out of `structured.overview` and into `structured.sections`
— headed blocks, each with a markdown body — leaving `overview` a short compatibility
paragraph. `conversation_wire.g.dart` has decoded `sections` since that landed, but
`Structured` in `structured.dart` declared only `title, overview, emoji, category,
actionItems, events`, and `fromGenerated` never read the field. The data arrived on
every conversation and was dropped on the floor.

`sections` is now carried through every path that builds a `Structured`: `fromJson`,
`fromGenerated`, `toJson`, `toGenerated`, and `toString()`. `toJson` is the one that
matters most and is easiest to miss — `ServerConversation.toJson` is the local cache
path, so a field that decodes but does not serialize renders correctly on first load
and comes back empty after the next app launch. `toString()` matters because it is
what "copy summary" puts on the clipboard, which was losing the same content.

`Section` is a typedef over the generated wire type rather than a hand-written
adapter: it has no client-only fields or behavior, and the typedef guarantees the
`body_markdown` / `source_segment_ids` key symmetry that a second hand-rolled
`fromJson` would eventually get wrong.

Rendered through the existing `ConversationMarkdownWidget` with the same stylesheet as
the overview above it, so nothing about the screen's styling changes. Sections show
only when Omi's own summary is being displayed — an app-generated summary replaces
them, matching how `overview` already behaved.

Deliberately left alone: sections render as their own markdown block rather than
being concatenated into the summary content, because double-tap-edit writes the whole
rendered string back into `structured.overview` only, so folding them together would
permanently duplicate the sections into the overview on the first edit.

Verified: `app/test.sh` full suite 1409 passed, 0 failures, 5 pre-existing skips.
New tests cover the wire decode, the `toJson` round trip, `fromGenerated`, the full
`ServerConversation` cache round trip (the app-restart case), and a missing `sections`
default; two widget tests pump the real `AppResultDetailWidget` and assert the section
headings and bodies actually paint. Regression proof: deleting the `sections` line
from `Structured.toJson` fails the round-trip tests with `Expected: length of <2> /
Actual: []`.

Not verified: no run against a live signed-in account with a real summarized
conversation — the UI evidence is the widget test, not a screenshot of the shipping
app.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(desktop): the benchmark's error path stops masking the HTTP failure it found

`context-bucket-benchmark.py` enriches an HTTP failure by reading the error body for
a stable error code. The read was guarded by an enumerated tuple —
`(AttributeError, json.JSONDecodeError, UnicodeDecodeError)` — and the ways an
`HTTPError` body can be unreadable are not enumerable across interpreters. On Python
3.9, which is what macOS ships as `/usr/bin/python3`, `HTTPError(..., fp=None).read()`
raises `KeyError('file')` out of `tempfile.__getattr__`. That escaped the guard and
replaced the real `probe returned HTTP 400` with a traceback about a temp file.
Python 3.12+ returns `b''` instead, so the defect is invisible there — which is how it
shipped.

The read is best-effort diagnostic enrichment, so it now catches broadly and the real
`RuntimeError` always survives. No assertion is weakened: the stable-error-suffix case
still asserts the full enriched message. The new regression test drives an error body
whose `read()` raises, so the contract is pinned on every interpreter rather than only
on the one that happened to expose it.

`test.sh` also aggregates its launcher-script section instead of aborting on the first
failure. `set -euo pipefail` over that loop meant one red script cost the entire Python
and Swift stages — the operator saw a single error and got zero signal from the 663
Swift suites below. #11747 fixed the membership that made that reachable without a real
failure; any genuinely failing script still reproduced the same blackout. Failures are
now collected, reported, and exit non-zero at the end, mirroring backend/test.sh.

Verified: the benchmark test passes on 3.9 and 3.14, and fails on both without the fix.
Full `test.sh` with a working venv: 44 launcher scripts, 202 pytest, 663 Swift suites,
exit 0. With a failure injected: exit 1, both failures listed in the aggregate, and all
663 Swift suites still ran — which is the behaviour this change exists for.

Not fixed, flagged instead:
- `tests/test-desktop-core-harness-readiness-teardown.sh` fails at pristine baseline on
  this machine ("readiness should recover from one transient startup failure"), confirmed
  against a clean tree via git stash. State-dependent; it shells out to `make dev-up`. So
  `test.sh` is still red here — but now red *after* running everything rather than hiding
  the Swift stage.
- `scripts/pre-push:762` keeps a third hand-listed copy of the discovery-skip membership
  that `check-launcher-test-skips.py` does not cover — the same class #11747 fixed, in a
  loop the guard does not reach.
- `scripts/agent-continuity-gauntlet-lib.py:200` has the same unguarded `exc.read()` shape.

Failure-Class: none

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore(failure-class): declare FC-mirrored-model-omits-new-member

Both defects in this PR are one shape: a hand-written model or policy that mirrors a
source of truth by restating its members, and is not updated when the source gains one.
#11834 added `sections` to the conversation wire schema — the generated clients decoded
it, the hand-written Swift and Dart domain models never read it, and every summary
silently rendered a compatibility stub. #11372 added `.activity` as a fourth hub view
sharing the memories route, and the route-survival policy preserved members by naming
one of them, so the new view was rewritten back a frame after every click.

Neither produced a decode error, an unhandled case, or a failing test: a mirror that
drops a member is still internally consistent, so the product reads as thin or flaky
rather than as broken, and it ships.

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore(desktop): changelog fragment for the Activity and summary fixes

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore(desktop): cover the two new Activity/summary sources with existing e2e flows

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(desktop): drop a force unwrap from the reachability test

Failure-Class: none

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
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