Skip to content
Merged
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
1 change: 1 addition & 0 deletions docs/plans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Last refreshed 2026-10-01 against `main` at `d2197dfef` (0.51.0 plus later merge
| [Mobile Task Progress and Subagents](mobile-task-progress-and-subagents-plan.md) | Active | Read-only task/agent projections, durable Mac-owned progress, explicit Workspace/Bot eligibility, and native controls/sheets implemented. Merged in PR #123; physical UI acceptance remains. The first mutation control, a confirmed single-agent Stop on iOS and Android (`POST /chats/{chatId}/agents/{agentId}/interrupt`, `chat-agent-interrupt-v1`, contract revision 16), merged in PR #275 and is on main. See the linked evidence report. |
| [Scheduled-Task Provider and Pi Rollout Recovery](scheduled-provider-and-pi-rollout-recovery-plan.md) | Implemented | Attended chat starts seed the scheduler's provider fallback, tasks pin providers explicitly (editor picker + prefilled drafts + honest `schedule_task` gating), Pi-rollout-ineligible chats generate journalless over in-memory sessions with the fail-closed contract preserved, and remote request journal events carry method/route evidence — merged in PR #105; release-owner stage advance (B1) and machine remediation remain. |
| [Desktop multi-host control](desktop-multi-host-control-plan.md) | Active | Outbound connection foundation (PR #104) implemented. v1 re-scoped and approved 2026-10-02: symmetric peers, full chat parity including host-started runs, Tailscale one-click pairing, contract revision 19 grants, t3code-style sidebar organizations, Bots. PR 1 of 9 (run observer bus + persistence) in progress. |
| [Multi-host PR 5a: local sidebar organization](desktop-multi-host-pr5a-sidebar-organize.md) | In review | Local half of the multi-host plan's §6. The Organize sidebar menu gains three views (Workspaces / Recent / Needs attention) and two sorts: chats (last activity / created) and workspaces (last activity / created / manual). Manual order uses host-qualified keys and can be changed by drag or by Move up/down. Preferences migrate in place. Remote rows, the machine filter and cross-machine grouping are left to PR 5b. |
| [Form Fill Specialist](form-fill-specialist-plan.md) | Blocked — pinned driver lacks document-bound mutation | Local scoring and artifact groundwork merged in PR #195. Specialist admission and execution disabled; cleanup-only Settings. Requires upstream document-lifetime identity and atomic conditional writes, new supported-driver regressions, and signed live-window acceptance before enablement. |
| [Nontechnical User Journey UX](nontechnical-user-journey-ux-plan.md) | Active | Approved ten-journey UX pass merged in PR #96: guided phone setup, four AI choices, two-step Create a bot, setup acknowledgements, recovery, and native pairing copy. Broader audit backlog and physical-device acceptance remain open. |
| [Gemini 3.8 Read Aloud](gemini-tts-read-aloud-plan.md) | Partial | Merged in PR #245 and shipped in 0.50.0. Desktop unary-WAV slice hardened: source/owner fencing, managed Google credentials, whole-soundbite session replay without regeneration, bounded ordered playback and audible settings previews. Desktop-owned iOS/Android playback and read-only settings implemented; Android 101 tests/debug APK and iOS test build pass. Physical iOS XCTest now passes: 224 passed, 5 skipped, 0 failures on Smbt16ProMax. Live Google acceptance, native audible verification, streaming, Voice Studio, desktop audio focus and final independent sign-off remain. Review fixes add production usage accounting, strict WAV, progress-based native waiting, reclaimable sessions and failed-outcome eligibility; Preflight retry follow-up preserves concurrency-safe billing fences; TTS 131, Android chat/client 70 and simulator 227 passed (5 skipped). |
Expand Down
2 changes: 1 addition & 1 deletion docs/plans/aiden-cli-parity-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ autocomplete, themes, hidden `/debug`.
| Feature | Desktop cores (portable) | CLI vehicle |
| --- | --- | --- |
| Auto session titles | `chat-title-policy.ts`, `chat-title-routing.ts` (pure); `chat-store-core.ts:1139` | extension: first user message → background title via model-runtime adapter → pi session name |
| Cross-session title/preview search | `chat-store-core.ts:723` (`listSummaryMetadata`), `sidebar-workspace-groups.ts` (pure) | `/search <query>` extension command |
| Cross-session title/preview search | `chat-store-core.ts:723` (`listSummaryMetadata`), `sidebar-organization.ts` (pure) | `/search <query>` extension command |
| Portable `.aiden-chat.json` export | `chat-export.ts` (pure, schema v1, atomic) | `/export --aiden` writing to cwd (Phase 3 interop format) |
| Workspace registry + scratch workspaces | `workspace-application-service.ts` (pure DI), `scratch-workspace.ts` (pure) | `aiden workspace` / `/scratch` commands |
| Per-workspace access tiers (full/ask/none) | enforced in `llm-client.ts:572-908` (portable logic) | extension mapping persisted tier → tool approval |
Expand Down
66 changes: 66 additions & 0 deletions docs/plans/desktop-multi-host-pr5a-sidebar-organize.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Multi-host PR 5a: local sidebar organization

Status: **In review**. This is the local-only first half of §6 ("Sidebar organization") of the [desktop multi-host control plan](desktop-multi-host-control-plan.md). It is based on `main` and can merge on its own.

PR 5b adds remote rows, the machine filter, the globe marker, cross-machine grouping and offline/stale state. It plugs into the projection module from this PR and does not change it.

## Scope

The existing **Organize sidebar** menu gains three radio groups.

- **View**
- *Workspaces*: the existing workspace groups. The master plan calls these "Projects". The UI keeps Aiden's existing "Workspaces" wording.
- *Recent*: the existing flat chronological buckets (Recent / Yesterday / month / Older).
- *Needs attention*: a new triage view. Chats are ordered by tier, then by last activity, newest first. Each tier that has chats gets its own section, in this order:
1. Needs approval
2. Needs input
3. Working
4. Unread
5. Other chats
- **Sort chats**: *Last activity* (default) or *Created*. Applies in the Workspaces and Recent views.
- **Sort workspaces**: *Last activity* (default), *Created* or *Manual*. Applies in the Workspaces view.

## Decisions

- **Pure projection module.** `renderer/lib/sidebar-organization.ts` is pure and generic.
- Its inputs are plain summaries:
- project: `key`, `name`, `searchText`, `createdAt`, `lastActivityAt`
- chat: `key`, `projectKey`, `title`, `createdAt`, `lastActivityAt`, `attention`
- Callers may extend the summaries with their own payload, and get the same objects back.
- The local adapter (`renderer/lib/sidebar-workspace-groups.ts`) maps `Workspace` / `ChatMeta` plus the row-state signals into summaries. PR 5b adds a remote adapter that feeds the same function.
- **Attention tier.** The tier comes from the existing row signals: `chatRowStateFor(...)` for approval, input and working, and `isChatUnread(...)` for unread. Working-and-unread counts as Working. The chat you have open never counts as unread, the same rule its row badge already follows.
- **Ordering inside Needs attention.**
- Always by last activity, as the master plan specifies. The chat-sort preference does not apply here.
- The *Sort chats* group is hidden in this view.
- The *Sort workspaces* group shows only in the Workspaces view.
- **Missing or invalid timestamps** sort after every dated item. Ties break by name or title (`localeCompare`), then by key, so identical names keep a deterministic order.
- **Workspace last activity** is the newest of the workspace's own `updatedAt` and its chats' last activity. This is the existing rule, now applied inside the projection.
- **Recent with *Created* sort** buckets each chat by its creation time. Chats without a usable timestamp go in "Older". The clock (`now`) is injectable for tests.
- **Manual order**
- Stored as a list of host-qualified project keys: `projectOrderKey(hostId, projectId)` → `encodeURIComponent(hostId) + ":" + encodeURIComponent(projectId)`, with `LOCAL_SIDEBAR_HOST_ID = "local"`.
- Choosing *Manual* saves the order currently on screen, so the list does not jump.
- Workspaces missing from the stored order go after the stored ones, in last-activity order. This follows T3 Code's `orderItemsByPreferredIds`.
- **Reordering**
- In Manual sort, with no search, workspace headers can be dragged. A thin accent line shows the drop position; it is a functional indicator, not a decorative border.
- The keyboard alternative is **Move up** / **Move down** in the workspace's Actions menu. These items:
- show only in Manual sort
- are disabled at either end of the list
- are disabled while a search is active, because the filtered neighbours would hide the effect
- **Shortcuts follow the screen.** Chat jump shortcuts (⌘1–9) and previous/next navigation follow the rows in the order they are displayed, computed by `displayedSidebarChats(...)` from the same projection. Before this change, Workspaces mode re-sorted the visible rows by recency.
- **Preferences**
- Same storage key, `aiden-agent.sidebar.v1`, with these new fields: `view`, `chatSort`, `projectSort`, `projectOrder`.
- A legacy `organization` value is migrated: `workspace` → `projects`, `recent` → `recent`.
- The legacy `organization` field is still written, so a downgraded build keeps the user's view.
- `projectOrder` is bounded to 500 keys. Malformed keys are dropped. `local:` keys are pruned against the workspace registry. Other host keys are kept, for PR 5b.
- **No onboarding change.** This is an organizational preference, not a setup-critical feature.

## Tests

- `renderer/lib/sidebar-organization.test.ts`
- Projection behaviour: tiers, ties, missing timestamps, identical names, manual order with unknown and stale keys, search, and move helpers.
- Displayed rows (`displayedSidebarChats`), which drive the chat shortcuts. This replaces the old source-grep shortcut assertion.
- Preference migration and bounds.
- `renderer/lib/sidebar-workspace-groups.test.ts`: the local adapter's admission rules (registered workspaces only; no Bot, Assistant or orphan chats).
- `renderer/components/sidebar-organize-menu.test.tsx`: the rendered menu's radio semantics and which groups show in each view.
- `renderer/components/chat-sidebar.test.tsx`: the source-grep assertions about organization were replaced by the behavioural coverage above.
- `tests/e2e/chat-shell-interactions.spec.ts`: the Needs attention section order driven by live activity snapshots, and Manual sort reordered by Move down and by drag, persisting across a reload.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"pretest:coverage": "npm run build:worktree-remover && npm run build:worktree-file-io && npm run build:subagent-run-store && npm run test:preflight && npm run test:ghostty-terminal && npm run test:scheduled && npm run test:memory-policy && npm run test:google-provider && npm run test:config-recovery && npm run test:command-system && npm run test:slash-commands && npm run test:display-image && npm run test:generative-ui && npm run test:compaction && npm run test:gemini-live && npm run test:subagents && npm run test:bots:coverage",
"test:preflight": "npm run test:mcp && npm run test:artificial-analysis && npm run test:model-pad && tsx --test main/services/appearance-preview-core.test.ts main/services/generation-timeline.test.ts main/services/local-runtime-status.test.ts main/services/mcp-tool-result.test.ts main/services/pi-thinking-disclosure.integration.test.ts renderer/components/activity-feed.test.tsx renderer/components/context-meter.test.tsx renderer/components/chat-sidebar.test.tsx renderer/components/composer.test.tsx renderer/components/settings/providers-settings.test.tsx renderer/main/chat-transition.test.tsx renderer/components/reasoning-block.test.tsx renderer/components/reasoning-visibility-control.test.tsx renderer/components/thinking-control.test.tsx renderer/lib/agent-steps.test.ts renderer/lib/button-appearance-contract.test.ts renderer/lib/dialog-motion-contract.test.ts renderer/lib/inline-metadata-hierarchy.test.ts renderer/lib/scrollbar-gutter-contract.test.ts renderer/lib/scroll-follow.test.ts renderer/lib/text-entry-focus-contract.test.ts renderer/lib/pill-appearance.test.ts renderer/lib/reasoning-disclosure.test.ts renderer/lib/streaming-motion-contract.test.ts renderer/lib/streaming-reveal.test.ts renderer/lib/voice-recorder-core.test.ts renderer/lib/media-recorder-stop.test.ts renderer/lib/dictation-vad.test.ts renderer/lib/dictation-sounds.test.ts renderer/pill-preload-channels.test.ts renderer/shared/anthropic-thinking.test.ts renderer/shared/app-update.test.ts renderer/shared/claim-check.test.ts renderer/shared/codex-thinking.test.ts renderer/shared/context-pressure.test.ts renderer/shared/google-thinking.test.ts renderer/shared/provider-deployment.test.ts renderer/shared/assistant-turn-stats.test.ts renderer/lib/sticky-section.test.ts",
"test:chat-row-states": "tsx --test renderer/shared/chat-row-state.test.ts renderer/components/chat-row-status.test.tsx renderer/lib/use-mark-chat-read.test.ts main/services/chat-read-markers.test.ts",
"test:sidebar": "tsx --test renderer/components/chat-sidebar.test.tsx renderer/lib/sidebar-workspace-groups.test.ts renderer/lib/sidebar-chat-shortcuts.test.ts renderer/lib/held-modifier-reveal.test.ts",
"test:sidebar": "tsx --test renderer/components/chat-sidebar.test.tsx renderer/lib/sidebar-workspace-groups.test.ts renderer/lib/sidebar-chat-shortcuts.test.ts renderer/lib/held-modifier-reveal.test.ts renderer/lib/sidebar-organization.test.ts renderer/components/sidebar-organize-menu.test.tsx",
"test:peer-hosts": "tsx --test main/services/peer-host-registry.test.ts main/services/peer-transport.test.ts",
"pretest:aiden-remote": "npm run build:worktree-file-io",
"test:aiden-remote": "npm run test:peer-hosts && tsx --test main/services/aiden-remote-chat-progress.test.ts main/services/aiden-remote-chat-progress-authorize.test.ts main/handlers/aiden-remote.test.ts main/services/aiden-remote-chat-summaries.test.ts main/services/aiden-remote-approved-roots.test.ts main/services/aiden-remote-revocation.test.ts main/services/aiden-remote-bot-files.test.ts main/services/aiden-remote-bots.test.ts main/services/aiden-remote-chat-http.test.ts main/services/aiden-remote-chats.test.ts main/services/aiden-remote-files.test.ts main/services/aiden-remote-git.test.ts main/services/aiden-remote-models.test.ts main/services/aiden-remote-protocol.test.ts main/services/aiden-remote-opaque-handles.test.ts main/services/aiden-remote-operation-contract.test.ts main/services/aiden-remote-pairing.test.ts main/services/aiden-remote-ports.test.ts main/services/aiden-remote-router.test.ts main/services/aiden-remote-schedules.test.ts main/services/aiden-remote-service.test.ts main/services/aiden-remote-state.test.ts main/services/aiden-remote-streams.test.ts main/services/aiden-remote-tailscale-route.test.ts main/services/aiden-remote-tailscale.test.ts main/services/aiden-remote-tls-identity.test.ts main/services/aiden-remote-workspace-browser.test.ts main/services/aiden-remote-workspace-http.test.ts main/services/aiden-remote-workspaces.test.ts renderer/components/remote-connection-popover.test.tsx renderer/components/settings/remote-access-settings.test.tsx renderer/lib/remote-approval.test.ts renderer/lib/remote-connection-status.test.ts renderer/lib/remote-pairing-lifecycle.test.ts renderer/lib/settings-section.test.ts main/services/run-event-projection.test.ts main/services/host-run-registry.test.ts main/services/host-runs.test.ts && node --test scripts/aiden-remote-lan-transport-spike.test.mjs",
Expand Down
Loading
Loading