agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

bug(desktop): dev build is visually identical to the packaged app — same title, dock icon, and name, so you can act on the wrong window

Open homeshrawat opened this issue 3 months ago • 3 comments

Summary

A dev build of the desktop app is visually identical to the installed packaged app — same window title, same dock icon, same application name. With both running, there is no way to tell which window is which, so session actions intended for one can land on the other.

Why they are indistinguishable

Packaged app Dev build (npm run dev)
Window title Agent Orchestrator Agent Orchestrator
Dock icon AO icon AO icon
App name Agent Orchestrator Agent Orchestrator
  • Title is a hardcoded literal, not conditioned on app.isPackaged: frontend/src/main.ts:283 — title: "Agent Orchestrator"
  • app.dock.setIcon(icon) runs in dev too (frontend/src/main.ts:239), and windowIconPath() (:221-231) resolves an icon for the unpackaged case from assets/icon.png, so the dock icon matches as well.
  • productName in frontend/package.json is shared.

Notably userData is correctly isolated (frontend/src/main.ts:113-116, keyed on app.isPackaged) — the separation exists for Chromium profile state but not for anything the user can see.

Why this matters

.agents/skills/ao-desktop-dev/SKILL.md instructs agents and humans to run the desktop app from a checkout for local UI review, so having both running simultaneously is a normal, documented workflow — not an exotic setup.

In that state the two windows are indistinguishable, and one of them is running unmerged code. Kill, spawn, send, and other session actions are one click away in both. Acting on the wrong window means running an unreviewed build against real sessions, or believing a change is broken because it was tested in the packaged app.

Encountered while reviewing PR #3632: with a dev build open alongside the installed app, the reviewer could not tell which window they were testing in, and correctly declined to trust the result until the two were separated.

Contributing factor: real-data mode makes the content identical too

ao-desktop-dev documents a real-data mode (SKILL.md line 64) that points the dev daemon at ~/.ao/data while using the isolated dev port and run file. It is the only way to review a UI change against a real session with a real diff, since isolated mode starts empty.

But in that mode both apps read the same database, so both windows show the same projects and sessions — removing the last remaining cue. Two daemons sharing one SQLite database also appeared to cause cross-talk: writes from the dev daemon (its SCM observer was active) coincided with the packaged app's UI refreshing. That cross-refresh is an unverified observation, noted here as context rather than as a separate claim.

Suggested fix

  1. Make the dev window self-identifying when !app.isPackaged — e.g. title: app.isPackaged ? "Agent Orchestrator" : "Agent Orchestrator (dev)", and ideally a small in-app badge, since the title bar is often hidden by the custom titlebar overlay.
  2. Consider a distinct dock icon (or skipping app.dock.setIcon) for unpackaged runs.
  3. Have ao-desktop-dev warn that real-data mode alongside a running packaged app yields two identical windows over one database, and recommend quitting the packaged app first where that is possible.

Environment

  • macOS (darwin 23.6.0)
  • Repo at 3934bc86a; dev build from a worktree at PR #3632's head

homeshrawat avatar Aug 06 '26 00:08 homeshrawat

Thanks for contributing to Agent Orchestrator.

This issue is being picked up by the current external contributor on-call pair:

  • @illegalcall
  • @somewherelostt

If someone is already working on this, please continue as usual. The on-call pair is added for visibility, tracking, and support, not to take over the work. If you need help with review, direction, reproduction, or next steps, please tag @illegalcall and @somewherelostt here.

For faster context or live questions, you can also join the AO Discord.

Join the session here: https://discord.gg/H6ZDcUXmq

Come by if you want to see what is being built, ask questions, or just hang around with the community.

somewherelostt avatar Aug 06 '26 15:08 somewherelostt

@AgentWrapper Devbuild has title Electron now but dock icon is still same

Rishet11 avatar Aug 30 '26 10:08 Rishet11

Assigned to @MohitGoyal09

Rishet11 avatar Sep 15 '26 20:09 Rishet11