fix(microblog): publish sheet opens unfocused
Since the categories field landed, the Micro.blog publish sheet opened with that field focused and its completion menu popping. A sheet window takes its initial first responder like any window — its first text input — and textInputSuggestions shows its list when the editing interface is activated, so the menu popped the moment the sheet opened. The sheet now rides the launch-focus-reset rider from r8, once per window: it resigns the auto-focus at the sheet's first become-key, and a later re-key keeps whatever the writer focused. The rider is InitialFocusReset(scope:) in the shared chrome; the library column mounts the once-per-process scope exactly as before. The SwiftUI door is closed: defaultFocus with false or nil changes nothing for this assignment on macOS 27.2.1. Verified with a bundle-launched OS-behaviour probe kept under prototypes/ (re-run it after every macOS point release): the three non-fix variants reproduce the auto-focus and the suggestions window, the rider variant never shows either, and a run whose sheet never became key exits 2 instead of printing the green verdict. Owner live check passed. Reviewed (three-reviewer finish-audit): the probe's false-green verdict, a snippet missing its scope label, and duplicated mechanism comments were found and fixed before this commit. Rail 814/814; SwiftFormat and SwiftLint clean. Docs: Museion/AGENTS.md bullets, an AGENTS.md learning, CHANGELOG [Unreleased], the devlog, and the swift wiki (a sheet hands its initial focus to its first text input). Unticketed follow-up to the Micro.blog categories work; owner report 2026-12-05.
This commit is contained in:
1 parent
36393a9e8e
commit
eca90a981c
9 files changed
+438
-64
No files matched your search
@@ -171,6 +171,7 @@ Single-context: `GLOSSARY.md` + `docs/adr/` at the repo root. See `docs/agents/d
|
||||
- `value of type 'X' has no member` while the emitted module DOES carry the symbol is a spelling drift between targets, not a stale build — grep the exact name across app AND tests before hunting binaries: a fresh test file's `microblogStatus` against the code's `micropubStatus` reads exactly like the stale-binary signature above and cost a DerivedData dive (#206)
|
||||
- A flip proves a guard only when it SOLELY causes a red pin — two flips on one pin mask each other (split-off hid dedupe; never-append hid `finished`); re-flip masked guards alone (#207)
|
||||
- A flip that reddens NOTHING means the pin observes a downstream state another guard also holds — assert the guard's own output (`lastError` text), then re-flip; `runningPass == nil` held through the host's one-shot lock while the refusal under test was disabled (#208)
|
||||
- A SwiftUI sheet opens on its FIRST text input (`.defaultFocus` is a no-op, 27.2.1) — mount `InitialFocusReset(scope: .oncePerWindow)`, re-probe per OS release (`publish-sheet-opens-unfocused`)
|
||||
### Trust boundaries
|
||||
- A guard defending against a downstream validation must mirror its EXACT emptiness/shape semantics — FixCardStore validates TRIMMED emptiness, so an `isEmpty` guard passes whitespace-only phrases through and the whole-call failure silently kills the entire submit (#6)
|
||||
- A trust gate matches its SINK's grammar, not just its own format check — `trustworthyURL` (built for line-bounded frontmatter) passed URLs whose `)` injects a live link once the sink became markdown; gate at the sink (angle-form destination), never trust the reused gate (#34)
|
||||
@@ -187,6 +188,7 @@ Session logs live in `docs/devlog/` (one per completed task/issue/milestone). Fu
|
||||
<!-- write-log: window-start -->
|
||||
| Date | Log |
|
||||
|------|-----|
|
||||
| 2026-12-05 | [20261205-publish-sheet-opens-unfocused_log.md](20261205-publish-sheet-opens-unfocused_log.md) |
|
||||
| 2026-12-05 | [20261205-issue208-post-summary-for-micro-blog_log.md](20261205-issue208-post-summary-for-micro-blog_log.md) |
|
||||
| 2026-12-04 | [20261204-issue207-allow-setting-and-creating-micro-blog-categories_log.md](20261204-issue207-allow-setting-and-creating-micro-blog-categories_log.md) |
|
||||
| 2026-12-04 | [20261204-issue206-display-micro-blog-published-status_log.md](20261204-issue206-display-micro-blog-published-status_log.md) |
|
||||
@@ -196,5 +198,4 @@ Session logs live in `docs/devlog/` (one per completed task/issue/milestone). Fu
|
||||
| 2026-12-03 | [20261203-release-012-image-drop-fix_log.md](20261203-release-012-image-drop-fix_log.md) |
|
||||
| 2026-12-03 | [20261203-image-drop-27-2-drag-routing-pastes-path_log.md](20261203-image-drop-27-2-drag-routing-pastes-path_log.md) |
|
||||
| 2026-12-03 | [20261203-release-011-apex-refresh-is-step-one_log.md](20261203-release-011-apex-refresh-is-step-one_log.md) |
|
||||
| 2026-12-01 | [20261201-release-010-readme-notes-packaging_log.md](20261201-release-010-readme-notes-packaging_log.md) |
|
||||
<!-- write-log: window-end -->
|
||||
Reference in new issue
Block a user