Skip to content

feat(desktop): refine Memory navigation and layout - #10541

Merged
Git-on-my-level merged 12 commits into
mainfrom
codex/native-memory-layout
Jul 25, 2026
Merged

Git-on-my-level merged 12 commits into
mainfrom
codex/native-memory-layout

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • group Home, Memory, Tasks, and Apps into a compact 392-point navigation cluster with content-aware pill widths and consistent 4-point spacing
  • make Memory a direct link to Memories, with an Omi-style hover dropdown containing only Conversations and Brain Map
  • keep every Memory dropdown pill the same size, give it an opaque neutral stacking surface, preserve safe badge expansion, and strengthen pills only on hover or when selected
  • keep Memories and Conversations in the same centered 900-point reading column as Tasks
  • expand an active conversation to the available width only while its transcript drawer is open
  • remove the table-level copy action while preserving focused copy for fenced code blocks
  • add deterministic hover, routing, adaptive-layout, navigation-geometry, and copy-action coverage plus a desktop changelog entry and visual QA record

Verification

  • make preflight (19 checks passed)
  • cd desktop/macos && python3 scripts/check_desktop_test_quality.py
  • cd desktop/macos && ./scripts/dev-feedback.py --once swift 'MemoryGraphRevisitTests|AgentPillLifecycleTests' (89 tests, 0 failures)
  • cd desktop/macos && ./scripts/dev-feedback.py --once swift 'MemoryGraphRevisitTests' after the opaque-dropdown repair (11 tests, 0 failures)
  • built and launched /Applications/omi-qa-main.app against the dev backend
  • verified Memory click-through, dropdown destination routing, the centered 900-point Memory layout, compact top-navigation geometry, and code-only copy affordance in the running named bundle
  • hovered the real Memory pill and compared the supplied transparent-dropdown reference with the running implementation in one input at /tmp/omi-opaque-dropdown-comparison.png; design-qa.md records final result: passed

Main sync

Synced to origin/main at 424c574ffc, including the latest desktop Swift build repair. The focused suite passes cleanly without local unblocks, and the final /Applications/omi-qa-main.app was rebuilt through the named-bundle path from that merged head.

Failure-Class: none

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52f93f7704

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Git-on-my-level
Git-on-my-level force-pushed the codex/native-memory-layout branch from 52f93f7 to 82782b3 Compare July 25, 2026 10:09
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Monitor run — addressed review feedback and rebased onto latest main.

  • Rebased codex/native-memory-layout onto current origin/main (462adc7) to pick up fixes; the previous head was 13 commits behind.
  • Resolved Codex P2 thread (discussion_r3649635093): NSMenu.popUp runs synchronously inside updateNSView, so the Memory destination callback was mutating @AppStorage and the selectedIndex binding during the active SwiftUI view update. The selection callback is now dispatched to the next main run-loop turn (DispatchQueue.main.async) so the representable update returns before any state propagates. Verified: DesktopTopBar.swift compiles cleanly; MemoryGraphRevisitTests source-level tripwires still hold.
  • Pre-existing CI failures remain outside this PR's scope. Desktop Swift Static & Test Contracts and Desktop Swift Build & Tests fail on cannot find 'DesktopLocalProfile' in scope / non-Sendable actor-isolation errors in FocusAssistant.swift, RewindIndexer.swift, and ChatProvider.swift — all introduced by SCA-103: add macOS failure diagnostic context #10523, none touched by this PR.

Git-on-my-level and others added 2 commits July 25, 2026 18:53
…e turn

NSMenu.popUp runs synchronously inside updateNSView, so the selection
callback was mutating @AppStorage and the selectedIndex binding during
the active SwiftUI view update — undefined behavior that can produce
runtime warnings and unreliable navigation. Dispatch the callback to
the next main run-loop turn so the representable update returns first.

Addresses chatgpt-codex-connector P2 review comment (discussion_r3649635093).

Failure-Class: none
@Git-on-my-level
Git-on-my-level force-pushed the codex/native-memory-layout branch from 82782b3 to 09f2fb3 Compare July 25, 2026 11:59
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Monitor run — fixed the Hygiene check failure and re-verified CI state.

  • Added Failure-Class: none to the PR body and commit trailer. The fix(desktop): defer Memory menu selection... commit requires a failure-class declaration per the repo's failure-class-protocol check. Hygiene now passes.
  • Desktop Swift CI failures are pre-existing baseline from SCA-103: add macOS failure diagnostic context #10523, not this PR's diff. FocusAssistant.swift:694 references DesktopLocalProfile without the import OmiSupport that SCA-103: add macOS failure diagnostic context #10523 omitted — a separate upstream fix (fix/focusassistant-missing-omisupport-import) is in flight. This PR touches only DesktopHomeView.swift, DesktopTopBar.swift, MemoryHubDestination.swift, tests, and changelog.

Use equal top-nav metrics, a reliable Omi-style hover dropdown, and one authoritative Memory destination binding. Keep Memory surfaces readable until an active transcript needs the available width.

Verification: make preflight; scripts/pr-preflight --pr-body-file /tmp/pr-body.md; MemoryGraphRevisitTests (9 passing); named omi-qa-main bundle visual QA.
Point the design QA record at the full named-bundle capture rebuilt from the latest origin/main head.
Use content-aware pill widths with a four-point navigation rhythm, preserve badge and Memory-stack geometry, and remove table copy while retaining code-block copy.

Verification: dev-feedback focused Swift tests (89 passing); check_desktop_test_quality.py; live omi-qa-main visual comparison.
Give the stacked destination pills a solid neutral Omi surface, restrained border, and shadow so page content cannot show through the hover menu.

Verification: MemoryGraphRevisitTests (11 passing); live open-dropdown capture in omi-qa-main; design QA comparison passed.

Failure-Class: none
Register OmiMarkdown with the existing Home-chat journey so desktop flow coverage tracks its focused copy affordances.
@Git-on-my-level
Git-on-my-level merged commit c6c1eb5 into main Jul 25, 2026
27 of 31 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/native-memory-layout branch July 25, 2026 19:10
Git-on-my-level added a commit to Git-on-my-level/omi that referenced this pull request Jul 27, 2026
Upstream BasedHardware#10541 unified Memory navigation into the top bar, moving the
hub destination into a DesktopHomeView @AppStorage binding and wrapping
the Memories destination in the readable-width adaptiveContent frame.
Resolved by keeping both: the destination is now the upstream binding,
and the Brain Map case still routes through the canonical atlas gate.

testSecondaryHomePagesReturnHomeOnEscape pinned the literal indentation
of the .onExitCommand block, which this branch's mainContentContainer
extraction re-indents without changing behavior. Relaxed it to match the
handler regardless of nesting depth.

Verification:
  swift build                                     -> Build complete
  swift test                                      -> 3195 tests, 0 failures
  swift-format-wrapper.sh lint-scope              -> clean
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
Upstream BasedHardware#10541 unified Memory navigation into the top bar, moving the
hub destination into a DesktopHomeView @AppStorage binding and wrapping
the Memories destination in the readable-width adaptiveContent frame.
Resolved by keeping both: the destination is now the upstream binding,
and the Brain Map case still routes through the canonical atlas gate.

testSecondaryHomePagesReturnHomeOnEscape pinned the literal indentation
of the .onExitCommand block, which this branch's mainContentContainer
extraction re-indents without changing behavior. Relaxed it to match the
handler regardless of nesting depth.

Verification:
  swift build                                     -> Build complete
  swift test                                      -> 3195 tests, 0 failures
  swift-format-wrapper.sh lint-scope              -> clean
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