feat(extension): make the local daemon port configurable in the popup

The extension was hardwired to 52800; persist a custom loopback port and reconnect when it changes so users can match a non-default daemon.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
“haonan”
2026-09-02 18:56:08 +08:00
co-authored by Cursor
parent 59e2c3224e
commit a9c7444139
17 changed files with 488 additions and 29 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ Key modules:
### bsk daemon (same binary: `bsk daemon`)
- Listens on loopback WebSocket (default **52800**) for extensions.
- Listens on loopback WebSocket (default **52800**, configurable in the extension popup) for extensions.
- Validates `Origin: chrome-extension://…` on handshake.
- Maintains `browsers` (connected extensions) and `sessions` (Agent Window bindings).
- **Per-session queue** serializes tool calls targeting one session.