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.
The publish sheet flipped a draft live and remembered nothing, so
nothing on disk said a piece was out and the library could not show
it. A successful Publish now stamps `micropub_published` in the
piece's frontmatter; the row and the sheet read `published <date>`
or `draft on Micro.blog`, and a published piece's menu opens the
live post.
Sending a piece again no longer creates a second post: a piece that
remembers its post updates it in place (name and content only, so
categories set on Micro.blog survive). An image whose bytes are
unchanged rides its earlier upload through a per-piece memo. When
Micro.blog answers 404 the piece forgets both keys and the sheet
offers a fresh draft; a clear that cannot land says so instead of
claiming the link is gone.
Museion's micropub keys are dropped at the import boundary. An
imported `micropub_url` passes the format gate and would aim the
in-place update at one of the writer's own posts under their token,
so the keys are treated like `origin`: ours to set, never a foreign
file's to carry in. Publish is model-owned and trust-gates its URL
before anything is stamped.
Tests read recorded requests through an optional accessor: an
out-of-range subscript after a failed count expectation trapped the
hosted runner and reported every queued test as crashed.
+16 tests net (17 new pins in MicropubStatusTests, one retired whose
premise the in-place design voids); every new pin was watched fail
on its own guard. Rail 752/752; SwiftFormat and SwiftLint clean.
Reviews: standards + spec during the build, then a three-reviewer
finish audit. Docs: AGENTS.md bullets and learnings, GLOSSARY
terms, CHANGELOG [Unreleased], README, and the devlog.
Closes#206
Every piece row gains a Finder hand-off: Reveal in Finder opens
the piece's post.md selected, Copy Path puts its absolute path on
the clipboard (#205). One shared FinderHandOffButtons fragment in
the workspace chrome serves both menus - the library column
(between Move to Archive and the destructive Trash) and the
Archive pane (appended after Convert). Both act on
PostsModel.fileURL(for:), which resolves the piece through the
one PostStore.folder(of:home:) resolver against the watched Home
(never the scan snapshot) and answers nil when the piece is gone,
so a vanished row no-ops instead of revealing a stale path.
fileURL lives in PostsModelIdentity - the (Home, ID) file - not
the write rail: a pure read, nothing written, no strip. A
View-extension wrapper was tried and deleted as a Middle Man; the
menus mount the struct directly.
+3 tests (projects/ resolve, archive/ resolve, vanished -> nil),
flip-verified: bypassing the resolver reddens exactly the
vanished and archive pins (733/735). Rail 735/735; SwiftFormat
and SwiftLint clean. Reviews: standards + spec (two rounds), then
finish-audit (general, security, ponytail) - the audit added the
archive-root pin and fixed three stale headers. DOX: five
Museion/AGENTS bullets.
The release 0.1.2 log's rows still belong to another session and
stay in the working tree; INDEX and the AGENTS window here carry
only the #205 row.
Closes#205