ai-agentmanager 1.56.0 → 1.56.2

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,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.56.2 (2026-11-17)
4
+
5
+ - **Terminal text size.** ☰ → **Terminal text** has A− / 13 / A+ (10 to 22 px, kept per browser). It applies to an agent's session, split-screen groups and Open Terminal; the Watch tiles keep their own size.
6
+ - **Why a terminal is sometimes very small, said on the terminal.** A session open in two places (a split-screen group, another window, another device) is shown at the size of the one last typed or clicked in, and the other scales its text to fit, down to 6 px. A view shrunk this way now carries a note: "Small to match another window or group showing this session · click here to fit it". A click fits it again, as before.
7
+
8
+ ## 1.56.1 (2026-11-17)
9
+
10
+ - **Review rounds and the AI judge are easier to find.** Their switches were two lines under the inbox cards. They are now one short row at the top of the inbox, each with its Turn on / Turn off button and the explanation in its tooltip, and a link to Settings.
11
+ - **☰ → Settings → Review and judging** is new: the review rounds switch, the number of rounds (1 to 5) and critics (1 to 3), whether the pull request opens when the critics approve, and the AI judge switch. The numbers could only be changed with `agentmgr rounds` or in config.json before.
12
+
3
13
  ## 1.56.0 (2026-11-17)
4
14
 
5
15
  - **Review rounds before a pull request.** A pull request's reviewers, people or GitHub Copilot, should not be the ones who find the bugs. When an agent says it is done, critics on other models read its changes in the background and report what is wrong or missing: wrong results and missed cases, error handling, behavior callers relied on, security, missing tests, and what the task asked for that isn't there. The findings go to the agent's session as one message, it fixes them and says done again, and the critics look again, until no blocker or major finding is open or the rounds run out (4 by default, 5 at most).
package/README.md CHANGED
@@ -464,7 +464,7 @@ Minor findings and nits are passed to the agent but do not hold the pull request
464
464
 
465
465
  The agent's detail shows the rounds as they go: the round, each critic's verdict, and every finding with whether it is dealt with. **Review rounds** there starts them by hand, also with the switch off. From the command line: `agentmgr rounds <agent>` (`--start`, `--again`, `--open`, `--stop`).
466
466
 
467
- - **The switch** is the line under the inbox, or `agentmgr rounds --on|--off`. It is on by default.
467
+ - **The switch** is at the top of the inbox, and in ☰ → Settings → Review and judging with the number of rounds and critics; or `agentmgr rounds --on|--off`. It is on by default.
468
468
  - **Rounds and critics:** `agentmgr rounds --rounds 5 --critics 3`. A critic that fails in a round is replaced by the next model.
469
469
  - **Other providers, if you have them.** A different provider catches different mistakes. To use one, name the critics yourself in config.json: `"preReview": { "models": [{ "engine": "codex" }, { "engine": "claude", "model": "opus" }] }`. They come first, and an engine that isn't installed is left out.
470
470
  - **Engines other than Claude Code.** The app knows Claude Code's model names. For another engine, say which of its models review: `"engines": { "codex": { "reviewModels": ["…", "…"] } }`. Without that, one critic reads each round, on the model the engine is set up with. An agent on a local model or an ACP agent is read by the engine that writes its summaries (Claude Code); with none installed, it has no review rounds.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-agentmanager",
3
- "version": "1.56.0",
3
+ "version": "1.56.2",
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
@@ -26,7 +26,8 @@ import { initSupport } from '/support.js';
26
26
  import { initCode } from '/code.js';
27
27
  import { initMachine } from '/machine.js';
28
28
  import { initWatch } from '/watch.js';
29
- import { initGroups, followSize, scaleToFit, leadSize } from '/groups.js';
29
+ import { initGroups, followSize, scaleToFit, leadSize, ownFont, newFont } from '/groups.js';
30
+ import { termFont } from '/termfont.js';
30
31
  import { initTopNav } from '/topnav.js';
31
32
  import { initStandup } from '/standup.js';
32
33
  import { initIssues } from '/issues.js';
@@ -1749,7 +1750,7 @@ document.addEventListener('input', (e) => {
1749
1750
  if (e.target.dataset?.draft) needDrafts.set(e.target.dataset.draft, e.target.value);
1750
1751
  });
1751
1752
 
1752
- /** The AI judge's state for the line under the inbox: it spends calls on the user's own plan. */
1753
+ /** The AI judge's state for the switch at the top of the inbox: it spends calls on the user's own plan. */
1753
1754
  let judgeStatus = null;
1754
1755
  async function loadJudge() {
1755
1756
  try {
@@ -1763,22 +1764,28 @@ async function loadJudge() {
1763
1764
 
1764
1765
  /** Review rounds before a pull request (prereview.js): the switch, with what a round costs. */
1765
1766
  let roundsStatus = null;
1766
- function roundsLine() {
1767
+ // Settings saved them: the switches show the new state.
1768
+ document.addEventListener('agentmgr:review-settings', () => loadJudge());
1769
+ /**
1770
+ * The switches at the top of the inbox: review rounds and the AI judge, each with what it costs
1771
+ * (the whole of it in the tooltip). The numbers are in Settings.
1772
+ */
1773
+ function inboxSwitches() {
1767
1774
  const r = roundsStatus;
1768
- if (!r) return '';
1769
- const text = r.enabled
1770
- ? `🔎 Review rounds on: when an agent says it is done, ${r.critics} ${r.critics === 1 ? 'critic' : 'critics'} on other models read its changes, it fixes what they find, and they look again (up to ${r.rounds} rounds). ${r.openPr ? 'The pull request is opened when they approve.' : ''} Each round is ${r.critics === 1 ? 'a call' : `${r.critics} calls`} on your own plan.`
1771
- : '🔎 Review rounds off: changes are not reviewed by other models before a pull request.';
1772
- return `<p class="judge-line hint">${esc(text)} <button class="small ghost" data-rounds="${r.enabled ? 'off' : 'on'}">${r.enabled ? 'Turn off' : 'Turn on'}</button></p>`;
1773
- }
1774
-
1775
- function judgeLine() {
1776
1775
  const j = judgeStatus;
1777
- if (!j) return '';
1778
- const text = j.enabled
1779
- ? `🤖 AI judge on: ${j.calls} of ${j.cap} calls today, on your own Claude or Codex plan. It checks stuck agents, idle screens, finished work, overlaps, backlog order and alerts.`
1780
- : '🤖 AI judge off: stuck agents, idle screens and alerts use fixed rules only.';
1781
- return `<p class="judge-line hint">${esc(text)} <button class="small ghost" data-judge="${j.enabled ? 'off' : 'on'}">${j.enabled ? 'Turn off' : 'Turn on'}</button></p>`;
1776
+ if (!r && !j) return '';
1777
+ const one = (key, on, text, title) => `<span class="inbox-switch ${on ? '' : 'off'}" title="${esc(title)}">${esc(text)} <button class="small ghost" data-${key}="${on ? 'off' : 'on'}">${on ? 'Turn off' : 'Turn on'}</button></span>`;
1778
+ const rounds = !r
1779
+ ? ''
1780
+ : r.enabled
1781
+ ? one('rounds', true, `🔎 Review rounds on · ${r.critics} ${r.critics === 1 ? 'critic' : 'critics'}, up to ${r.rounds} ${r.rounds === 1 ? 'round' : 'rounds'}`, `When an agent says it is done, ${r.critics} ${r.critics === 1 ? 'critic' : 'critics'} on other models read its changes, it fixes what they find, and they look again (up to ${r.rounds} rounds). ${r.openPr ? 'The pull request is opened when they approve. ' : ''}Each round is ${r.critics === 1 ? 'a call' : `${r.critics} calls`} on your own plan.`)
1782
+ : one('rounds', false, '🔎 Review rounds off', 'Changes are not reviewed by other models before a pull request.');
1783
+ const judge = !j
1784
+ ? ''
1785
+ : j.enabled
1786
+ ? one('judge', true, `🤖 AI judge on · ${j.calls} of ${j.cap} calls today`, 'On your own Claude or Codex plan. It checks stuck agents, idle screens, finished work, overlaps, backlog order and alerts.')
1787
+ : one('judge', false, '🤖 AI judge off', 'Stuck agents, idle screens and alerts use fixed rules only.');
1788
+ return `<div class="inbox-switches hint">${rounds}${judge}<button class="link" data-inbox-settings title="Rounds, critics and the pull request: in Settings">Settings…</button></div>`;
1782
1789
  }
1783
1790
 
1784
1791
  function renderInbox() {
@@ -1791,15 +1798,17 @@ function renderInbox() {
1791
1798
  if (view.contains(document.activeElement) && document.activeElement.dataset.draft) return; // don't yank the field being typed in
1792
1799
  morph(
1793
1800
  view,
1794
- (items.length
1795
- ? `<div class="counts"><span>${items.length} waiting on you</span></div><div class="needs inbox">${promptGroups(items).map(groupCard).join('')}${items.map((it) => needCard(it)).join('')}</div>`
1796
- : `<div class="empty"><p>Nothing needs you right now.</p><p>Prompts waiting for an answer, questions agents ask, agents that seem stuck and agents editing the same files show up here.</p></div>`) + judgeLine() + roundsLine(),
1801
+ inboxSwitches() +
1802
+ (items.length
1803
+ ? `<div class="counts"><span>${items.length} waiting on you</span></div><div class="needs inbox">${promptGroups(items).map(groupCard).join('')}${items.map((it) => needCard(it)).join('')}</div>`
1804
+ : `<div class="empty"><p>Nothing needs you right now.</p><p>Prompts waiting for an answer, questions agents ask, agents that seem stuck and agents editing the same files show up here.</p></div>`),
1797
1805
  );
1798
1806
  }
1799
1807
 
1800
1808
  async function onNeed(e) {
1801
1809
  // A recommendation's own buttons (Decide draws them on plan and question cards).
1802
1810
  if (decideUi?.handle(e)) return e.preventDefault();
1811
+ if (e.target.closest('[data-inbox-settings]')) return $('#settings-btn').click();
1803
1812
  const judge = e.target.closest('[data-judge]');
1804
1813
  if (judge) {
1805
1814
  e.preventDefault();
@@ -2691,7 +2700,7 @@ const term = {
2691
2700
  this.xterm = new Terminal({
2692
2701
  cursorBlink: true,
2693
2702
  fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace',
2694
- fontSize: 13,
2703
+ fontSize: termFont(),
2695
2704
  scrollback: 10000,
2696
2705
  theme: { background: '#0f1117' },
2697
2706
  allowProposedApi: true,
@@ -2710,6 +2719,7 @@ const term = {
2710
2719
  // Shown in a split-screen group too (or another window): the view typed in sets the size.
2711
2720
  this.xterm.onResize(({ cols, rows }) => !this.follow && this.send({ t: 'r', cols, rows }));
2712
2721
  new ResizeObserver(() => (this.follow ? scaleToFit(this, $('#terminal')) : this.refit())).observe($('#terminal'));
2722
+ window.addEventListener('agentmgr-termfont', () => newFont(this, () => this.refit(), $('#terminal')));
2713
2723
  touchScroll($('#terminal'), this.xterm);
2714
2724
  },
2715
2725
 
@@ -2751,8 +2761,7 @@ const term = {
2751
2761
  this.agentId = id;
2752
2762
  this.kind = kind;
2753
2763
  this.shellExited = false;
2754
- this.follow = false;
2755
- this.xterm.options.fontSize = 13;
2764
+ ownFont(this);
2756
2765
  this.xterm.reset();
2757
2766
  this.syncOverlay();
2758
2767
  requestAnimationFrame(() => this.refit());
package/public/groups.js CHANGED
@@ -6,17 +6,18 @@
6
6
  // there), with the group's picker, or by clicking an agent in the list while that group is active.
7
7
  // The layout and what each group shows are kept per browser.
8
8
 
9
+ import { termFont } from '/termfont.js';
10
+
9
11
  const SAVED = 'agentmgr.groups';
10
12
  const MAX_GROUPS = 6;
11
13
  // What a terminal answers to the program's queries (cursor position, colors, focus): never typing.
12
14
  const REPLY = /^(\x1b\[[\d;?>]*[IOcRnt]|\x1b\][\d;]*[^\x07\x1b]*(\x07|\x1b\\))+$/;
13
15
  const EDGE = 0.25; // a drop this close to a group's right or bottom edge splits it
14
16
  const isShell = (k) => /^shell(:\d+)?$/.test(k ?? '');
15
- const FONT = 13;
16
17
 
17
18
  // One session, several views (the main panel, groups, another window): the view you type in or
18
19
  // click sets the session's size; the others show it at that size, the font scaled to fit, until
19
- // you type in or click one of them. `v` is { xterm, follow }.
20
+ // you type in or click one of them (a view made much smaller says so). `v` is { xterm, follow }.
20
21
 
21
22
  /** Another view resized the session: show it at that size. */
22
23
  export function followSize(v, cols, rows, box) {
@@ -32,15 +33,29 @@ export function scaleToFit(v, box) {
32
33
  if (!v.follow || !screen?.offsetWidth || !box.clientWidth) return;
33
34
  const f = v.xterm.options.fontSize;
34
35
  const ratio = Math.min(box.clientWidth / screen.offsetWidth, box.clientHeight / screen.offsetHeight);
35
- const next = Math.max(6, Math.min(FONT, Math.floor(f * ratio * 10) / 10));
36
+ const next = Math.max(6, Math.min(termFont(), Math.floor(f * ratio * 10) / 10));
36
37
  if (Math.abs(next - f) > 0.05) v.xterm.options.fontSize = next;
38
+ box.classList.toggle('shrunk', next < termFont() * 0.8);
39
+ }
40
+
41
+ /** A view on its own size again (it leads, or shows another session): its own font, no note. */
42
+ export function ownFont(v) {
43
+ v.follow = false;
44
+ v.xterm.options.fontSize = termFont();
45
+ v.xterm.element?.parentElement?.classList.remove('shrunk');
46
+ }
47
+
48
+ /** The text size was changed in the menu. */
49
+ export function newFont(v, fit, box) {
50
+ v.xterm.options.fontSize = termFont();
51
+ if (v.follow) requestAnimationFrame(() => scaleToFit(v, box));
52
+ else fit();
37
53
  }
38
54
 
39
55
  /** This view sets the size again: its own font, fitted to its panel, sent to the session. */
40
56
  export function leadSize(v, fit, send) {
41
57
  if (!v.follow) return;
42
- v.follow = false;
43
- v.xterm.options.fontSize = FONT;
58
+ ownFont(v);
44
59
  try {
45
60
  fit();
46
61
  } catch {}
@@ -90,7 +105,7 @@ export function initGroups({ $, esc, agents, Terminal, FitAddon, openStream, api
90
105
  const xterm = new Terminal({
91
106
  cursorBlink: true,
92
107
  fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace',
93
- fontSize: FONT,
108
+ fontSize: termFont(),
94
109
  scrollback: 10000,
95
110
  theme: { background: '#0f1117' },
96
111
  allowProposedApi: true,
@@ -111,6 +126,9 @@ export function initGroups({ $, esc, agents, Terminal, FitAddon, openStream, api
111
126
  }
112
127
 
113
128
  const lead = (p) => leadSize(p, () => p.fit.fit(), (m) => p.conn?.send(m));
129
+ window.addEventListener('agentmgr-termfont', () => {
130
+ for (const p of panes.values()) if (p.opened) newFont(p, () => refit(p), p.el.querySelector('.gterm'));
131
+ });
114
132
 
115
133
  function refit(p) {
116
134
  if (!p.opened || !p.agentId || !p.el.isConnected || p.follow) return;
@@ -142,8 +160,7 @@ export function initGroups({ $, esc, agents, Terminal, FitAddon, openStream, api
142
160
  p.opened = true;
143
161
  }
144
162
  p.failed = false;
145
- p.follow = false;
146
- p.xterm.options.fontSize = FONT;
163
+ ownFont(p);
147
164
  p.xterm.reset();
148
165
  const conn = openStream(
149
166
  { agentId: p.agentId, kind: p.kind },
package/public/index.html CHANGED
@@ -76,6 +76,7 @@
76
76
  <button role="menuitem" id="remote-btn" class="local-only" title="Open AI Agent Manager from your phone">Remote access…</button>
77
77
  <div class="menu-sep"></div>
78
78
  <div class="menu-theme"><span>Theme</span><span class="seg" role="radiogroup" aria-label="Theme"><button type="button" data-theme-set="auto" title="Follow this device's setting">Auto</button><button type="button" data-theme-set="light">Light</button><button type="button" data-theme-set="dark">Dark</button></span></div>
79
+ <div class="menu-theme" title="The text size of the terminals: an agent's session, split-screen groups and Open Terminal. Kept in this browser."><span>Terminal text</span><span class="seg" role="group" aria-label="Terminal text size"><button type="button" data-term-font="-1" aria-label="Smaller">A−</button><button type="button" data-term-font="0" id="term-font-now" title="Back to 13">13</button><button type="button" data-term-font="1" aria-label="Larger">A+</button></span></div>
79
80
  <div class="menu-sep"></div>
80
81
  <button role="menuitem" id="support-btn" title="Tell us about a problem or an idea, with a screenshot">Report a problem or idea…</button>
81
82
  <button role="menuitem" id="keys-btn" title="Quick actions from the keyboard">Keyboard shortcuts… <kbd>?</kbd></button>
@@ -954,6 +955,15 @@
954
955
  <ul id="settings-rules-list" class="rules-list"></ul>
955
956
  <p class="hint" id="settings-rules-readonly"></p>
956
957
  </fieldset>
958
+ <fieldset id="settings-review">
959
+ <legend>Review and judging</legend>
960
+ <label class="check"><input type="checkbox" name="roundsOn" /> Review rounds: other models review an agent's changes before a pull request</label>
961
+ <label class="check">Up to <input type="number" name="roundsMax" min="1" max="5" class="num" /> rounds, with <input type="number" name="roundsCritics" min="1" max="3" class="num" /> critics each round</label>
962
+ <label class="check"><input type="checkbox" name="roundsPr" /> Open the pull request when the critics approve</label>
963
+ <p class="hint">When an agent says it is done, the critics (other models of the agent's own engine) read its changes, it fixes what they find, and they look again. Each round is one call per critic on your own plan. <span id="settings-review-state"></span></p>
964
+ <label class="check"><input type="checkbox" name="judgeOn" /> AI judge: checks stuck agents, idle screens, finished work, overlaps, backlog order and alerts</label>
965
+ <p class="hint">On your own Claude or Codex plan; without it, fixed rules only. <span id="settings-judge-state"></span></p>
966
+ </fieldset>
957
967
  <fieldset class="local-only" id="settings-service">
958
968
  <legend>Start at login</legend>
959
969
  <label class="check"><input type="checkbox" name="startAtLogin" /> Start AI Agent Manager when I log in</label>
package/public/machine.js CHANGED
@@ -3,6 +3,7 @@
3
3
  // running when the window is hidden; × ends one.
4
4
  import { openStream } from '/transport.js';
5
5
  import { openCopy, pasteInto } from '/termclip.js';
6
+ import { termFont } from '/termfont.js';
6
7
 
7
8
  const MACHINE = '__machine__';
8
9
 
@@ -17,7 +18,7 @@ export function initMachine({ api, esc, toast, $, Terminal, FitAddon }) {
17
18
 
18
19
  function ensure() {
19
20
  if (xterm) return;
20
- xterm = new Terminal({ cursorBlink: true, fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace', fontSize: 13, scrollback: 10000, theme: { background: '#0f1117' } });
21
+ xterm = new Terminal({ cursorBlink: true, fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace', fontSize: termFont(), scrollback: 10000, theme: { background: '#0f1117' } });
21
22
  fit = new FitAddon();
22
23
  xterm.loadAddon(fit);
23
24
  xterm.open($('#machine-term'));
@@ -25,6 +26,10 @@ export function initMachine({ api, esc, toast, $, Terminal, FitAddon }) {
25
26
  xterm.onData((d) => !replaying && conn?.send({ t: 'i', d }));
26
27
  xterm.onResize(({ cols, rows }) => conn?.send({ t: 'r', cols, rows }));
27
28
  new ResizeObserver(() => dialog.open && fit.fit()).observe($('#machine-term'));
29
+ window.addEventListener('agentmgr-termfont', () => {
30
+ xterm.options.fontSize = termFont();
31
+ if (dialog.open) fit.fit();
32
+ });
28
33
  }
29
34
 
30
35
  function renderTabs() {
package/public/menu.js CHANGED
@@ -1,6 +1,8 @@
1
1
  // The menu at the right of the top bar: who this runs as (Claude account, git identity, computer)
2
2
  // and the settings and preferences: Settings…, Clean up, Alerts, Remote access, About.
3
3
 
4
+ import { TERM_FONT, termFont, setTermFont } from '/termfont.js';
5
+
4
6
  export function initMenu({ api, esc, toast, $ }) {
5
7
  const btn = $('#menu-btn');
6
8
  const menu = $('#menu');
@@ -23,7 +25,7 @@ export function initMenu({ api, esc, toast, $ }) {
23
25
  // Any item closes the menu; its own handler does the rest.
24
26
  menu.addEventListener('click', (e) => {
25
27
  // The theme buttons keep it open, to compare.
26
- if (e.target.closest('button') && !e.target.closest('[data-theme-set]')) open(false);
28
+ if (e.target.closest('button') && !e.target.closest('[data-theme-set], [data-term-font]')) open(false);
27
29
  });
28
30
  $('#menu-about').onclick = () => $('#about-btn').click();
29
31
 
@@ -57,6 +59,8 @@ export function initMenu({ api, esc, toast, $ }) {
57
59
  let jira = null; // the Jira settings as the dialog opened
58
60
  let containers = null; // Docker and the agent image as the dialog opened
59
61
  let features = null; // what you use, and who you are, as the dialog opened
62
+ let rounds = null; // review rounds as the dialog opened
63
+ let judge = null; // the AI judge as the dialog opened
60
64
  const FEATURE_KEYS = ['jira', 'slack', 'gemini'];
61
65
  function showContainers() {
62
66
  const c = containers;
@@ -100,6 +104,20 @@ export function initMenu({ api, esc, toast, $ }) {
100
104
  $('#settings-features').hidden = !features;
101
105
  for (const k of FEATURE_KEYS) form[`feat_${k}`].checked = features?.features?.[k] !== false;
102
106
  form.me.value = features?.me ?? '';
107
+ rounds = await api('GET', '/prereview').catch(() => null);
108
+ judge = await api('GET', '/judge').catch(() => null);
109
+ $('#settings-review').hidden = !rounds && !judge;
110
+ for (const k of ['roundsOn', 'roundsMax', 'roundsCritics', 'roundsPr']) form[k].closest('label').hidden = !rounds;
111
+ form.roundsOn.checked = Boolean(rounds?.enabled);
112
+ form.roundsMax.value = rounds?.rounds ?? '';
113
+ form.roundsMax.max = rounds?.maxRounds ?? 5;
114
+ form.roundsCritics.value = rounds?.critics ?? '';
115
+ form.roundsCritics.max = rounds?.maxCritics ?? 3;
116
+ form.roundsPr.checked = Boolean(rounds?.openPr);
117
+ $('#settings-review-state').textContent = rounds ? `Can review here: ${rounds.engines.map((e) => e.label).join(', ') || 'no engine (install Claude Code or Codex)'}.` : '';
118
+ form.judgeOn.closest('label').hidden = !judge;
119
+ form.judgeOn.checked = Boolean(judge?.enabled);
120
+ $('#settings-judge-state').textContent = judge?.enabled ? `${judge.calls} of ${judge.cap} calls today.` : '';
103
121
  const u = await api('GET', '/update').catch(() => null);
104
122
  form.updateCheck.checked = u?.check !== false;
105
123
  if (!remote()) {
@@ -184,6 +202,14 @@ export function initMenu({ api, esc, toast, $ }) {
184
202
  document.dispatchEvent(new CustomEvent('agentmgr:features', { detail: r.features }));
185
203
  }
186
204
  }
205
+ // Only what changed: each is kept in config.json.
206
+ if (rounds) {
207
+ const want = { enabled: form.roundsOn.checked, rounds: Number(form.roundsMax.value), critics: Number(form.roundsCritics.value), openPr: form.roundsPr.checked };
208
+ const changed = Object.fromEntries(Object.entries(want).filter(([k, v]) => v !== rounds[k]));
209
+ if (Object.keys(changed).length) rounds = await api('PUT', '/prereview', changed);
210
+ }
211
+ if (judge && form.judgeOn.checked !== Boolean(judge.enabled)) judge = await api('PUT', '/judge', { enabled: form.judgeOn.checked });
212
+ document.dispatchEvent(new CustomEvent('agentmgr:review-settings'));
187
213
  if (!remote() && jira && (form.jiraSite.value.trim() !== (jira.site ?? '') || form.jiraEmail.value.trim() !== (jira.email ?? '') || form.jiraToken.value.trim())) {
188
214
  const j = await api('PUT', '/jira', { site: form.jiraSite.value.trim(), email: form.jiraEmail.value.trim(), token: form.jiraToken.value.trim() || undefined });
189
215
  toast(j.problem ? `Jira saved, but it doesn't work yet: ${j.problem}` : j.assigned !== null && j.assigned !== undefined ? `Jira works: ${j.assigned} open issue${j.assigned === 1 ? '' : 's'} assigned to you` : 'Jira saved', j.problem ? 10_000 : 4000);
@@ -231,6 +257,20 @@ export function initMenu({ api, esc, toast, $ }) {
231
257
  });
232
258
  applyTheme(theme());
233
259
 
260
+ // ------------------------------------------------------------ Terminal text size
261
+ const showFont = (n) => {
262
+ $('#term-font-now').textContent = String(n);
263
+ menu.querySelector('[data-term-font="-1"]').disabled = n <= TERM_FONT.min;
264
+ menu.querySelector('[data-term-font="1"]').disabled = n >= TERM_FONT.max;
265
+ };
266
+ menu.addEventListener('click', (e) => {
267
+ const b = e.target.closest('[data-term-font]');
268
+ if (!b) return;
269
+ const step = Number(b.dataset.termFont);
270
+ showFont(setTermFont(step ? termFont() + step : TERM_FONT.base));
271
+ });
272
+ showFont(termFont());
273
+
234
274
  loadMe();
235
275
  return { loadMe };
236
276
  }
package/public/style.css CHANGED
@@ -417,7 +417,9 @@ body.term-max .term-agent, .term-wrap:fullscreen .term-agent { display: inline-b
417
417
  .term-drop { position: absolute; inset: 40px 8px 8px; display: flex; align-items: center; justify-content: center; border: 2px dashed #58a6ff; border-radius: 8px; background: rgba(15, 17, 23, .82); color: #c9d1d9; font-size: 15px; pointer-events: none; z-index: 5; }
418
418
  #term-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 0; color: #8b93a7; }
419
419
  .term-bar > .term-tabs { flex-shrink: 0; max-width: 70%; }
420
- .terminal { flex: 1; padding: 6px 8px; min-height: 0; }
420
+ .terminal { flex: 1; padding: 6px 8px; min-height: 0; position: relative; }
421
+ /* Shown at another view's size, the font much smaller for it (groups.js): say so, and how to end it. */
422
+ .terminal.shrunk::after, .gterm.shrunk::after { content: 'Small to match another window or group showing this session · click here to fit it'; position: absolute; top: 6px; right: 14px; z-index: 5; padding: 3px 9px; border-radius: 6px; font-size: 12px; background: var(--accent); color: var(--accent-text); pointer-events: none; opacity: 0.92; }
421
423
  /* Browser tabs replace the terminal in the panel. */
422
424
  .browser { display: none; flex: 1; flex-direction: column; min-height: 0; background: var(--bg); }
423
425
  .term-wrap.browsing .browser { display: flex; }
@@ -714,7 +716,9 @@ pre.diff .meta { color: var(--muted); font-weight: 600; }
714
716
  #import-dialog .import-main .tag { align-self: flex-start; }
715
717
  #import-dialog .import-foot label { display: flex; flex-direction: row; align-items: center; gap: 6px; }
716
718
  #import-dialog .import-foot input { width: auto; }
717
- .judge-line { margin: 14px 12px; line-height: 1.5; }
719
+ .inbox-switches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
720
+ .inbox-switch.off { opacity: 0.75; }
721
+ .inbox-switches > .link { margin-left: auto; }
718
722
 
719
723
  .agent-list li.agent.idle { opacity: .62; }
720
724
  .agent-list li.agent.idle:hover, .agent-list li.agent.idle.selected { opacity: 1; }
@@ -0,0 +1,25 @@
1
+ // The text size of the terminals (an agent's session, split-screen groups, Open Terminal): 13 px
2
+ // unless you chose another in the menu, kept per browser.
3
+
4
+ const KEY = 'agentmgr.termFont';
5
+ export const TERM_FONT = { min: 10, max: 22, base: 13 };
6
+
7
+ export function termFont() {
8
+ try {
9
+ const n = Number(localStorage.getItem(KEY));
10
+ return n >= TERM_FONT.min && n <= TERM_FONT.max ? n : TERM_FONT.base;
11
+ } catch {
12
+ return TERM_FONT.base;
13
+ }
14
+ }
15
+
16
+ /** Saves it and tells the open terminals (`agentmgr-termfont` on window). */
17
+ export function setTermFont(n) {
18
+ const size = Math.max(TERM_FONT.min, Math.min(TERM_FONT.max, Math.round(n)));
19
+ try {
20
+ if (size === TERM_FONT.base) localStorage.removeItem(KEY);
21
+ else localStorage.setItem(KEY, String(size));
22
+ } catch {}
23
+ window.dispatchEvent(new CustomEvent('agentmgr-termfont', { detail: size }));
24
+ return size;
25
+ }