ai-agentmanager 1.39.0 → 1.40.0

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.40.0 (2026-11-11)
4
+
5
+ - **A calmer agent list.** No summary line under each name (it's the name's tooltip, and search still finds it); the engine, container, assistant and playbook tags move to the line below. The project name shows where the branch was (the branch is in its tooltip).
6
+ - **Open sessions stand out** with a green background, a little stronger while the agent is working and when selected.
7
+ - **Overview and Questions panels.** In an agent's detail, **Overview** (the AI review, marked *new* until you've seen it) and **Questions** (open questions with their answer buttons, and what you answered) sit next to **Review changes**, each in its own panel, instead of filling the page. Prompts, limits, stuck warnings and overlaps still show on the page.
8
+
3
9
  ## 1.39.0 (2026-11-11)
4
10
 
5
11
  - **Limits: agents carry on after a usage limit.** When an engine stops at a usage limit or exhausted quota ("5-hour limit reached ∙ resets 3pm", Codex's "try again at 3:05 PM") or a busy or failing service (429, 529 overloaded, 5xx), the inbox shows a **Limit** card with the message and when it resets, read in the time zone it names. A minute after the reset the agent is told to continue (a busy service: after 5 minutes), at most three times an hour; `"limits": { "autoResume": false }` turns that off. **Continue now** does it at once.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-agentmanager",
3
- "version": "1.39.0",
3
+ "version": "1.40.0",
4
4
  "description": "Run background coding agents (Claude Code, Codex) per intent, and keep track of them from a web UI, your phone or the CLI",
5
5
  "keywords": [
6
6
  "claude",
package/public/app.js CHANGED
@@ -1027,16 +1027,15 @@ function agentItem(a, { project = false } = {}) {
1027
1027
  const st = statusOf(a);
1028
1028
  const idle = !isActive(a);
1029
1029
  const p = project && a.projectInfo && !['other', 'general', 'assistant'].includes(a.projectInfo.key) ? a.projectInfo : null;
1030
- return `<li data-id="${a.id}" ${a.kind === 'general' || a.kind === 'assistant' ? '' : 'draggable="true" '}class="agent pr${a.priority ?? 2} ${a.id === selectedId ? 'selected' : ''} ${idle ? 'idle' : ''}">
1031
- <div class="line1">${prioChip(a.priority ?? 2)}${a.results?.outcome === 'blocked' ? '<span class="outcome-mark" title="Blocked">⛔</span>' : a.results?.outcome === 'done' ? '<span class="outcome-mark" title="Done">✅</span>' : ''}<span class="name">${esc(a.name)}</span>${flags(a)}<span class="pill ${st}">${pillText(st)}</span></div>
1032
- <div class="intent" title="${esc(describeTitle(a) ?? '')}">${a.builds ? `<span class="tag assistant" title="Develops the agent ${esc(a.builds.name)} (Built tab)">⚙ builds agent</span> ` : ''}${a.kind === 'general' ? '<span class="tag">general</span> ' : a.kind === 'assistant' ? '<span class="tag assistant">assistant</span> ' : a.startedBy ? '<span class="tag assistant" title="Started by the assistant">🤖 by assistant</span> ' : a.trigger ? `<span class="tag assistant" title="Started from ${a.trigger.source === 'github' ? 'a labeled GitHub issue' : 'the webhook'}${a.trigger.url ? `: ${esc(a.trigger.url)}` : ''}">⚡ ${a.trigger.source === 'github' ? 'GitHub' : 'webhook'}</span> ` : a.playbook ? `<span class="tag assistant" title="Started by the playbook ${esc(a.playbook.name)}">▶ ${esc(a.playbook.name)}</span> ` : ''}${a.engine && a.engine !== 'claude' ? `<span class="tag engine">${esc(ENGINE_LABEL[a.engine] ?? a.engine)}</span> ` : ''}${a.isolation === 'container' ? '<span class="tag engine" title="Runs in its own Docker container: it sees only its own folder">📦 container</span> ' : ''}${esc(describe(a) || (a.kind === 'assistant' ? 'Finds new work and starts agents for it' : 'General session'))}</div>
1030
+ return `<li data-id="${a.id}" ${a.kind === 'general' || a.kind === 'assistant' ? '' : 'draggable="true" '}class="agent pr${a.priority ?? 2} ${a.id === selectedId ? 'selected' : ''} ${idle ? 'idle' : ''} ${a.runtime.running ? `running ${st}` : ''}">
1031
+ <div class="line1">${prioChip(a.priority ?? 2)}${a.results?.outcome === 'blocked' ? '<span class="outcome-mark" title="Blocked">⛔</span>' : a.results?.outcome === 'done' ? '<span class="outcome-mark" title="Done">✅</span>' : ''}<span class="name" title="${esc(describeTitle(a) || (a.kind === 'assistant' ? 'Finds new work and starts agents for it' : 'General session'))}">${esc(a.name)}</span>${flags(a)}<span class="pill ${st}">${pillText(st)}</span></div>
1033
1032
  ${a.status === 'preparing' && a.progress ? `<div class="progress-line">${esc(progressText(a.progress))}</div>` : ''}
1034
1033
  <div class="meta">
1035
1034
  <span class="mono">${a.id}</span>
1036
- ${p ? `<span class="tag proj" title="Project: ${esc(p.full || p.name)}">${esc(p.shortcut || p.name)}</span>` : ''}
1035
+ ${a.builds ? `<span class="tag assistant" title="Develops the agent ${esc(a.builds.name)} (Built tab)">⚙ builds agent</span> ` : ''}${a.kind === 'general' ? '<span class="tag">general</span> ' : a.kind === 'assistant' ? '<span class="tag assistant">assistant</span> ' : a.startedBy ? '<span class="tag assistant" title="Started by the assistant">🤖 by assistant</span> ' : a.trigger ? `<span class="tag assistant" title="Started from ${a.trigger.source === 'github' ? 'a labeled GitHub issue' : 'the webhook'}${a.trigger.url ? `: ${esc(a.trigger.url)}` : ''}">⚡ ${a.trigger.source === 'github' ? 'GitHub' : 'webhook'}</span> ` : a.playbook ? `<span class="tag assistant" title="Started by the playbook ${esc(a.playbook.name)}">▶ ${esc(a.playbook.name)}</span> ` : ''}${a.engine && a.engine !== 'claude' ? `<span class="tag engine">${esc(ENGINE_LABEL[a.engine] ?? a.engine)}</span> ` : ''}${a.isolation === 'container' ? '<span class="tag engine" title="Runs in its own Docker container: it sees only its own folder">📦 container</span> ' : ''}
1037
1036
  ${!idle && project && a.activeAt ? `<span title="Last used">${ago(a.activeAt)}</span>` : ''}
1038
1037
  ${idle && a.activeAt ? `<span title="Idle: no work and no input from you for over a day">💤 ${ago(a.activeAt)}</span>` : ''}
1039
- ${a.git?.branch ? `<span class="branch" title="${esc(a.git.branch)}">⎇ ${esc(a.git.branch)}</span>` : ''}
1038
+ ${p ? `<span class="branch proj-name" title="Project: ${esc(p.full || p.name)}${a.git?.branch ? ` · branch ${esc(a.git.branch)}` : ''}">${esc(p.name)}</span>` : ''}
1040
1039
  ${a.prs.length ? `<span>${a.prs.length} PR</span>` : ''}
1041
1040
  ${a.bugs.length ? `<span>${a.bugs.length} bug</span>` : ''}
1042
1041
  ${a.usage?.total ? `<span title="${esc(usageTitle(a.usage))}">${fmtTokens(ioOf(a.usage))} tok</span>` : ''}
@@ -1784,11 +1783,42 @@ async function onNeedSubmit(e) {
1784
1783
  }
1785
1784
  done();
1786
1785
  }
1787
- for (const root of [$('#inbox-view'), $('#detail-body')]) {
1786
+ for (const root of [$('#inbox-view'), $('#detail-body'), $('#needs-body')]) {
1788
1787
  root.addEventListener('click', onNeed);
1789
1788
  root.addEventListener('submit', onNeedSubmit);
1790
1789
  }
1791
1790
 
1791
+ // ------------------------------------------------------------------ overview and questions panels
1792
+
1793
+ const openQuestions = (a) => (a.questions ?? []).filter((q) => !q.answer).length;
1794
+ let needsOpen = null; // { id, kind: 'overview' | 'questions' }
1795
+
1796
+ function openNeeds(id, kind) {
1797
+ needsOpen = { id, kind };
1798
+ renderNeeds();
1799
+ if (!$('#needs-dialog').open) $('#needs-dialog').showModal();
1800
+ }
1801
+
1802
+ /** The open panel's cards, redrawn as the agent changes (an answer sent, the review marked seen). */
1803
+ function renderNeeds() {
1804
+ if (!needsOpen) return;
1805
+ const a = agents.get(needsOpen.id);
1806
+ if (!a) return $('#needs-dialog').close();
1807
+ $('#needs-title').textContent = `${needsOpen.kind === 'overview' ? 'Overview' : 'Questions'}: ${a.name}`;
1808
+ let html;
1809
+ if (needsOpen.kind === 'overview') {
1810
+ html = a.aiReview?.verdict ? needCard({ a, kind: 'review', key: `review:${a.id}` }, { inDetail: true }) : '<p class="hint">No AI review yet.</p>';
1811
+ } else {
1812
+ const open = (a.questions ?? []).filter((q) => !q.answer);
1813
+ const answered = (a.questions ?? []).filter((q) => q.answer);
1814
+ html = (open.length ? `<div class="needs">${open.map((q) => needCard({ a, kind: 'question', key: `q:${a.id}:${q.id}`, q }, { inDetail: true })).join('')}</div>` : '<p class="hint">No open questions.</p>') +
1815
+ (answered.length ? `<h4>Answered</h4><ul class="answered">${answered.map((q) => `<li><b>${esc(q.question)}</b><br>${esc(q.answer.text ?? q.answer)} <span class="hint">${q.answer.at ? ago(q.answer.at) : ""}</span></li>`).join('')}</ul>` : '');
1816
+ }
1817
+ morph($('#needs-body'), `<div class="needs">${html}</div>`);
1818
+ }
1819
+ $('#needs-close').onclick = () => $('#needs-dialog').close();
1820
+ $('#needs-dialog').addEventListener('close', () => (needsOpen = null));
1821
+
1792
1822
  // ------------------------------------------------------------------ checkpoints and forks
1793
1823
 
1794
1824
  function checkpointsCard(a) {
@@ -2193,6 +2223,7 @@ function bugRow(a, b) {
2193
2223
  }
2194
2224
 
2195
2225
  function renderDetail() {
2226
+ renderNeeds();
2196
2227
  const a = agents.get(selectedId);
2197
2228
  $('#placeholder').hidden = Boolean(a);
2198
2229
  const body = $('#detail-body');
@@ -2239,6 +2270,8 @@ function renderDetail() {
2239
2270
  ${(a.engine ?? 'claude') === 'claude' && a.isolation !== 'container' && !a.movedTo && !REMOTE ? `<button data-act="desktop" ${a.sessionId && a.workdir && a.status !== 'preparing' ? '' : 'disabled'} title="Continue this conversation in the Claude desktop app. Its session here closes; Resume here later picks up what was said there">Open in Claude desktop</button>` : ''}
2240
2271
  <button data-act="shell" ${a.workdir && a.status !== 'preparing' ? '' : 'disabled'} title="A separate terminal in this agent's folder for running commands by hand">Open shell</button>
2241
2272
  ${noRepo(a) ? '' : `<button data-act="changes" ${a.workdir && a.status !== 'preparing' ? '' : 'disabled'} title="Read its changes, comment on lines for the agent, commit and open a pull request">Review changes${a.git?.dirtyFiles ? ` <span class="count">${a.git.dirtyFiles}</span>` : ''}</button>`}
2273
+ ${a.aiReview?.verdict ? `<button data-act="overview" title="The AI review: what's done, what's missing, the risks">Overview${a.aiReview.seen ? '' : ' <span class="count">new</span>'}</button>` : ''}
2274
+ ${a.questions?.length ? `<button data-act="questions" title="What the agent asked you, and your answers">Questions${openQuestions(a) ? ` <span class="count">${openQuestions(a)}</span>` : ''}</button>` : ''}
2242
2275
  <button data-act="fork" ${a.workdir && a.git?.branch ? '' : 'disabled'} title="A new agent with this one's code and conversation, in its own worktree, to try another approach">Fork</button>
2243
2276
  <button data-act="edit" title="Change its name, request, project, priority, permission mode or model">Edit</button>
2244
2277
  <button data-act="refresh" title="Re-scan git, PRs and transcripts">Refresh</button>
@@ -2282,7 +2315,8 @@ function renderDetail() {
2282
2315
  ${a.builds ? builtUi.panel(a) : ''}
2283
2316
  ${a.forkOf ? `<div class="bl-banner">⑂ Forked from <a href="#${a.forkOf.agentId}" data-goto="${a.forkOf.agentId}">${esc(a.forkOf.name)}</a>${a.forkOf.checkpoint ? ` at checkpoint ${a.forkOf.checkpoint}` : ''} ${ago(a.forkOf.at)}</div>` : ''}
2284
2317
  ${(() => {
2285
- const items = needsFor(a, { both: true });
2318
+ // The AI review and the questions have their own panels (Overview, Questions).
2319
+ const items = needsFor(a, { both: true }).filter((it) => it.kind !== 'review' && it.kind !== 'question');
2286
2320
  return items.length ? `<div class="needs">${items.map((it) => needCard(it, { inDetail: true })).join('')}</div>` : '';
2287
2321
  })()}
2288
2322
  ${a.outbox ? `<div class="hint outbox-note">✉ ${a.outbox} message${a.outbox > 1 ? 's' : ''} waiting to be typed into the session when the agent is idle</div>` : ''}
@@ -3829,6 +3863,9 @@ $('#detail-body').addEventListener('click', async (e) => {
3829
3863
  break;
3830
3864
  case 'changes':
3831
3865
  return reviewUi.open(a.id);
3866
+ case 'overview':
3867
+ case 'questions':
3868
+ return openNeeds(a.id, btn.dataset.act);
3832
3869
  case 'memory':
3833
3870
  return openMemory(a);
3834
3871
  case 'fork':
package/public/index.html CHANGED
@@ -526,6 +526,15 @@
526
526
  <div id="team-body" class="race-body team-body"></div>
527
527
  </dialog>
528
528
 
529
+ <dialog id="needs-dialog" class="doc-dialog">
530
+ <div class="doc-head">
531
+ <h2 id="needs-title">Overview</h2>
532
+ <span class="spacer"></span>
533
+ <button type="button" id="needs-close" class="small ghost">Close</button>
534
+ </div>
535
+ <div id="needs-body" class="needs-body"></div>
536
+ </dialog>
537
+
529
538
  <dialog id="review-dialog" class="doc-dialog review-dialog">
530
539
  <div class="doc-head">
531
540
  <h2 id="review-title">Review</h2>
package/public/style.css CHANGED
@@ -223,7 +223,7 @@ body.term-max .layout { grid-template-columns: 1fr; }
223
223
  #list-order, #list-project { width: auto; flex: none; padding: 1px 4px; font-size: 12px; }
224
224
  #list-project { max-width: 160px; }
225
225
  #list-project[hidden] { display: none; }
226
- .agent-list li.agent .tag.proj { cursor: default; }
226
+ .agent-list .meta .proj-name { color: var(--text); font-weight: 500; }
227
227
  .agent-list { list-style: none; margin: 0; padding: 0; }
228
228
  .agent-list li.project { border-bottom: 1px solid var(--border); }
229
229
  .agent-list li.agent[draggable='true'] { cursor: grab; }
@@ -250,6 +250,11 @@ body.term-max .layout { grid-template-columns: 1fr; }
250
250
  .agent-list li.agent::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; border-left: 1px solid var(--border); }
251
251
  .agent-list li.agent:hover { background: var(--panel-2); }
252
252
  .agent-list li.agent.selected { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
253
+ /* Open sessions stand out: a green tint, a little stronger while working. */
254
+ .agent-list li.agent.running { background: color-mix(in srgb, var(--green) 8%, var(--panel)); }
255
+ .agent-list li.agent.running.working { background: color-mix(in srgb, var(--green) 14%, var(--panel)); }
256
+ .agent-list li.agent.running:hover { background: color-mix(in srgb, var(--green) 16%, var(--panel)); }
257
+ .agent-list li.agent.running.selected { background: color-mix(in srgb, var(--green) 20%, var(--panel)); }
253
258
  .agent-list .line1 { display: flex; align-items: center; gap: 8px; }
254
259
  .agent-list .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
255
260
  .agent-list .intent { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@@ -722,6 +727,10 @@ pre.diff .meta { color: var(--muted); font-weight: 600; }
722
727
  /* Review changes */
723
728
  .review-dialog { width: min(1400px, calc(100vw - 24px)); height: calc(100vh - 32px); max-height: none; }
724
729
  .review-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 18px 14px; }
730
+ .needs-body { flex: 1; min-height: 0; overflow: auto; padding: 0 18px 16px; }
731
+ .needs-body .needs .needs { margin-top: 0; }
732
+ .needs-body h4 { margin: 16px 0 6px; }
733
+ .needs-body .answered { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
725
734
  .rv-summary { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; }
726
735
  .rv-warn { margin: 0; color: var(--yellow); }
727
736
  .rv-add { color: var(--green); font-family: var(--mono); font-size: 12px; }