Skip to content

Accessibility identifiers for reel and UI automation - #254

Merged
Mpdreamz merged 1 commit into
mainfrom
feature/ax-identifiers
Nov 15, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
feature/ax-identifiers

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

Adds stable accessibility identifiers to the elements something driving heed from outside needs to wait on or click, so reel can `Wait #approvals-pill` and `Click #start-work-start` instead of guessing labels.

Identifier Element
`view-tab-` The title bar's view tabs (`sessions`, `attention`, `watch` for Autopilot, ...)
`pane-tab-` Tabs inside a view (Autopilot, Insights, ...)
`session-row-` Sidebar session rows, by their position
`approvals-pill`, `approvals`, `approval-row-`, `approval-detail`, `approval-button-` The title bar pill, the overlay, its rows, detail and buttons
`pr-card-` The PR card in the inspector rail
`start-work`, `start-work-prompt`, `start-work-repo-`, `start-work-agent-`, `start-work-start` The Start work dialog and its fields
`status-mode` The status bar's mode (NORMAL, INSERT, ...)

No behaviour change: `axID` keeps a view a container (`accessibilityElement(children: .contain)`), so its text and controls read as before.

Checked: dumped the live AX tree of a running build and saw the ids on the tabs, the status mode, the session row, the pill, the overlay with its rows and buttons (the PR card and Start work were not shown in that dump). `swiftformat --lint` clean, `swiftlint` clean, `swift test` 2270 passed, tutor-check 0 problems.

Start work also opens as a separate floating panel (the global shortcut); that panel is its own window, so a recording of the main window only sees the in-window overlay (`o`).

🤖 Generated with Claude Code

Session rows, the approvals pill, overlay, rows and buttons, the PR card, Start work, the view tabs, pane tabs
(Autopilot and the rest) and the status bar's mode now carry stable identifiers (session-row-<n>, approvals-pill,
pr-card-<number>, start-work-prompt, view-tab-<view>, pane-tab-<id>, status-mode). Views stay containers, so nothing
changes for people or screen readers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 15, 2026
@Mpdreamz
Mpdreamz merged commit dd80b5b into main Nov 15, 2026
5 checks passed
@Mpdreamz
Mpdreamz deleted the feature/ax-identifiers branch November 15, 2026 11:52
Mpdreamz added a commit that referenced this pull request Nov 15, 2026
…mory, hero reel) (#257)

The pipeline for recording heed's films with reel, on a throwaway world
that never touches a real heed: nothing is recorded in this PR except
the two brand stings.

## What is in it
- `docs/reels/demo/demo-agent.sh`: a scripted agent. It reports through
the same hooks claude's settings would run (`heed hook claude <Event>`),
raises a real PermissionRequest and acts on heed's decision, opens a PR
(`gh pr create`, so heed tracks it), ends with a `heed-summary:`
sign-off (the ledger's summary with no model call), and answers review
feedback typed into its prompt.
- `docs/reels/demo/gh`: a fake `gh` that plays acme/docs-toolkit#42
through `opened`, `review`, `red`, `green`, `merged`, in the shapes
`GitHub.pullSearchQuery`, `trackedPullsQuery` and `pullDetailQuery` ask
for. `gh pr merge` flips the state (the write path). `cue pr <beat>`
moves it.
- `docs/reels/demo/world.sh`, `launch.sh`, `cue`: a temp home
(`CFFIXED_USER_HOME`, which moves Application Support, Caches and
`~/.config`), an invented repo, a config with nothing that calls a
model, starts an agent, asks macOS for a permission or checks for
updates, and a copy of the app with its own bundle id.
- Seeded memory: `HEED_SEED_WORLD=1` (new,
`Sources/HeedApp/Shots/WorldSeed.swift`, next to `HEED_SHOTS` and
`HEED_TUTOR_CHECK`) writes the fake world's ledger and the `acme`
Mindmap into the stores heed reads, dated from now.
- `docs/reels/brand/`: the owl pill intro (about 1.4 s) and outro (about
1.9 s) as HTML from the landing page's owl and pill, recorded by reel
into `intro.mov` and `outro.mov`.
- `docs/reels/heed.reelpreset`, `docs/reels/hero.reel`,
`scripts/reels.sh`, `mise run reels [name]`.

## Needs
- The accessibility ids from #254 (hero.reel waits on `#approvals-pill`,
`#pr-card-42`, ...).
- reel 0.7 or later (tracks); Homebrew's reel is 0.3.0.

## Not done / rough
- `hero.reel` passes `reel check` but has not completed a take: the
first runs found and fixed several problems (attach to the right
process, launch through LaunchServices so the app is in front), and the
last run stopped because macOS permission dialogs from other apps held
the front. The beats after the permission answer (the review going back
to the agent through the pilot's auto mode, checks red then green, heed
merging, the ledger and memory line, the worktree tidy-up) are untested
in heed.
- Window size is not a heed setting; the reel uses `Set Size`. A tiling
window manager must let Heed (and Chromium for the stings) float;
`launch.sh` adds a yabai rule when yabai runs.
- The Start work global shortcut opens a separate panel that a window
recording does not see; the reel uses `o`.
- Preferences live in the copy's own domain (`net.nullean.heed.demo`) in
the real `~/Library/Preferences`, because cfprefsd ignores
`CFFIXED_USER_HOME`; `launch.sh` wipes it each launch.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant