agent-orchestrator/backend/internal
Pulkit Saraf f2da70d3bb
fix(dev): isolate dev daemon from installed app on port and state dir (#2465)
* fix(dev): isolate dev daemon from installed app on port and state dir

When running npm run dev while an installed AO app is already running,
both shared port 3001 and ~/.ao/running.json. The dev Electron would
attach to the installed daemon and tear it down on quit via the
supervisor link.

Fix: in dev mode (app.isPackaged === false), default to:
  - AO_PORT=3002          (separate port, no collision)
  - AO_RUN_FILE=~/.ao/dev/running.json  (isolates supervise.sock too,
    since the backend derives it as dir(RunFilePath)/supervise.sock)
  - AO_DATA_DIR=~/.ao/dev/data          (separate SQLite DB)

Explicit env var overrides still win, so contributors can further
customise via their shell environment. resolvedDaemonPort() encapsulates
the port lookup so all three probe call-sites stay consistent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(dev): isolate Windows supervisor pipe per run-file instance

On Windows the supervisor previously used a fixed global named pipe
(\\.\pipe\ao-supervise) on both the Go backend and Electron frontend,
so dev and installed-app daemons could still collide despite the
separate port and state dir. Both sides now derive the pipe name from
the run-file's parent directory, mirroring the Unix supervise.sock
placement: ~/.ao/dev/running.json → \\.\pipe\ao-supervise-dev.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-08 22:34:21 +05:30
..
adapters Refactor Kimi and Qwen agent adapters for improved prompt delivery an… (#2497) 2026-07-08 01:45:31 +05:30
agentlaunch feat(windows): ConPTY terminal, zellij discovery, agent launcher trampoline, codex shim resolution (#310) 2026-06-18 21:51:05 +05:30
cdc feat: ao session claim-pr + spawn --claim-pr wiring (#101) 2026-06-06 00:01:03 +05:30
cli Revert "feat(session): switch a session's agent mid-flight (#2412)" (#2502) 2026-07-08 00:52:05 +05:30
config feat: require explicit project agents (#355) 2026-06-21 06:07:53 +05:30
daemon fix(dev): isolate dev daemon from installed app on port and state dir (#2465) 2026-07-08 22:34:21 +05:30
daemonmeta fix(cli): verify daemon ownership before stop signal 2026-06-01 01:45:04 +05:30
domain Revert "feat(session): switch a session's agent mid-flight (#2412)" (#2502) 2026-07-08 00:52:05 +05:30
httpd Revert "feat(session): switch a session's agent mid-flight (#2412)" (#2502) 2026-07-08 00:52:05 +05:30
integration fix(daemon): stop orchestrator id-increment + OS-native daemon liveness link (#2185) 2026-06-26 18:28:32 +05:30
legacyimport feat: Global Settings (migration + update channel) + ao start download progress (#2235) 2026-06-27 23:08:55 +05:30
lifecycle feat: enrich PR observation context (#2492) 2026-07-08 14:02:15 +05:30
notify feat: add notifications v1 (#181) 2026-06-14 20:02:32 +05:30
observe fix(scm): hydrate tracked PR repo owner and name (#2510) 2026-07-08 14:55:08 +05:30
ports feat: enrich PR observation context (#2492) 2026-07-08 14:02:15 +05:30
preview fix: clear stale preview URL from SQLite and prevent stale white screen on preview clear (#2358) 2026-07-03 15:38:43 +05:30
process fix: hide backend subprocess windows on Windows (#2179) 2026-06-25 16:21:18 +05:30
processalive feat: combine workspace project stack (#2460) 2026-07-07 22:25:50 +05:30
review feat(review): support additional reviewer harnesses (#2306) 2026-07-02 19:25:18 +05:30
runfile feat: add agent catalog/auth API and safer orchestrator switching (#2309) 2026-07-04 10:59:34 +05:30
service Revert "feat(session): switch a session's agent mid-flight (#2412)" (#2502) 2026-07-08 00:52:05 +05:30
session_manager Refactor Kimi and Qwen agent adapters for improved prompt delivery an… (#2497) 2026-07-08 01:45:31 +05:30
skillassets feat(skills): add using-ao skill, install it under the data dir, and wire it into session prompts (#2365) 2026-07-03 18:11:15 +05:30
storage/sqlite Revert "feat(session): switch a session's agent mid-flight (#2412)" (#2502) 2026-07-08 00:52:05 +05:30
telemetrymeta Feat/posthog error tracking redaction (#329) 2026-06-21 18:50:47 +05:30
terminal Zellij to tmux + ConPTY runtime, session save/restore, crash-proof reconcile (port #404) (#2183) 2026-06-25 15:05:41 +05:30