Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .memory/bot-chat-activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,8 @@ If `main` has moved past 29, change every `30` D introduced to the next free rev
- Still open: a manual VoiceOver/TalkBack pass and an end-to-end run against a real Mac on this branch.
- Overlapping Stops where one fails briefly clear "Stopping" (cosmetic). No Remove for queued messages on phones (no Remote withdraw route). Chat activity picks have no durable queue.

### Bots across Macs (2026-11-24)
- PR 1 (#895, desktop only): paired Mac's Bot rows show the feed's avatar, Needs you over Thinking over stop status, never the description; `ChatSidebar` owns `usePeerHostSidebar` so feeds stay live on the Bots page; remote Bot chat only treats 404/403 as gone.
- PR 2 (Remote revision 66, provisional; re-claim at merge): host-feed Bot rows (`HostFeedBot` in openapi.json, `parseAidenRemoteHostFeedBot`) carry an optional one-line `preview` (140 characters, no control or format characters) and always come from `BotLiveProjection.summary` (`inboxSignals` was removed). New peer binary operation `botAvatar` (`GET /bots/{botId}/avatar/{assetRevision}`) fetches photo avatars for the row and chat title. Unread dots for remote Bots are a per-device record in local storage (`renderer/lib/remote-bot-seen.ts`, key `aiden-agent.remote-bots-seen.v1`, record version 2). Every time in it is the host's, never this Mac's clock: a per-host baseline (the newest `lastReplyAt` when this Mac first lists that host's Bots, so existing replies start read) and per-Bot seen times. A reply counts as seen only once the remote chat's session view shows it (`remoteBotShownReplyAt`), not when its row is selected. The host baseline is taken only from a listing whose every row is `summarized: true` (proof of revision 66, and no Bot whose summary read failed is left out; `summarized` marks every row whose summary the host read, so a host whose Bots are all still empty gets baseline 0 and their first reply shows a dot), since an older host sends `lastReplyAt` only for open feeds. Host feed Bot signals are cached per Bot (`createHostFeedBotSignalsCache` in `aiden-remote-host-feed.ts`) and invalidated by that Bot's `bots:changed` / `bots:attention`; `onBroadcast` forwards only the `botId` of a `bots:*` payload.
- Still to come: PR 3 (plan, access-request and memory cards in remote Bot chats, load older), PR 4 (phones show Needs you), PR 5 (headless server sends the same Bot signals).

1 change: 1 addition & 0 deletions .memory/inbox-sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ Related: [[chat-row-states]], [[sidebar-chat-row-context]], [[multi-host-control
### Follow-up review: admitted details, transcript-free feeds and phone inverses (2026-11-02)
- iOS local summary edits retain the generation of a whole detail/view admission across later triage/read/activity writes. A stale refresh cannot replace its newer title/reply/read state; a newer page reply still wins. Both completion orders are exercised in real Home/cache tests.
- Host-feed Bot signals use `BotLiveProjection.inboxSignals`: runtime state/attention and an already-open feed's reply timestamp only. Closed feeds never open conversation entries or context. The full Bot list summary still has its separate preview cache. Native clients do not consume the desktop host feed.
- Superseded by Remote revision 66 (2026-11-24, Bots across Macs PR 2): `inboxSignals` is gone and host-feed Bot rows come from `BotLiveProjection.summary`, the same cached summary the Bot list uses. A closed Bot's transcript is read again only when its newest entry changes, and every row now carries `lastReplyAt` plus a one-line `preview` (140 characters). See `.memory/bot-chat-activity.md`.
- Both phones offer Mark not done and Unsnooze as persistent swipe/accessibility actions on searched held rows, under the existing capability and active-run guards. Undo of Mark not done restores the historical Done timestamp using guarded `restoreDoneAt`, matching desktop. Offer/binding, request-body, optimistic placement and Android rendered-action coverage exercise the behavior.
- Validation: iOS 33 focused simulator tests pass; disabling the whole-admission reconciliation reproduces stale title in the new Home regression. Android 54 focused JVM tests and all 8 rendered Inbox tests pass on API 36.1; the inverse-action screenshot was inspected. The existing aged-Undo UI test now posts after fixture composition, so startup cannot consume its remaining second. Bot projection/host feed 75 tests, handler/peer Inbox 7 tests, TypeScript, scoped ESLint and CLI build pass.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class AidenBackgroundJobsTest {
* person stopped, or a reason this version does not know, reads as plain Stopped. */
@Test
fun aJobStoppedAfterTheChatWentQuietSaysSo() {
assertEquals(65, contract.getValue("contractRevision").jsonPrimitive.int)
assertEquals(66, contract.getValue("contractRevision").jsonPrimitive.int)
val list = contract.getValue("backgroundJobsChatSettled").jsonObject.getValue("list")
val decoded = AidenBackgroundJobs.decode(list.toString())
val labels = decoded.jobs.associate { it.id to AidenBackgroundJobCopy.status(it, start) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AidenBotAccessRequestsContractTest {
private fun frame(element: JsonElement) = AidenBotSessionEventStream.decodeFrame(element.toString().toByteArray(), "bot_fixture_01")

@Test fun canonicalCardsSessionFramesIssuesAndLegacySettlement() {
assertEquals(65, root.getValue("contractRevision").jsonPrimitive.int)
assertEquals(66, root.getValue("contractRevision").jsonPrimitive.int)
assertEquals("bot:access-requests", fixture.getValue("capability").jsonPrimitive.content)
val folder = AidenBotAccessRequest.parse(fixture.getValue("folder"))
val mac = AidenBotAccessRequest.parse(fixture.getValue("wholeMac"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AidenBotPlanContractTest {
assertNull(plan.items.first().used); assertNull(plan.items.first().max)
}
@Test fun canonicalSnapshotAndOrderedPlanFramesDecode() {
assertEquals(65, root.getValue("contractRevision").jsonPrimitive.int)
assertEquals(66, root.getValue("contractRevision").jsonPrimitive.int)
val session = wire.decodeFromJsonElement(AidenBotSession.serializer(), fixture.getValue("session"))
assertEquals(0L, session.seq)
assertHostFolderReview(requireNotNull(session.plan))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ class AidenRemoteClientTest {
@Test
fun streamSnapshotReasonsDecodeSharedFixtureRejectInvalidReasonsAndNegotiateSolo() = runBlocking {
val fixture = contractFixture()
assertEquals(65, fixture.getValue("contractRevision").jsonPrimitive.int)
assertEquals(66, fixture.getValue("contractRevision").jsonPrimitive.int)
val section = fixture.getValue("streamRecovery").jsonObject
assertEquals("stream:snapshot-reasons", section.getValue("capability").jsonPrimitive.content)

Expand Down
2 changes: 1 addition & 1 deletion docs/aiden-on-the-go-remote-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Pairing a computer gives it full control of this computer's chats: it can read t
- **Visuals.** A visual the other computer pictured shows as that picture. A native visual it did not picture (any `render_ui` visual from `aiden serve`) shows as its text, line by line, where its tool call ran, with **Copy as text** and nothing inside to tap or change. An HTML visual (`render_artifact`) the other computer did not picture, for example because `aiden serve` found no Chrome, shows nothing here; the reply's text still says what it held.
- **Not here.** Read-aloud is not offered for a remote chat.
- **New chats.** On a new chat, choose the computer in the composer's machine picker, then one of its workspaces and models. Attachments upload to that computer. Pictures in a format the other computer does not take (WebP, GIF, BMP) are converted first, to PNG (or JPEG when that is what fits), and shrunk step by step until each is within 8 MB and the message's attachments together are within 16 MB. An animated GIF sends its first frame. HEIC photos can't be sent to another computer yet: the composer asks you to export one as a JPEG first. A picture this Mac cannot open is not sent either, and the composer says to save it as a PNG or JPEG. When the other computer runs contract revision 50 or newer, pictures go as their own bytes instead of base64 text, about a quarter less to send.
- **Bots.** Paired computers' Bots appear in the Bots area below this Mac's own, under "On <computer name>", with the avatar shape and colour they have there (a custom photo still shows the stock Bot icon). A row stays current on any page, including the Bots pages. Like this Mac's own rows, it shows **Needs you** and "Waiting for you" while the Bot waits on an approval, question, hand-off or issue there, "Thinking…" while a turn runs (only while that computer is online), and otherwise why it stopped (Paused, Interrupted, Needs an AI model). A Bot's description is never shown as its line; search still matches it. Opening one row leaves the others clickable. The open chat's title shows the Bot's avatar. A chat that loses its connection reconnects on its own; it says the Bot is gone only when that computer answers that the Bot was deleted or this Mac may no longer read it, and a message sent while it reconnects shows as soon as that computer has it. Opening one shows the same single conversation its own computer, phones and Telegram show: the Bot runs there, and this Mac sends messages, Stop, Resume, Dismiss, question answers and tool approvals to it. A tool that only its own computer may allow (Computer Use) can only be denied from here. Connect cards ask the Bot's computer to finish the connection there. When the app is already connected on that computer but the Bot's Custom access leaves it out, the card still reads **Finish on <computer>**, and that opens the Bot's chat there, where its card's **Connect** adds the app to that Bot. Phones work the same way with **Finish on your Mac**. If that computer runs an older Aiden, update it; an older Mac sending to a newer computer's Bot is told to update. When the Bot's computer offers hand-offs (contract revision 37), a step the Bot hands back ("Your turn: …") can be answered from here too, in two steps: **Take control** first (it opens the page the step names, if any), then **I'm done** (with a note typed in the composer if you like), **Skip**, or **Open again** for that page. A step on the Bot's own screen over there puts **Finish on <computer>** first, which brings it forward on that computer, then offers **Skip** and **I'm done**. A sign-in in the Bot's own browser there also starts with **Finish on <computer>**; it is answered on that computer, so here it then offers **Skip** alone. Images the Bot shares appear in its chat as pictures, read from the Bot's computer while its chat is connected (contract revision 45). The chat's **···** menu offers **Pause Bot** and **Resume Bot**, and a paused Bot shows a Resume card and holds the composer until it is resumed. Custom Bots can also ask for a folder or temporary whole-Mac file access. Current iOS and Android clients can answer those cards. A Mac viewing a paired computer’s Bot sees a notice to answer on that computer; it does not grant access itself. See [Bot access requests](bot-access-requests.md). The Assistant stays on its own computer.
- **Bots.** Paired computers' Bots appear in the Bots area below this Mac's own, under "On <computer name>", with the avatar they have there: its shape and colour, or its photo. A row stays current on any page, including the Bots pages. Like this Mac's own rows, it shows **Needs you** and "Waiting for you" while the Bot waits on an approval, question, hand-off or issue there, "Thinking…" while a turn runs (only while that computer is online), otherwise why it stopped (Paused, Interrupted, Needs an AI model), and otherwise its last message. A reply that arrives after this Mac first lists the Bot, and that its chat here hasn't shown yet, shows an unread dot. The last message and the dot need that computer on contract revision 66; with an older one the line stays empty. A Bot's description is never shown as its line; search still matches it. Opening one row leaves the others clickable. The open chat's title shows the Bot's avatar or photo. A chat that loses its connection reconnects on its own; it says the Bot is gone only when that computer answers that the Bot was deleted or this Mac may no longer read it, and a message sent while it reconnects shows as soon as that computer has it. Opening one shows the same single conversation its own computer, phones and Telegram show: the Bot runs there, and this Mac sends messages, Stop, Resume, Dismiss, question answers and tool approvals to it. A tool that only its own computer may allow (Computer Use) can only be denied from here. Connect cards ask the Bot's computer to finish the connection there. When the app is already connected on that computer but the Bot's Custom access leaves it out, the card still reads **Finish on <computer>**, and that opens the Bot's chat there, where its card's **Connect** adds the app to that Bot. Phones work the same way with **Finish on your Mac**. If that computer runs an older Aiden, update it; an older Mac sending to a newer computer's Bot is told to update. When the Bot's computer offers hand-offs (contract revision 37), a step the Bot hands back ("Your turn: …") can be answered from here too, in two steps: **Take control** first (it opens the page the step names, if any), then **I'm done** (with a note typed in the composer if you like), **Skip**, or **Open again** for that page. A step on the Bot's own screen over there puts **Finish on <computer>** first, which brings it forward on that computer, then offers **Skip** and **I'm done**. A sign-in in the Bot's own browser there also starts with **Finish on <computer>**; it is answered on that computer, so here it then offers **Skip** alone. Images the Bot shares appear in its chat as pictures, read from the Bot's computer while its chat is connected (contract revision 45). The chat's **···** menu offers **Pause Bot** and **Resume Bot**, and a paused Bot shows a Resume card and holds the composer until it is resumed. Custom Bots can also ask for a folder or temporary whole-Mac file access. Current iOS and Android clients can answer those cards. A Mac viewing a paired computer’s Bot sees a notice to answer on that computer; it does not grant access itself. See [Bot access requests](bot-access-requests.md). The Assistant stays on its own computer.
- **Not available remotely.** Terminal, the Environment browser, computer use and open-in-editor work only on the computer you are sitting at.

### Offline and identity changes
Expand Down
Loading
Loading