agentgui 1.0.940 → 1.0.941

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -16,14 +16,9 @@ Dependencies:
16
16
  - `ccsniff` (>=1.1.0) — exports `createHistoryRouter({projectsDir})` mountable on Express; serves `/v1/history/{sessions,sessions/:sid/events,search,snapshot,reindex,stream}`. Reads `~/.claude/projects` (override via `CLAUDE_PROJECTS_DIR`).
17
17
  - `anentrypoint-design` (>=0.0.119) — kit library, single-file ESM from unpkg
18
18
 
19
- ## Browser Witness (2026-05-19)
20
-
21
- Local server on PORT=3056 (default), `bun server.js`:
22
- - `GET /health` → 200 JSON
23
- - `GET /v1/history/sessions` → `{"sessions":[]}` from ccsniff
24
- - `GET /` → site/app/index.html
25
- - WS `/sync` → opens, sync_connected
26
- - Browser at `localhost:3056/`: AppShell renders, nav=[chat,history,settings], SSE `hello` received (live.connected=true, eventCount=1), 0 console errors, backend resolves to `''` (same origin).
19
+ ## Browser Witness
20
+
21
+ `bun server.js`. Default `PORT=3000` (server.js); the SPA is served under `BASE_URL` (default `/gm/`), so the live app is **http://localhost:3000/gm/** — `/health` and `/` answer at root, the app is under `/gm/`. First request to `/gm/` or `/v1/history/*` triggers a 30-90s ccsniff JSONL walk (curl with a short timeout returns 000 during warmup). AppShell renders nav=[chat,history,settings], SSE `hello`, 0 console errors, backend resolves to `''` (same origin).
27
22
 
28
23
  ## Learning audit
29
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.940",
3
+ "version": "1.0.941",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "electron/main.js",
package/server.js CHANGED
@@ -173,9 +173,18 @@ const onServerListenStart = () => {
173
173
  loadPluginExtensions();
174
174
  };
175
175
 
176
+ let _portRetries = 0;
177
+ const MAX_PORT_RETRIES = 5;
176
178
  server.on('error', (err) => {
177
179
  if (err.code === 'EADDRINUSE') {
178
- console.error(`Port ${PORT} already in use. Waiting 3 seconds before retry...`);
180
+ _portRetries++;
181
+ if (_portRetries > MAX_PORT_RETRIES) {
182
+ // Bail instead of retrying forever — an unbounded retry loop leaks a
183
+ // live process that holds no useful port and accumulates on each launch.
184
+ console.error(`Port ${PORT} still in use after ${MAX_PORT_RETRIES} retries; exiting. Free the port or set PORT to a different value.`);
185
+ process.exit(1);
186
+ }
187
+ console.error(`Port ${PORT} already in use. Retry ${_portRetries}/${MAX_PORT_RETRIES} in 3s...`);
179
188
  setTimeout(() => { server.listen(PORT, onServerListenStart); }, 3000);
180
189
  } else {
181
190
  console.error('[SERVER] Error (contained):', err.message);
@@ -1,5 +1,5 @@
1
1
  <!doctype html>
2
- <html lang="en" class="ds-247420" data-theme="dark">
2
+ <html lang="en" class="ds-247420" data-theme="dark" data-typescale="app">
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
@@ -90,32 +90,17 @@
90
90
 
91
91
  .field-error { color: var(--warn, var(--agentgui-warn)); }
92
92
 
93
- /* chat control cluster in the crumb bar: keep model picker, +new, status
94
- on one tidy baseline-aligned row instead of wrapping under the nav. */
95
- .chat-controls { display: flex; align-items: center; gap: .6em; flex-wrap: nowrap; }
93
+ /* chat control cluster in the crumb bar: model picker, +new, status.
94
+ Allowed to wrap so it never overflows the crumb on tablet widths. */
95
+ .chat-controls { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; }
96
96
  .chat-controls > * { flex: 0 0 auto; }
97
97
  .chat-controls select,
98
98
  .chat-controls .select,
99
- .chat-controls [role="combobox"] { min-width: 150px; max-width: 220px; }
99
+ .chat-controls [role="combobox"] { min-width: 130px; max-width: 220px; }
100
100
  .chat-controls .status-dot { white-space: nowrap; }
101
101
 
102
- /* Tame the design-system hero-sized PageHeader h1 to a sensible page title.
103
- The DS default (--fs-h1, cqi-scaled to ~64-80px) overpowers app content. */
104
- .agentgui-main .ds-section > h1 {
105
- font-size: clamp(22px, 2.2vw, 30px);
106
- line-height: 1.15;
107
- margin-bottom: .35em;
108
- }
109
102
  .agentgui-main .ds-section { margin: 0 0 var(--space-4, 16px); }
110
103
 
111
- /* TextField: stack label above the input so the label can't overlap it. */
112
- .agentgui-main .ds-field {
113
- display: flex; flex-direction: column; gap: .35em; align-items: stretch;
114
- }
115
- .agentgui-main .ds-field-label { font-size: .8rem; color: var(--fg-2, #ccc); }
116
- .agentgui-main .ds-field input,
117
- .agentgui-main .ds-field textarea { width: 100%; }
118
-
119
104
  /* readable backend health summary (replaces raw JSON dump) */
120
105
  .health-summary { display: flex; flex-wrap: wrap; gap: .4em; margin: .6em 0; }
121
106
  .health-chip {
@@ -130,20 +115,8 @@
130
115
  border-color: color-mix(in srgb, var(--accent, var(--agentgui-accent)) 40%, transparent);
131
116
  }
132
117
 
133
- /* search input: match the dark theme instead of a bare white box */
134
- .app input[type="search"],
135
- .app .search-input input,
136
- .app input.search,
137
- input[type="search"] {
138
- background: color-mix(in srgb, var(--fg, var(--agentgui-fg)) 6%, transparent);
139
- color: var(--fg, var(--agentgui-fg));
140
- border: 1px solid color-mix(in srgb, var(--fg, var(--agentgui-fg)) 16%, transparent);
141
- border-radius: 8px; padding: .5em .7em;
142
- }
143
- .app input[type="search"]::placeholder { color: var(--fg-3, #888); }
144
- .app input[type="search"]:focus-visible {
145
- outline: 2px solid var(--accent, var(--agentgui-accent)); outline-offset: 1px;
146
- }
118
+ /* (search-input theming now provided by the design system's .ds-search-input
119
+ + base input rules; the local reskin hack was removed.) */
147
120
 
148
121
  /* empty-state: keep it from wrapping awkwardly in the narrow sidebar */
149
122
  .empty-state { white-space: normal; }
@@ -161,9 +134,13 @@
161
134
  }
162
135
 
163
136
  @media print {
164
- #app { min-height: auto; display: block; }
165
- .skip-link, .status-dot, .history-actions { display: none !important; }
166
- * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
137
+ #app { min-height: auto; display: block; height: auto; }
138
+ .skip-link, .status-dot, .history-actions, .chat-composer { display: none !important; }
139
+ /* Drop chrome backgrounds/shadows for ink-saving, but preserve code
140
+ highlighting and rail colors (don't nuke every color to black). */
141
+ .app, .app-main, .panel, .chat, .chat-thread {
142
+ background: #fff !important; color: #000 !important; box-shadow: none !important;
143
+ }
167
144
  }
168
145
  </style>
169
146
  </head>