Skip to content

fix(desktop): stop sending and rendering the 🧠 unset emoji on client projections - #23538

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/desktop-emoji-unset
Oct 24, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/desktop-emoji-unset

Conversation

@Git-on-my-level

Copy link
Copy Markdown
Member

What changed and why

Follow-up to #23512 (merged as 98e9bbd): the macOS desktop app still stored and showed the 🧠 "unset" emoji in two places that cleanup left out. This PR removes it from the desktop send path, the desktop render path, and closes the backend intake hole so no client can store 🧠 as an unset value.

  • Desktop send (ClientProcessingContract): when local inference has no emoji (or a blank one), the emoji key is omitted from the wire instead of carrying 🧠; assembleMinimum omits it too. The backend stamps the category fallback (💬 for other).
  • Desktop render (ConversationProjectionRendering): a projection whose stored structure has no emoji renders 💬, not 🧠.
  • Backend (ProjectedStructure): the emoji routes through the shared fallback_emoji at validation — omitted, empty, whitespace, or the 🧠 sentinel all land on the category's emoji (💬 for other); a chosen emoji survives. Every intake path (from-segments, late-bind idempotency hit, chunk assembly) validates through this model, so no client can store 🧠 as an unset value.
  • Backfill docstring: backfill_notes_v2_default_emoji.py claimed rows whose category has no mapping keep 🧠; under the post-fix(notes): stop persisting the 🧠 unset emoji default on deterministic and legacy paths #23512 mapping every category maps (other → 💬), so each affected row is rewritten. Docstring only — the script was not run.

Product invariants affected

none

How it was verified

  • Backend: pytest tests/unit/test_client_processing_schema.py (88 passed, including the new emoji-policy tests), plus the acceptance, trust-boundary, finalize, and free-tier suites run individually (141 passed). The prometheus-registry collision that appears when finalize+acceptance run in one pytest invocation reproduces on unmodified main and is unrelated to this change.
  • Desktop: xcrun swift build -c debug clean; swift test --filter on ClientProcessingContractTests + ConversationProjectionRenderingTests (24 tests) and the adjacent local-projection suites (33 tests) all pass; pinned swift-format and SwiftLint report zero violations.

Tests

  • Swift: ClientProcessingContractTests — assemble omits the emoji key when the draft has none or a blank (asserted on the encoded JSON, not just the in-memory optional), keeps a chosen emoji, and assembleMinimum omits it; ConversationProjectionRenderingTests — a projection without an emoji renders 💬.
  • Backend: test_client_processing_schema.py — 🧠 is never stored (work → 🧑‍💻, other → 💬), empty/omitted/whitespace fall back to the category emoji, a chosen emoji (including 💬) survives, and the full intake payload binds the fallback on the embedded structure.

UI evidence

UI-Evidence: none -- stored-projection decode fallback only; the visible change is which emoji glyph an existing row renders, with no new or changed UI state to capture

Failure-Class: FC-unset-schema-default-persisted-as-chosen-content

🤖 Generated with Claude Code

…projections

Follow-up to #23512 for the two desktop siblings it left out. The macOS
client stamped 🧠 into ClientProcessing whenever local inference produced
no emoji (assemble, assembleMinimum) and rendered 🧠 for a projection
without one, so free-tier locally projected conversations kept showing
the brain as if a model had chosen it.

- Desktop send: omit the emoji key when the draft has none or a blank;
  the backend stamps the category fallback (💬 for other).
- Desktop render: a projection without an emoji renders 💬.
- Backend: ProjectedStructure routes its emoji through the shared
  fallback_emoji at validation, so no client can store 🧠 (or empty) as
  an unset value at any intake — the late-bind and chunk-assembly paths
  validate through the same model.
- Backfill docstring: under the post-#23512 mapping every category maps
  (other → 💬), so no affected row keeps 🧠; script not run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mintlify

mintlify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
omi 🟢 Ready View Preview Oct 24, 2026, 8:06 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T20:08:36.995802Z 9e9cbce PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit b60bf4b into main Oct 24, 2026
68 of 70 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/desktop-emoji-unset branch October 24, 2026 20:49

This branch was successfully deployed

1 active deployment
staging - docs — 9e9cbce4 Deployed Oct 24, 2026 by mintlify[bot]
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