You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Spec 0602] Auto-start Tower on activation, never auto-stop
- Extension runs afx tower start as detached process if Tower not responding
- Never auto-stops Tower — daemon outlives VS Code so builders keep running
- Add codev.autoStartTower setting (default: true)
- Resolve open question: auto-start vs manual start
|`codev.architectTerminalPosition`|`"editor"`\|`"panel"`|`"panel"`| Where to open the architect terminal |
524
524
|`codev.autoConnect`| boolean |`true`| Connect to Tower on activation |
525
+
|`codev.autoStartTower`| boolean |`true`| Auto-start Tower if not running on activation |
525
526
|`codev.telemetry`| boolean |`false`| No telemetry collected. Extension respects VS Code's global telemetry setting. |
526
527
527
528
## Default Keyboard Shortcuts
@@ -546,7 +547,8 @@ Additional commands available via Command Palette but without default keybinding
546
547
| State | Behavior |
547
548
|-------|----------|
548
549
|**Activation**| On `codev.*` command or workspace contains `codev/` directory. Lazy — no heavy init until needed. |
549
-
|**Tower not running**| Status bar shows offline. Commands show "Tower is not running — start with `afx tower start`". TreeView shows empty state. |
550
+
|**Tower not running**| If `codev.autoStartTower` is true: run `afx tower start` as a detached process, then connect. If false or start fails: status bar shows offline, commands prompt to start manually. **Never auto-stop Tower** — it's a daemon that outlives VS Code so builders keep running. |
551
+
|**Tower already running**| Health check succeeds on activation → connect immediately. Handles the case where another VS Code window or manual `afx tower start` already launched it. |
550
552
|**Tower starts**| Health check succeeds → SSE connects → TreeView populates → status bar updates |
|**VS Code reload**| Extension re-activates → reconnects to Tower → re-creates terminal Pseudoterminals → reattaches to existing shellper sessions |
@@ -561,7 +563,7 @@ Additional commands available via Command Palette but without default keybinding
561
563
-[ ] Should `afx open` use a VS Code URI scheme (`vscode://codev/open?file=...`) or a filesystem watcher approach? This is a core architectural decision — URI scheme works cross-process, filesystem watcher is fundamentally different.
562
564
563
565
### Important (Affects Design)
564
-
-[] Should the extension auto-start Tower if it's not running, or always require manual start?
566
+
-[x] Should the extension auto-start Tower if it's not running? **RESOLVED: Yes.** Auto-start as detached process, never auto-stop. Setting `codev.autoStartTower` (default: true) for manual control.
0 commit comments