Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
1852eec
docs: bots rework design spec (Grok-style UI, pi-durable sessions)
sambitcreate Oct 7, 2026
da7a679
docs: bots rework implementation plan
sambitcreate Oct 7, 2026
8031fff
Merge branch 'feature/bot-ui-durable-sessions-2f4474' into worktree-a…
sambitcreate Oct 7, 2026
4dbbbb4
Merge branch 'feature/bot-ui-durable-sessions-2f4474' into worktree-a…
sambitcreate Oct 7, 2026
dedb90e
Merge branch 'feature/bot-ui-durable-sessions-2f4474' into worktree-a…
sambitcreate Oct 7, 2026
7209280
Merge branch 'feature/bot-ui-durable-sessions-2f4474' into worktree-a…
sambitcreate Oct 7, 2026
96afb7d
Merge branch 'feature/bot-ui-durable-sessions-2f4474' into worktree-a…
sambitcreate Oct 7, 2026
1065e75
Merge branch 'feature/bot-ui-durable-sessions-2f4474' into worktree-a…
sambitcreate Oct 7, 2026
13361b7
feat(bot-runtime): per-Bot pi-durable harness host and profile lock
sambitcreate Oct 7, 2026
0f52ee0
feat(bots): starter presets, connection suggestions, and connect cards
sambitcreate Oct 7, 2026
f1685e6
Merge presets and connection core (Task 5.1)
sambitcreate Oct 7, 2026
b409014
feat(bot-runtime): aiden-bot extension and Aiden tool adapter
sambitcreate Oct 7, 2026
a1f6e21
feat(bots): per-Bot routines backend
sambitcreate Oct 7, 2026
9c716a3
Merge per-Bot routines backend (Task 4.1)
sambitcreate Oct 7, 2026
c3a200f
wip: bot session service draft
sambitcreate Oct 7, 2026
29961c3
Merge branch 'feature/bot-ui-durable-sessions-2f4474' into worktree-a…
sambitcreate Oct 7, 2026
edeefac
feat(android): Grok-style Bots home, profile and chat header
sambitcreate Oct 7, 2026
ea3575d
Merge Android Bots rework (Task 3.2)
sambitcreate Oct 7, 2026
b8af99d
fix(android): open Bot profile from the chat header pill
sambitcreate Oct 7, 2026
d687b3e
feat(bot-runtime): Bot session service, Resume/Dismiss/Delete IPC, ro…
sambitcreate Oct 7, 2026
7c73760
feat(telegram): durable Bot ingress and reply outbox
sambitcreate Oct 7, 2026
6eabbd1
docs(memory): record the durable Bot runtime and observed Pi Durable …
sambitcreate Oct 7, 2026
27a46a5
feat(bots): desktop Bot list, calm chat mode, Character card, quick r…
sambitcreate Oct 7, 2026
a29915c
Merge durable Bot runtime on pi-durable (Tasks 1.1-1.3)
sambitcreate Oct 7, 2026
c40b0a1
Merge feature/bot-ui-durable-sessions-2f4474 into worker branch
sambitcreate Oct 7, 2026
9079af2
feat(ios): Grok-style Bots home, merged Profile, and Bot chat header
sambitcreate Oct 7, 2026
5b60fde
Merge iOS Bots rework (Task 3.1)
sambitcreate Oct 7, 2026
cc44b70
Merge feature/bot-ui-durable-sessions-2f4474 into Task 5.2 worktree
sambitcreate Oct 7, 2026
ba0c3ed
Merge branch 'feature/bot-ui-durable-sessions-2f4474' into bots-ui-clean
sambitcreate Oct 7, 2026
fbd8e0b
feat(bots): desktop Profile, Instructions editor, Advanced, Delete, c…
sambitcreate Oct 7, 2026
87c3a9d
Merge desktop Bots UI (Tasks 2.1-2.2)
sambitcreate Oct 7, 2026
1155dff
Merge feature/bot-ui-durable-sessions-2f4474
sambitcreate Oct 7, 2026
d8d2904
Merge feature/bot-ui-durable-sessions-2f4474 (desktop Bots UI) into T…
sambitcreate Oct 7, 2026
3edddab
feat(bot-runtime): legacy tool parity and real approvals for durable …
sambitcreate Oct 7, 2026
7d676c7
docs(memory): record durable Bot tool parity, approvals and model errors
sambitcreate Oct 7, 2026
75f06b4
feat(bots): hard delete Bot data and wipe legacy Bot transcripts
sambitcreate Oct 7, 2026
71917c4
Merge durable Bot tool parity and approvals (Task 1.5)
sambitcreate Oct 7, 2026
d57918a
Merge Bot hard delete, transcript wipe, graceful shutdown (Task 1.6)
sambitcreate Oct 7, 2026
6de0ce8
wip: partial work from interrupted session (resume target)
sambitcreate Oct 7, 2026
7f1230a
wip: partial work from interrupted session (resume target)
sambitcreate Oct 7, 2026
d5ef282
Merge feature/bot-ui-durable-sessions-2f4474 (hard delete, tool parit…
sambitcreate Oct 7, 2026
2796ce3
Merge feature/bot-ui-durable-sessions-2f4474 (tool parity, hard delete)
sambitcreate Oct 7, 2026
bbd5a1e
wip(remote): Bot session, routine, preset and delete routes; drop fav…
sambitcreate Oct 7, 2026
2b406e0
feat(bots): desktop Bot chat on the live projection
sambitcreate Oct 7, 2026
2a4e958
test(bots): Bot chat pane behaviour and fold rule
sambitcreate Oct 7, 2026
109e98c
feat(bots): profile routines, photo menu, connection chips, plain copy
sambitcreate Oct 7, 2026
c790d0f
feat(remote): Bot session, routines, presets, connection requests and…
sambitcreate Oct 7, 2026
8f51bdd
feat(bots): tool approvals in the Bot chat
sambitcreate Oct 7, 2026
a686cb2
docs(memory): desktop Bot approvals and open items
sambitcreate Oct 7, 2026
f5cdc4e
Merge desktop live projection and Bot integration (Tasks 1.4, 2.3)
sambitcreate Oct 7, 2026
df9f8cf
wip(ios): retire Bot archive, favorites, notice and chat-access test …
sambitcreate Oct 7, 2026
763ef6c
Merge feature/bot-ui-durable-sessions-2f4474 (live projection, connec…
sambitcreate Oct 7, 2026
c13ad1b
fix(android,ios): revision 26 DTO round trips and test accessors
sambitcreate Oct 7, 2026
3f639e1
wip(ios): align native Bot tests and cache with revision 26
sambitcreate Oct 7, 2026
3c411dc
fix(ios): bot cache timestamps match the encoded precision; durable r…
sambitcreate Oct 7, 2026
de11da2
Merge Remote contract revision 26 and native Bot consumers (Task 5.2)
sambitcreate Oct 7, 2026
83160db
chore(remote): renumber Bots rework contract revision 26 to 25
sambitcreate Oct 7, 2026
21edd72
test(remote): older client stream cancel stops a Bot chat turn
sambitcreate Oct 7, 2026
cbe74c9
refactor(bots): remove dead Bot-mode branches from ChatPane
sambitcreate Oct 7, 2026
9a031da
test(cli): Bot parity test uses the avatar recipe
sambitcreate Oct 7, 2026
c4dc1c8
test(remote): avoid Array.prototype.at in stream cancel test
sambitcreate Oct 7, 2026
d6a6c11
feat(onboarding): add Meet Your First Bot step
sambitcreate Oct 8, 2026
6b83cca
Merge contract revision 25 renumber, older-client stop test, CLI fix
sambitcreate Oct 8, 2026
5a2d2ae
test(bots): cover the Profile photo menu over the photo IPC
sambitcreate Oct 8, 2026
cd26912
docs: Bots rework plan index, memory and superseded notes
sambitcreate Oct 8, 2026
0429861
Merge Bots rework docs and memory (Task 6.1)
sambitcreate Oct 8, 2026
1079649
test(ci): register the Remote Bot session suite
sambitcreate Oct 8, 2026
7b1f163
test: drop retired archived-Bot fixtures and an orphaned preload channel
sambitcreate Oct 8, 2026
8dc5a95
test(ios): repoint shipping-target checks to the reworked Bots structure
sambitcreate Oct 8, 2026
4c53b77
Merge iOS shipping-target check repoint
sambitcreate Oct 8, 2026
0b5c8b6
fix(ios): restore Apple Intelligence disclosure on Bot photo generation
sambitcreate Oct 8, 2026
540d32b
Merge restored Apple Intelligence disclosure for Bot photos
sambitcreate Oct 8, 2026
d7c466b
fix(onboarding): read the Bot store only while first-run onboarding i…
sambitcreate Oct 8, 2026
4d4188b
test(e2e): starter Bot chat from the empty Bots list
sambitcreate Oct 8, 2026
34ae6d2
Merge desktop Bot cleanup, onboarding step, photo menu test, starter e2e
sambitcreate Oct 8, 2026
54e23f4
test(e2e): cover the new Bot create flow and Advanced access
sambitcreate Oct 8, 2026
363a064
Merge guided-setup Bot e2e rewritten for the new create flow
sambitcreate Oct 8, 2026
c31f3c9
wip: quick-reply cards in durable Bots (interrupted, resume target)
sambitcreate Oct 8, 2026
a774d2e
Merge branch 'feature/bot-ui-durable-sessions-2f4474' into worktree-a…
sambitcreate Oct 8, 2026
9005106
fix(bots): release late live subscriptions and stop feeds of deleted …
sambitcreate Oct 8, 2026
1e27a35
fix(bots): one starter for desktop and phone Start Chat; intro only f…
sambitcreate Oct 8, 2026
8819aa0
fix(bots): Bot chat failure states, plain lock copy, and approvals th…
sambitcreate Oct 8, 2026
920905f
fix(bots): routine editor opens with the routine it edits
sambitcreate Oct 8, 2026
ab9c579
test(bots): onboarding Bots step edge cases; starter e2e renders the …
sambitcreate Oct 8, 2026
f1f2220
fix(android): align Bot rev-25 parsers with the host and harden the s…
sambitcreate Oct 8, 2026
1c8963b
fix(bots): open a phone's connection request from anywhere in the app
sambitcreate Oct 8, 2026
70900c5
test: drop the Bot-chat line from the BTW source check
sambitcreate Oct 8, 2026
6a036d3
fix(remote): announce Bot rev-25 features and close gaps in the Bot s…
sambitcreate Oct 8, 2026
f7c3e64
docs(remote): Bot session reads require chat:read in the OpenAPI cont…
sambitcreate Oct 8, 2026
7c73715
docs(memory): record the shared starter, intro guard, live subscribe …
sambitcreate Oct 8, 2026
33e109c
Merge desktop/main audit fixes for Haiku-built Bot work
sambitcreate Oct 8, 2026
b355a7e
fix(ios): make the Bot session stream work against a real host and ha…
sambitcreate Oct 8, 2026
4e48c84
Merge feature/bot-ui-durable-sessions-2f4474: one Start Chat path
sambitcreate Oct 8, 2026
587dc31
Merge Remote contract and native audit fixes for Haiku-built Bot work
sambitcreate Oct 8, 2026
b476a89
fix(bots): harden durable quick-reply questions on desktop
sambitcreate Oct 8, 2026
1bca36f
fix(remote): Bot question answers reuse the question-respond contract
sambitcreate Oct 8, 2026
3e04008
Merge branch 'feature/bot-ui-durable-sessions-2f4474' into worktree-a…
sambitcreate Oct 8, 2026
593c76d
test(bots): fit question cards onto the merged session audits
sambitcreate Oct 8, 2026
ef307ba
Merge durable Bot quick-reply question cards (desktop, Remote, iOS, A…
sambitcreate Oct 8, 2026
e095f01
fix(bots): drop legacy avatar compatibility from the Bot store
sambitcreate Oct 8, 2026
6f047c6
fix(bots): open connection setup in one window
sambitcreate Oct 8, 2026
e0be32a
fix(bots): save the starter key before creating the Bot
sambitcreate Oct 8, 2026
b9ec318
fix(bots): limit monthly routines to days 1-28 everywhere
sambitcreate Oct 8, 2026
5200292
fix(bots): deleting a Bot already deleted elsewhere succeeds on phones
sambitcreate Oct 8, 2026
00433e8
fix(bots): one Bot colour table for desktop, iOS and Android
sambitcreate Oct 8, 2026
525d1f7
feat(bots): a failed turn is a typed entry with the message Retry res…
sambitcreate Oct 8, 2026
c3f19c6
feat(android): failed turn with Retry, and Files in the Bot chat menu
sambitcreate Oct 8, 2026
cc5f7a3
feat(bots): desktop chat menu Files, file chips, message actions, one…
sambitcreate Oct 8, 2026
8d85cb6
feat(onboarding): Start Chat opens the starter Bot's chat when onboar…
sambitcreate Oct 8, 2026
5460bfa
feat(ios): failed turn with Retry, and Profile, Files, Delete in the …
sambitcreate Oct 8, 2026
e3c927b
fix(ios): use the shell's overflow glyph for the Bot chat menu
sambitcreate Oct 8, 2026
52367ab
fix(onboarding): keep the starter Bot ref above the closed-state return
sambitcreate Oct 8, 2026
7eb8c84
Merge remaining Bots spec gaps: chat menu, files, retry, stop, onboar…
sambitcreate Oct 8, 2026
fd77f68
Merge remote-tracking branch 'origin/main' into feature/bot-ui-durabl…
sambitcreate Oct 8, 2026
100786c
fix(bot-runtime): each queued input runs with its own ingress tool po…
sambitcreate Oct 8, 2026
b993f8f
fix(bot-runtime): journal a Bot delete before its first destructive step
sambitcreate Oct 8, 2026
f2e054a
Merge remote-tracking branch 'origin/main' into feature/bot-ui-durabl…
sambitcreate Oct 8, 2026
4fa3720
fix(telegram): deliver a Telegram reply once its paused Bot turn is r…
sambitcreate Oct 8, 2026
ff75569
fix(bots): keep Bot startup failures from blocking launch, update Lin…
sambitcreate Oct 8, 2026
edab2cf
docs(memory): record Android Bot localization and fences after the ma…
sambitcreate Oct 8, 2026
90df646
fix(bot-runtime): give each Bot its own model runtime view
sambitcreate Oct 8, 2026
0d355f8
fix(remote): phones see and answer durable Bot tool approvals
sambitcreate Oct 8, 2026
404548c
fix(bots): a routine notification opens the Bot's chat, not its Profile
sambitcreate Oct 8, 2026
a95f2f8
docs(memory): record the PR #377 durable Bot review fixes
sambitcreate Oct 8, 2026
abc3cd3
Merge remote-tracking branch 'origin/main' into feature/bot-ui-durabl…
sambitcreate Oct 8, 2026
f907dc0
Merge remote-tracking branch 'origin/main' into feature/bot-ui-durabl…
sambitcreate Oct 8, 2026
63e5b6f
chore: test:serial is main's chain plus test:bot-runtime
sambitcreate Oct 8, 2026
483936b
feat(ios,android): show and answer durable Bot tool approvals
sambitcreate Oct 8, 2026
6db983a
Merge PR review fixes: per-ingress tool policy, journalled delete, Te…
sambitcreate Oct 8, 2026
e268101
fix(telegram): keep a Resume wakeup that lands during a recovery wait
sambitcreate Oct 8, 2026
a0fb1c1
Merge remote-tracking branch 'origin/main' into feature/bot-ui-durabl…
sambitcreate Oct 8, 2026
eaf75bc
fix(ios): keep chat view-model tests off the device's ActivityKit
sambitcreate Oct 8, 2026
c1d38d0
test(ios): fence leaked requests out of later AidenRemoteClientTests
sambitcreate Oct 8, 2026
8e1f26a
fix(android): keep streaming Bot text when a card or update arrives m…
sambitcreate Oct 8, 2026
b0a033f
Merge remote-tracking branch 'origin/main' into feature/bot-ui-durabl…
sambitcreate Oct 8, 2026
38ab09a
fix(ios): isolate AidenChatTests from shared state and wall-clock polls
sambitcreate Oct 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
93 changes: 93 additions & 0 deletions .memory/bot-durable-runtime.md

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions .memory/bots-rework-ui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Bots rework: UI, copy, feature tokens and follow-ups (2026-10-07)

Status: implemented on PR #377 (`feature/bot-ui-durable-sessions-2f4474`). Physical-device acceptance is pending. Spec: `docs/superpowers/specs/2026-10-07-bots-rework-design.md`. Plan: `docs/superpowers/plans/2026-10-07-bots-rework.md`. Runtime: `.memory/bot-durable-runtime.md`.

## Screen map (desktop, iOS, Android)
- **List:** one list of Bots, with search and +. Row: avatar with an activity dot, name, subtitle pill, last-message preview, relative time. A paused Bot shows "Paused — tap to resume". Tapping a row opens its chat. Long-press or context menu: Profile, Delete. Bots from a paired Mac show a small Mac badge.
- **First run ("Meet Your First Bot"):** a carousel of starter presets. Start Chat creates the preset (idempotent, keyed `preset:<id>`) and opens its chat. Create My Own opens the create flow.
- **Create (two steps):** name and "What should it help with?", then optional connection chips (Skip creates). The self-intro runs only on genuine creation, with a model configured.
- **Chat:** header with back, a name pill that opens Profile, and ••• (Profile, Files, Delete). Plain bubbles, file chips, A–E quick replies (up to 5 options), connect cards, and one collapsible "Working…" / "Updates" line. Long-press gives Copy and Reply. Desktop chat mode hides workspace, git, permission, model and thinking pickers.
- **Profile:** photo (Choose photo, Generate on iOS only, Remove photo), inline name and subtitle, Character (colour and shape, Reset to default), Instructions full-screen editor, Routines, and ••• (Advanced, Delete Bot).
- **Advanced:** model and image model (auto by default), Full or Custom access, opening greeting, and the Telegram binding (desktop only).
- **Delete:** a confirmation dialog with a destructive button.

## Key files
- Desktop: `renderer/main/bots-view.tsx` (route shell), `renderer/main/bots/*` (`bot-list.tsx`, `bot-starter-carousel.tsx`, `bot-create-flow.tsx`, `bot-chat-pane.tsx`, `bot-chat-header.tsx`, `bot-profile.tsx`, `bot-advanced.tsx`, `bot-delete-dialog.tsx`, `bot-routines.tsx`, `bot-routine-editor.tsx`, `bot-character-card.tsx`, `bot-updates.tsx`, `bot-session-state.ts`, `use-connection-setup.tsx`), `renderer/components/bots/connect-card.tsx` and `connection-chips.tsx`, shared helpers `renderer/shared/bot-presets.ts`, `bot-routine-label.ts`, `bot-routine-schedule.ts`, `bot-connections.ts`, live hook `renderer/lib/use-bot-live.ts`.
- iOS: `ios/AidenOnTheGo/Features/Bots/*` (`AidenBotsHomeView`, `AidenBotPresetsView`, `AidenBotCreateView`, `AidenBotSessionChatView`, `AidenBotSessionModel`, `AidenBotProfileView`, `AidenBotAdvancedView`, `AidenBotRoutinesView`, `AidenBotCharacter`, `AidenBotImagePlaygroundView`), models `Models/AidenBotSession.swift` and `Models/AidenBotRoutine.swift`.
- Android: `android/app/src/main/java/sbtbiswas/AidenOnTheGo/features/bots/*` (`AidenBotsHomeScreen`, `AidenBotPresetCarousel`, `AidenBotSessionScreen`, `AidenBotSessionController`, `AidenBotProfileScreen`, `AidenBotAdvancedScreen`, `AidenBotRoutines`, `AidenBotDeleteDialog`, `AidenBotCharacterCard`, `AidenBotChatHeader`, `AidenBotCanonicalAvatarView`).
- Remote host: `main/services/aiden-remote-protocol.ts` (revision and feature tokens), `main/services/aiden-remote-router.ts` (routes), `main/services/aiden-remote-bot-session.ts`.
- Main: `main/services/bot-runtime/*`, `main/services/bot-connection-setup.ts`, `main/services/bot-connection-dismissals.ts`, `main/services/scheduled-bot-routines.ts`.

## Deleted
- Desktop: the Conversations section and `startConversation`, the `BotEditor` wizard, `BotAccessSummary`, `BotFaceStudio`, the LLM avatar generator (`bot-avatar-generator-core.ts`, `bots:suggestAvatar`, `cancelAvatarSuggestion`), archive UI, `bots:openChat`.
- iOS: `Prototype/BotFirstPrototype.swift` and its snapshot test, `AidenBotEditorView`, `AidenBotCustomAccessFlowView`, Favorites, the compose chooser, the Full Access notice wall, the "Set Up Image Understanding" alert.
- Android: `prototype/BotFirstPrototype.kt`, `AidenBotCustomAccessFlowScreen.kt`, `features/remote/AidenBotChatToolsView.kt`, `AidenBotImagePlaygroundView.kt`, Favorites, FAB chooser, Recent Chats, eye and accessory pickers.
- Remote: `/bot-favorites`, `/chats/:chatId/capabilities` for Bots, `/bots/:id/archive|restore` (now refused). Delete is `DELETE /bots/{botId}`.
- Archive is replaced by a permanent Delete. Pre-1.0, no migration: legacy Bot transcripts are wiped and extra Bot conversations are removed.

## Copy (exact)
- Delete body: `Delete {name}? This permanently erases {name}'s chat, memory, instructions, routines, files, and photo. This can't be undone.` Button: `Delete Bot` (destructive).
- Interrupted: `I got interrupted while working on this.` with **Resume** and **Dismiss**. Access drift: "This Bot's access changed. Review it in Advanced."
- Row and state labels: `Paused — tap to resume`, `Needs an AI model` (with Set up).
- Lock: "Bots are open in another Aiden window." (no writes happen).
- Connection card: "Connect {name}" with **Connect** and **Not now**; after setup, "Connected ✓". Mobile button: **Finish on your Mac**.
- Routine silence token: `[SILENT]`. Routine rows use the host label, e.g. "Every Sunday at 8:41 AM".

## Feature tokens and revision
- Aiden Remote contract revision **25** (`main` is at 24). Tokens in `aiden-remote-protocol.ts`: `bot-delete-v1`, `bot-durable-session-v1`, `bot-routines-v1`, `bot-connection-requests-v1`, `bot-presets-v1`. iOS (`AidenBotSessionModel.swift`) and Android consume the same tokens, and fixtures are shared across TS, Swift and Kotlin.
- Routes added in revision 25: `POST /bots/{id}/resume` and `/dismiss` (idempotent per request UUID), `DELETE /bots/{id}`, `GET/POST/PATCH/DELETE /bots/{id}/routines`, `POST /bots/{id}/connection-requests`, `GET /bot-presets`, `POST /bots/from-preset`.
- Remote audit (2026-10-07): `/server.features` announces each token only while its route is wired (router test "revision 25 Bot feature tokens…"; before this the tokens were never sent). `GET /bots/{id}/session` and `/session/events` need `chat:read` as well as `bot:read`; the stream crosses the revocation fence and `revokeDevice` closes it; a rebuilt Remote API closes the old session service.
- The Remote session projection is derived from the desktop `projectBotTranscript`, so phones hide the self-intro prompt and whole `[SILENT]` turns, show a failed turn as "I couldn't finish that reply. Try sending it again.", and resolve connect cards with the desktop `connectCardStatus`. The stream sends a mid-stream `snapshot` when shown history is rewritten, always sends `partial` with `""` when it clears, and re-sends an `entry` id when it changes (clients upsert by id). Every frame is exactly one seq after the last (projection is serialized per Bot).
- `POST /bots/from-preset` uses the process-wide `botStarter()` (shared with desktop Start Chat; the creating call alone sends the self-intro), with the device as the access audience. Routine `lastError` is redacted of local paths and key-shaped strings for phones.
- A revision-24 phone cannot read a revision-25 Bot list (its parsers require `favorites` and avatar `eyes`/`detail`); accepted pre-1.0. New clients show a plain "update Aiden" error against a revision-24 Mac.

## Android after merging main (PR #374)
- Bot screens follow main's localization and shape conventions: composable copy is in `strings.xml` (`bots_*`, `bot_menu_*`, `bot_profile_*`, `bot_editor_*`, `bot_character_*`, `bot_color_*`, `bot_shape_*`, `bot_routine*`, `bot_advanced_*`, `bot_session_*`, `bot_files_*`, `bot_presets_*`), radii come from `MaterialTheme.shapes`, and enums carry `@StringRes` (`AidenBotAccessChoice`, `AidenBotRoutineFrequency`, colour/shape labels). Still English by convention: JVM-tested helpers (`AidenBotHomeRow.preview`, `aidenBotChatPlaceholder`, `aidenBotDeleteCopy`, `aidenBotRoutineWriteFailure`, `AidenBotSessionCopy.PAUSED_ROW/NEEDS_MODEL`).
- Profile, Instructions editor, Files sheet and the legacy Bot chat route fence reads with `coordinator.holdsReadAuthority`; Profile, Advanced, Files and the session use skeletons, not spinners; Bots home revalidates on `ON_START`; screens use `aidenReadableWidth()`.
- Main's Custom Access, Image Studio, Bot chat tools and prototype snapshot test stay deleted, with their strings.
- Desktop launch starts Bots through `startBotApplication` (`main/services/bot-startup-core.ts`), which never throws.

## Known follow-ups
- Android Advanced still lists models as radio rows; main's shared `AidenModelPickerField` is not used there yet.
- **iOS simulator flake:** on Xcode-beta iOS 27, `AidenRemoteClientTests` failed to launch the host in parallel mode and passed serially. Record the run link on the PR.
- Monthly routines are limited to days 1–28.
- The Updates fold shows narration only (one line per reply on desktop).
- Telegram turns and routine turns that hit an approval-gated tool wait for an answer on desktop or phone.
- Android has no Generate (Image Playground) option.
- Phones show no inline file chips: Remote session entries carry no file metadata.
- Subagents on durable Bots are read-only children. Write, shell, web, MCP and delegation lanes are not ported, and Form Fill is not offered.
- Playwright e2e for preset, then Start Chat, then quick reply is not written yet.
- Dead but present: `BotDefinition.archivedAt` in `renderer/shared/bots.ts`, the `includeArchived` query, `bot-archived-file-read-authority.ts`, and the capability `authorityStatus` field.
14 changes: 14 additions & 0 deletions .memory/live-activity-freshness-bot-deeplinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,17 @@ Status (2026-10-01): merged in PR #276 (on main after 0.51.0); plan moved to `do
- Reading `activity.activityState` right after `await manager.endAll(...)` was flaky on loaded CI simulators (run 37530293739 attempt 2, line 480, `XCTAssertTrue failed`, 0.13 s).
- Tests now `await assertDeliveredEnd(of:)`, which subscribes to `activityStateUpdates` before reading the current state and uses the same failure-only 30 s ceiling. `deliveredContent` and `assertDeliveredEnd` share the generic `AidenDeliveryRace`.
- Branch `fix/ios-activitykit-end-state-race`.

## Chat view-model tests are kept off ActivityKit (2026-10-08)

- `AidenChatTests.testForeignRunResponseStaysVisibleUntilAFailedTranscriptReadRecovers` failed intermittently on PR #377 CI (runs 37721736343, 37805265233) with `Timed out waiting for failed transcript read`; every later assertion passed.
- Cause: `makeProgressLifecycleModel` used `AidenRemoteLiveActivityManager.shared`, so the model drove the simulator's real ActivityKit. A foreign run's `.ended` effect awaits `liveActivities.finish` (`activity.end`) before `endForeignRunQuietly` reads the transcript; on a loaded CI simulator that await took longer than the test's ~5 s poll (the xcresult shows live `Updating content for activity` lines and an ActivityKit `XPC connection interrupted` inside the test). Owned streams also await `finish` before `finishStream`.
- Reproduced locally by delaying `finish` by 6 s: the same single failure message. With the fix, that delay no longer reaches the test.
- Fix: `AidenRemoteLiveActivityManager(drivesActivityKit: false)` requests, updates and ends nothing and sees no system activities; chat view-model test helpers inject it. Production keeps `.shared` (default `true`). `AidenNativeIntegrationTests` still exercises the real ActivityKit.
- Found while verifying: `AidenRemoteClientTests.testBotDeleteSendsTheBotRevisionAndOnlyWhenTheHostAdvertisesIt` failed once locally with `Unexpected Bot delete request: GET /api/aiden/v1/bot-capabilities`. The previous test's `AidenBotChatToolsModel.refresh` leaves its cancelled `async let` catalog request to reach `startLoading` after the next test installs its handler. `AidenRemoteMockURLProtocol` now stamps each `makeSession()` with a per-test epoch header and fails requests from an earlier epoch with `URLError(.cancelled)`.

## AidenChatTests isolation, second pass (2026-10-08)

- `testCancelledOlderProgressObserverCannotClearNewerHandle` failed on PR #377 CI (run 37829964725) with `Timed out waiting for progress SSE request (expected).` after 6.9 s. `waitForProgressRequestCount` polled 100 × 10 ms (about 1 s) for an observer that needs three stub round trips (tasks, agents, then the SSE). The xcresult shows the host stalled: older tests' leaked `stream-control/events` requests timing out and reconnecting during this test. A 1.2 s delay on the tasks stub reproduces the exact message on the old helper. With the new helpers all four progress tests pass under that delay.
- `main` shows the same family: run 37549186978 `testChatOpenFetchesTheProgressSnapshotOnce…` saw `agentRequestCount` 2 instead of 1, which is a leaked earlier model hitting the shared static stub counter.
- Fixes: `AidenRemoteLiveActivityManager.shared` no longer drives ActivityKit in the unit-test host. This follows the `AidenRunAlertNotifier.shared` precedent and also covers coordinator purges (`endAll`). ActivityKit tests build their own managers. `AidenChatProgressLifecycleURLProtocol` fences requests from sessions of earlier tests with a per-test epoch header (set in `setUp`). Request-count waits resume on the stub's count event (`whenRequests(_:reach:)`) with a 30 s failure-only ceiling. The 150 ms settle sleeps became condition waits. `makeProgressLifecycleModel` defaults to per-test cache, draft store and model-preference suite instead of `.shared`.
Loading
Loading