openvisio-agent 0.25.5 → 0.25.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## [0.25.6] — 2026-09-21
6
+
7
+ - Keep healthy backend watchers event-driven after their connection recovery pass instead of polling every project for tasks and activity every 30 seconds.
8
+ - Stop idle journal heartbeats, derive Studio liveness from watcher PID locks, and apply model-setting changes through filesystem notifications instead of two-second polling.
9
+ - Add semantic icons and status colors to Agent Studio's watcher, model-settings, and agent-removal actions.
10
+
5
11
  ## [0.25.5] — 2026-09-21
6
12
 
7
13
  - Add Gemini CLI and Qwen Code as coding-agent providers through their native ACP modes.
package/README.md CHANGED
@@ -81,7 +81,7 @@ The integration follows Mastra's [semantic memory](https://mastra.ai/docs/memory
81
81
 
82
82
  Model selections are stable. Exact IDs (including reasoning effort) are preserved. An unsuffixed ACP model may resolve once to the same model with `medium` effort; the watcher saves that exact selection. Unavailable selections produce an explicit error rather than switching generations or families. Claude versioned IDs are preserved, with automatic family fallbacks disabled. Codex uses the configured chat model for replies.
83
83
 
84
- Backend/BYO watchers reconcile immediately whenever the process starts or the WebSocket connects. A direct MCP session discovers and caches the backend's actual `tools/list` response, then uses available tools such as `list_agents`, `list_projects`, `list_tasks`, `list_task_types`, and `list_activity` to recover assigned tasks and recent mention activity missed while offline. Team discovery is shared by every runtime provider: structured MCP results and compact Markdown list envelopes are normalized once before the watcher resolves its project, identity, boards, tickets, or dedicated channel. Adding another model provider therefore reuses the same saved team connection and setup path instead of adding provider-specific project discovery. Optional actions such as ticket comments are used only when advertised; their absence cannot strand a completed ticket in a retry loop. The same zero-model check runs every 30 seconds as a safety net; a model starts only when pending work exists.
84
+ Backend/BYO watchers reconcile once whenever the WebSocket starts or reconnects. A direct MCP session discovers and caches the backend's actual `tools/list` response, then uses available tools such as `list_agents`, `list_projects`, `list_tasks`, `list_task_types`, and `list_activity` to recover assigned tasks and recent mention activity missed while offline. Team discovery is shared by every runtime provider: structured MCP results and compact Markdown list envelopes are normalized once before the watcher resolves its project, identity, boards, tickets, or dedicated channel. Adding another model provider therefore reuses the same saved team connection and setup path instead of adding provider-specific project discovery. Optional actions such as ticket comments are used only when advertised; their absence cannot strand a completed ticket in a retry loop. After the recovery pass, the healthy event connection waits without polling MCP tools and starts a model only when work arrives.
85
85
 
86
86
  The backend MCP may be stateful or stateless. A successful initialize response without `Mcp-Session-Id` is accepted as stateless, so OpenCode agents do not stop with “MCP initialize returned no session id.” Each OpenCode lane keeps its MCP identity in a private per-agent config directory while the repository is supplied separately with `--dir`; stale workspace configuration therefore cannot swap one agent's credentials for another's. The generated remote configuration sends the agent headers directly, disables OAuth probing, and backend cycles never request relay-only inbox calls or MCP resource-discovery tools in place of team actions.
87
87
 
@@ -114,7 +114,7 @@ Authorization recovery checks paused repositories locally every two seconds and
114
114
 
115
115
  Fresh top-level messages belong in the agent’s dedicated channel; responses to existing requests stay in their source thread. The watcher resolves a unique exact identity/name match (including `agent-alex` and `alex-agent`) and never falls back to general. Use `connect ... --channel <id>` for a differently named dedicated channel. If it is missing or ambiguous, ticket results remain recorded and channel delivery stays pending; the watcher does not invent a channel-creation tool.
116
116
 
117
- Codex, OpenCode, Gemini CLI, and Qwen Code use Mastra ACP directly. OpenCode starts only for an accepted cycle and exits as soon as that cycle releases it, so the idle watcher does not retain an OpenCode child process. Other runtimes retain work sessions per ticket in a six-entry pool and reply sessions in an eight-entry pool; their idle sessions expire after five minutes, and active sessions cannot be evicted. Git snapshots are asynchronous, lightweight commands lazily load the watcher, and logs separate queue wait, preflight, first-event, and total runtime time. Projects reconcile with concurrency three and enqueue tickets before reading optional activity history. Coordination sessions can update the board without gaining repository access.
117
+ Codex, OpenCode, Gemini CLI, and Qwen Code use Mastra ACP directly. OpenCode starts only for an accepted cycle and exits as soon as that cycle releases it, so the idle watcher does not retain an OpenCode child process. Other runtimes retain work sessions per ticket in a six-entry pool and reply sessions in an eight-entry pool; their idle sessions expire after five minutes, and active sessions cannot be evicted. Git snapshots are asynchronous, lightweight commands lazily load the watcher, and logs separate queue wait, preflight, first-event, and total runtime time. Studio reads watcher liveness from the local PID lock instead of requiring journal heartbeats, and model changes arrive through filesystem notifications. Projects reconcile with concurrency three and enqueue tickets before reading optional activity history. Coordination sessions can update the board without gaining repository access.
118
118
 
119
119
  Assignments use independent FIFO entries with stable-key duplicate suppression and bounded, worktree-aware concurrency. Backlog recovery uses the same ticket verification path as WebSocket events, and each queued ticket is checked again before a model starts. MCP calls have a 20-second deadline including response bodies; tool discovery is cached and paginated. Codex MCP failures retain a bounded, credential-redacted reason in the watcher log. Cancellation targets only its ACP session. Credentials and replay state use atomic file replacement; Mastra persists contextual memory in libSQL.
120
120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openvisio-agent",
3
- "version": "0.25.5",
3
+ "version": "0.25.6",
4
4
  "description": "Connect Claude Code, Codex, OpenCode, Gemini CLI, or Qwen Code to an OpenVisio team \u2014 MCP tools + optional autonomy \u2014 in one command.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,6 +24,7 @@ run('diff whitespace check', 'git', ['diff', '--check'], repo)
24
24
  const watcher = readFileSync(join(root, 'src', 'watch.mjs'), 'utf8')
25
25
  const events = readFileSync(join(root, 'src', 'events.mjs'), 'utf8')
26
26
  const memory = readFileSync(join(root, 'src', 'memory.mjs'), 'utf8')
27
+ const journal = readFileSync(join(root, 'src', 'agent-journal.mjs'), 'utf8')
27
28
  const mcpHttp = readFileSync(join(root, 'src', 'mcp-http.mjs'), 'utf8')
28
29
  const opencodeConfig = readFileSync(join(root, 'src', 'opencode-config.mjs'), 'utf8')
29
30
  const codexConfig = readFileSync(join(root, 'src', 'codex-config.mjs'), 'utf8')
@@ -51,6 +52,8 @@ const assertions = [
51
52
  ['new follow-ups only deduplicate later replies', watcher.includes('repliesAfterSource(renderedAgentMessages') && watcher.includes('sourceMessageId: mid')],
52
53
  ['Mastra snapshots do not block the event loop', mastraHarness.includes('await execFileAsync') && !mastraHarness.includes('spawnSync')],
53
54
  ['OpenCode exits after work while the event watcher stays idle', runtimeProviders.includes("id: 'opencode'") && runtimeProviders.includes('idleSessionMs: 0') && watcher.includes('idleMs: runtimeIdleMs')],
55
+ ['healthy backend watchers do not poll projects while idle', watcher.includes('onConnect: () =>') && watcher.includes('void reconcileBacklog()') && !watcher.includes('taskProbeTimer') && !watcher.includes('taskProbeStartTimer')],
56
+ ['idle watchers use event notifications without journal or settings polling', watcher.includes('watchFs(stateDir') && !watcher.includes('modelSettingsTimer') && !journal.includes("emit('runtime.heartbeat'")],
54
57
  ['ticket pickup precedes optional activity reads', watcher.indexOf("await handleTaskSignal('task:assigned'", watcher.indexOf('const reconcileBacklog')) < watcher.indexOf("const activityData = await callMcpTool", watcher.indexOf('const reconcileBacklog'))],
55
58
  ['task:assigned is handled', watcher.includes("k === 'task:assigned'")],
56
59
  ['task signals are verified with get_ticket', watcher.includes("callMcpTool('get_ticket'")],
@@ -59,7 +59,7 @@ export function createAgentJournal({ stateDir, agent, secrets = [] }) {
59
59
  const stem = `${slug}-${digest}`
60
60
  const path = join(directory, stem + '.jsonl')
61
61
  let sequence = 0, pendingBytes = 0, dropped = 0, written = 0, lastError = null
62
- let timer, heartbeat, closing = false, closePromise, writing = false
62
+ let timer, closing = false, closePromise, writing = false
63
63
  const pending = []
64
64
  const ready = (async () => {
65
65
  await mkdir(directory, { recursive: true, mode: 0o700 })
@@ -120,11 +120,8 @@ export function createAgentJournal({ stateDir, agent, secrets = [] }) {
120
120
  catch (error) { lastError = error; return false }
121
121
  }
122
122
  emit('runtime.started', { status: 'running' })
123
- heartbeat = setInterval(() => emit('runtime.heartbeat', { status: 'running', droppedEvents: dropped }), 15_000)
124
- heartbeat.unref?.()
125
123
  const close = () => {
126
124
  if (closePromise) return closePromise
127
- clearInterval(heartbeat)
128
125
  emit('runtime.stopped', { status: 'stopped', droppedEvents: dropped })
129
126
  closing = true
130
127
  closePromise = (async () => {
@@ -112,8 +112,13 @@ export async function readStudioSnapshot({ stateDir, now = Date.now, journalCach
112
112
  const agentsById = new Map(configured.map((agent) => [agent.identifier, agent]))
113
113
  for (const event of latest.values()) {
114
114
  const age = now() - Date.parse(event.timestamp)
115
- const online = age >= -5000 && age <= FRESH_MS && event.type !== 'runtime.stopped' && pidAlive(event.pid)
116
115
  const existing = agentsById.get(event.agent.identifier)
116
+ // Configured watchers own a PID lock, so Studio can report their real process
117
+ // state without forcing an idle process to append heartbeat records forever.
118
+ // Freshness remains a compatibility fallback for older, unconfigured journals.
119
+ const configuredAlive = existing?.watcherAlive === true && existing.pid === event.pid
120
+ const recentUnconfigured = !existing?.configured && age >= -5000 && age <= FRESH_MS && pidAlive(event.pid)
121
+ const online = event.type !== 'runtime.stopped' && (configuredAlive || recentUnconfigured)
117
122
  agentsById.set(event.agent.identifier, { ...existing, id: event.agent.identifier, identifier: event.agent.identifier, slug: existing?.slug || event.agent.slug || event.agent.identifier, name: existing?.name || event.agent.slug || event.agent.identifier, provider: event.agent.provider || 'unknown', runId: event.runId, pid: Number.isSafeInteger(event.pid) ? event.pid : null, watcherAlive: online, status: online ? 'online' : 'offline', lastSeen: event.timestamp, lastEventType: event.type })
118
123
  }
119
124
  const agents = [...agentsById.values()]
package/src/watch.mjs CHANGED
@@ -1,12 +1,10 @@
1
- // The OpenVisio autonomy watcher — an event-driven "warm" loop. Cheaply polls
2
- // /api/agent/inbox (no model) and pokes ONE persistent Claude Code stream-json
3
- // session with a cycle per new @mention / follow-up / ticket. Ported verbatim from
4
- // the shell installer so behaviour is identical — now shipped in the package rather
5
- // than written to disk from a pasted heredoc.
1
+ // The OpenVisio autonomy watcher — an event-driven loop. It waits on the team
2
+ // event connection and starts a runtime only for accepted work. Relay mode keeps
3
+ // compatibility with older inbox polling connections.
6
4
 
7
5
  import { spawn, spawnSync } from 'node:child_process'
8
6
  import { AsyncLocalStorage } from 'node:async_hooks'
9
- import { closeSync, writeFileSync, mkdirSync, mkdtempSync, rmSync, existsSync, openSync, readFileSync, readdirSync, unlinkSync } from 'node:fs'
7
+ import { closeSync, writeFileSync, mkdirSync, mkdtempSync, rmSync, existsSync, openSync, readFileSync, readdirSync, unlinkSync, watch as watchFs } from 'node:fs'
10
8
  import { homedir, tmpdir } from 'node:os'
11
9
  import { fileURLToPath } from 'node:url'
12
10
  import { join, dirname } from 'node:path'
@@ -585,8 +583,8 @@ export function createCycleRunner({ claude, agent, mcpUrl, mcpHeaders, cfgKey, m
585
583
 
586
584
  // ── the backend WS loop ──────────────────────────────────────────────────────
587
585
  // One WebSocket identity feeds independent serialized work/reply queues. Each
588
- // accepted source keeps its own context; direct MCP reconciliation recovers work
589
- // without model spend while idle.
586
+ // accepted source keeps its own context; direct MCP reconciliation runs once
587
+ // when the event connection starts or reconnects, then the watcher stays idle.
590
588
  function loopBackendWs(options) {
591
589
  const watcher = createBackendWatcher(options)
592
590
  const stop = () => void watcher.close().then(() => process.exit(0))
@@ -2193,19 +2191,16 @@ export function createBackendWatcher({ backend, wsUrl, apiKey, identifier, slug,
2193
2191
  deliveryTimer?.unref?.()
2194
2192
  const authorizationTimer = autoStart ? setInterval(() => void resumeReadyAuthorizations(), 2_000) : null
2195
2193
  authorizationTimer?.unref?.()
2196
- const modelSettingsTimer = autoStart ? setInterval(refreshModelSettings, 2_000) : null
2197
- modelSettingsTimer?.unref?.()
2194
+ let modelSettingsWatcher = null
2195
+ if (autoStart) {
2196
+ try {
2197
+ modelSettingsWatcher = watchFs(stateDir, { persistent: false }, (_event, filename) => {
2198
+ if (!filename || String(filename) === `${slug}.json`) refreshModelSettings()
2199
+ })
2200
+ } catch { /* every cycle still refreshes settings before choosing a model */ }
2201
+ }
2198
2202
  emit('models.updated', { model: codeModel, chatModel: liteModel, modelSettingsRevision })
2199
- const heartbeatTimer = autoStart ? setInterval(() => {
2200
- emit('watcher.heartbeat', { status: 'running', active: queues.work.activeSize + queues.reply.activeSize, pending: queues.work.size + queues.reply.size, model: codeModel, chatModel: liteModel, modelSettingsRevision, workdir: workdir || '', ...(agentAppearance ? { profile: agentAppearance } : {}) })
2201
- // The Studio reads a bounded journal tail. Re-state current queue ownership
2202
- // so a long-running cycle stays visible after its start event rotates out.
2203
- for (const { data, control } of liveCycles.values()) {
2204
- if (!control.cancelled) emit('cycle.snapshot', { ...data, status: control.outcome, attempt: control.attempt || 1 })
2205
- }
2206
- }, 15_000) : null
2207
- heartbeatTimer?.unref?.()
2208
- let introTimer = null, taskProbeStartTimer = null, taskProbeTimer = null
2203
+ let introTimer = null
2209
2204
  if (autoStart && (mcpConfig || mcpUrl)) {
2210
2205
  // Workspace ethics: a one-time hello the FIRST time this agent ever connects.
2211
2206
  const introMarker = join(stateDir, 'intro-' + slugify(identifier) + '.done')
@@ -2218,13 +2213,8 @@ export function createBackendWatcher({ backend, wsUrl, apiKey, identifier, slug,
2218
2213
  }).catch((e) => log('guarded introduction failed: ' + (e?.message || e)))
2219
2214
  }, 5000) // let the socket subscribe first
2220
2215
  }
2221
- // Reconciliation replaces the old model-driven startup/daily sweep. It uses
2222
- // supported MCP tools directly, stays silent when empty, and hands verified
2223
- // coding tasks to the full lane instead of letting Luna announce it cannot code.
2224
- taskProbeStartTimer = setTimeout(() => void reconcileBacklog(), 3_000)
2225
- // WebSocket delivery is primary. A short bounded reconciliation interval
2226
- // keeps mentions responsive when a deployment omits targeted dispatch.
2227
- taskProbeTimer = setInterval(() => void reconcileBacklog(), 30_000)
2216
+ // The WebSocket onConnect hook performs one recovery pass. Do not poll the
2217
+ // backend while a healthy event connection is already waiting for work.
2228
2218
  } else {
2229
2219
  log('no MCP config — skipping intro + daily sweep (agent has no tools to post/act)')
2230
2220
  }
@@ -2238,11 +2228,8 @@ export function createBackendWatcher({ backend, wsUrl, apiKey, identifier, slug,
2238
2228
  closePromise = (async () => {
2239
2229
  clearInterval(authorizationTimer)
2240
2230
  clearInterval(deliveryTimer)
2241
- clearInterval(heartbeatTimer)
2242
- clearInterval(modelSettingsTimer)
2231
+ modelSettingsWatcher?.close()
2243
2232
  if (introTimer) clearTimeout(introTimer)
2244
- if (taskProbeStartTimer) clearTimeout(taskProbeStartTimer)
2245
- if (taskProbeTimer) clearInterval(taskProbeTimer)
2246
2233
  try { handle?.close() } catch { /* already disconnected */ }
2247
2234
  for (const queue of Object.values(queues)) {
2248
2235
  queue.cancel(() => true, (item) => { item.control.cancelled = true; item.control.wakeRecovery?.() })
@@ -2305,12 +2292,9 @@ function loop({ host, key, slug, claude, agent, mcpConfig, mcpUrl, workdir, mode
2305
2292
 
2306
2293
  const seen = new Set()
2307
2294
  let busy = false
2308
- const heartbeatTimer = setInterval(() => emit('watcher.heartbeat', { status: 'running', active: busy ? 1 : 0, model, chatModel, workdir: workdir || '' }), 15_000)
2309
- heartbeatTimer.unref?.()
2310
2295
  const close = () => {
2311
2296
  if (closePromise) return closePromise
2312
2297
  stopping = true
2313
- clearInterval(heartbeatTimer)
2314
2298
  clearTimeout(introTimer)
2315
2299
  clearInterval(sweepTimer)
2316
2300
  closePromise = (async () => {
package/studio/app.mjs CHANGED
@@ -393,7 +393,7 @@ function initializeStudio() {
393
393
  $('open-model-settings').disabled = !agent.settingsEditable;
394
394
  $('open-agent-removal').disabled = !agent.removable;
395
395
  const watcherRunning = agent.status === 'online' || agent.watcherAlive === true;
396
- $('toggle-watcher').textContent = watcherRunning ? 'Stop watcher' : 'Start watcher';
396
+ $('toggle-watcher').querySelector('span').textContent = watcherRunning ? 'Stop watcher' : 'Start watcher';
397
397
  $('toggle-watcher').dataset.action = watcherRunning ? 'stop' : 'start';
398
398
  $('toggle-watcher').disabled = watcherChanging || !agent.watcherControllable;
399
399
  $('restart-watcher').disabled = watcherChanging || !agent.watcherControllable;
package/studio/guide.html CHANGED
@@ -51,7 +51,7 @@
51
51
  </section>
52
52
  <section id="remove">
53
53
  <h2>Remove a local agent</h2>
54
- <p>Select an agent, choose <strong>Remove from computer</strong>, review the local data, and type its local name to confirm. Studio stops its watcher and background service, then removes its local connection credentials, logs, memory, and cached context. This cannot be undone.</p>
54
+ <p>Select an agent, choose <strong>Remove agent</strong>, review the local data, and type its local name to confirm. Studio stops its watcher and background service, then removes its local connection credentials, logs, memory, and cached context. This cannot be undone.</p>
55
55
  <p>Repositories, branches, shared model-provider logins, and the team’s agent profile stay in place. Context shared with another local connection is retained. Removal is available on macOS and Linux for the default local agent storage; custom state directories and Windows require manual management.</p>
56
56
  </section>
57
57
  <section id="watchers">
@@ -62,7 +62,7 @@
62
62
  <li>Select the agent in Studio and choose <strong>Start watcher</strong>. Studio installs its background watcher and starts it with the current package and saved model settings.</li>
63
63
  <li>Return to Studio. Your agent should appear in the sidebar. Select its name to see its activity.</li>
64
64
  </ol>
65
- <p>Use <strong>Stop watcher</strong> to take an agent offline and <strong>Restart watcher</strong> after changing its runtime installation or troubleshooting a connection. Restarting preserves its configuration and model choices.</p>
65
+ <p>Use <strong>Stop watcher</strong> to take an agent offline and <strong>Restart watcher</strong> after changing its runtime installation or troubleshooting a connection. Restarting preserves its configuration and model choices. While connected and idle, the watcher waits for WebSocket or local settings events without starting a coding runtime or polling project activity.</p>
66
66
  <p>Watcher controls are available for backend agents in the default local agent storage on macOS and Linux. Their earlier activity cannot be reconstructed.</p>
67
67
  </section>
68
68
  <section id="find-work">
package/studio/index.html CHANGED
@@ -34,6 +34,10 @@
34
34
  <symbol id="i-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></symbol>
35
35
  <symbol id="i-close" viewBox="0 0 24 24"><path d="m6 6 12 12M6 18 18 6"/></symbol>
36
36
  <symbol id="i-copy" viewBox="0 0 24 24"><rect x="8" y="8" width="12" height="13" rx="2"/><path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"/></symbol>
37
+ <symbol id="i-power" viewBox="0 0 24 24"><path d="M12 3v9"/><path d="M7.1 5.8a8 8 0 1 0 9.8 0"/></symbol>
38
+ <symbol id="i-refresh" viewBox="0 0 24 24"><path d="M20 7v5h-5"/><path d="M4 17v-5h5"/><path d="M6.1 8a7 7 0 0 1 11.7-1L20 12M4 12l2.2 5a7 7 0 0 0 11.7-1"/></symbol>
39
+ <symbol id="i-sliders" viewBox="0 0 24 24"><path d="M4 6h10M18 6h2M4 12h2m4 0h10M4 18h8m4 0h4"/><circle cx="16" cy="6" r="2"/><circle cx="8" cy="12" r="2"/><circle cx="14" cy="18" r="2"/></symbol>
40
+ <symbol id="i-user-minus" viewBox="0 0 24 24"><circle cx="9" cy="8" r="4"/><path d="M2 21a7 7 0 0 1 14 0M17 11h6"/></symbol>
37
41
  </defs></svg>
38
42
  <a class="skip-link" href="#workspace">Skip to activity</a>
39
43
  <div class="app-shell">
@@ -61,7 +65,7 @@
61
65
  <div id="notice" class="notice" role="status" hidden></div>
62
66
  <section id="model-settings-summary" class="model-settings-summary" aria-label="Agent model settings" hidden>
63
67
  <div><h2 id="model-settings-agent">Model settings</h2><p id="model-settings-state" role="status"></p></div>
64
- <div class="header-actions"><button id="toggle-watcher" class="button" type="button">Start watcher</button><button id="restart-watcher" class="button" type="button">Restart watcher</button><button id="open-model-settings" class="button" type="button">Model settings</button><button id="open-agent-removal" class="button" type="button">Remove from computer</button></div>
68
+ <div class="header-actions model-settings-actions-row"><button id="toggle-watcher" class="button studio-action" type="button"><svg class="icon" aria-hidden="true"><use href="#i-power"/></svg><span>Start watcher</span></button><button id="restart-watcher" class="button studio-action restart-action" type="button"><svg class="icon" aria-hidden="true"><use href="#i-refresh"/></svg><span>Restart watcher</span></button><button id="open-model-settings" class="button studio-action settings-action" type="button"><svg class="icon" aria-hidden="true"><use href="#i-sliders"/></svg><span>Model settings</span></button><button id="open-agent-removal" class="button studio-action remove-action" type="button"><svg class="icon" aria-hidden="true"><use href="#i-user-minus"/></svg><span>Remove agent</span></button></div>
65
69
  </section>
66
70
  <dialog id="model-settings-dialog" aria-labelledby="model-settings-title">
67
71
  <form id="model-settings-form" class="model-settings-form">
package/studio/style.css CHANGED
@@ -360,6 +360,13 @@
360
360
  .model-settings-summary:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface, white); }
361
361
  .model-settings-summary h2 { margin: 0 0 6px; font-size: 13px; font-weight: 500; }
362
362
  .model-settings-summary p { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
363
+ .model-settings-actions-row { gap: 8px; }
364
+ .studio-action .icon { transition: transform .16s ease-out, color .16s ease-out; }
365
+ .studio-action:hover .icon { transform: translateY(-1px); }
366
+ #toggle-watcher[data-action="start"] .icon { color: var(--success); }
367
+ #toggle-watcher[data-action="stop"] .icon, .remove-action .icon { color: var(--destructive); }
368
+ .restart-action .icon { color: var(--orange); }
369
+ .settings-action .icon { color: var(--purple); }
363
370
  #model-settings-dialog, #agent-removal-dialog { width: min(500px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow-y: auto; border: 1px solid var(--border); border-radius: 24px; color: var(--ink); background: var(--surface, white); box-shadow: 0 24px 80px #0002; }
364
371
  #model-settings-dialog::backdrop, #agent-removal-dialog::backdrop { background: #0005; }
365
372
  .model-settings-form { display: grid; gap: 12px; }