Tidy the Subagents dialog layout

AI Assisted
This commit is contained in:
jparkerweb committed 2026-10-26 17:05:36 -07:00
1 parent 10379e3870
commit d4d64987fe
2 files changed
+42 -17

No files matched your search

+24 -17
View File
@@ -2691,17 +2691,32 @@
Let Plan2Code hand independent work to helpers in this skill. Saved for this Let Plan2Code hand independent work to helpers in this skill. Saved for this
project and this skill. project and this skill.
</p> </p>
<fieldset class="modal-ranges looks-row"> <!-- On a wide dialog the switch and the cap share a row, and the four
<legend>Helpers</legend> strengths sit side by side, so the dialog stays short. -->
<label><input type="radio" name="subagents-on" value="on" /> <span>Use helpers</span></label> <div class="subagents-top">
<label><input type="radio" name="subagents-on" value="off" checked /> <span>Work alone</span></label> <fieldset class="modal-ranges looks-row">
</fieldset> <legend>Helpers</legend>
<label><input type="radio" name="subagents-on" value="on" /> <span>Use helpers</span></label>
<label><input type="radio" name="subagents-on" value="off" checked /> <span>Work alone</span></label>
</fieldset>
<fieldset class="modal-ranges">
<legend>At most</legend>
<label>
<input type="number" id="subagents-max" min="1" max="20" step="1" aria-label="At most this many helpers at once" />
<span>helpers at once</span>
</label>
<p class="help">Advisory: your agent's own limit still applies.</p>
</fieldset>
</div>
<!-- Each strength wears the Subagents tab's badge for the rank it leans
to: Thrifty light, Balanced standard, Best strongest, and the
session's own model with no rank. -->
<fieldset class="modal-ranges looks-row" id="subagents-strength-row"> <fieldset class="modal-ranges looks-row" id="subagents-strength-row">
<legend>Helper strength</legend> <legend>Helper strength</legend>
<label><input type="radio" name="subagents-strength" value="balanced" checked /> <span>Balanced</span></label> <label><input type="radio" name="subagents-strength" value="thrifty" /> <span class="sa-badge lvl-1"><span class="sa-bars" aria-hidden="true"><i class="on"></i><i></i><i></i></span>Thrifty</span></label>
<label><input type="radio" name="subagents-strength" value="thrifty" /> <span>Thrifty</span></label> <label><input type="radio" name="subagents-strength" value="balanced" checked /> <span class="sa-badge lvl-2"><span class="sa-bars" aria-hidden="true"><i class="on"></i><i class="on"></i><i></i></span>Balanced</span></label>
<label><input type="radio" name="subagents-strength" value="best" /> <span>Best</span></label> <label><input type="radio" name="subagents-strength" value="best" /> <span class="sa-badge lvl-3"><span class="sa-bars" aria-hidden="true"><i class="on"></i><i class="on"></i><i class="on"></i></span>Best</span></label>
<label><input type="radio" name="subagents-strength" value="session" /> <span>Match my session</span></label> <label><input type="radio" name="subagents-strength" value="session" /> <span class="sa-badge lvl-0">Match my session</span></label>
<p class="help" id="subagents-strength-help"></p> <p class="help" id="subagents-strength-help"></p>
</fieldset> </fieldset>
<fieldset class="modal-ranges"> <fieldset class="modal-ranges">
@@ -2712,14 +2727,6 @@
<span class="help">Passed to the agent as written, at its next check-in.</span> <span class="help">Passed to the agent as written, at its next check-in.</span>
</div> </div>
</fieldset> </fieldset>
<fieldset class="modal-ranges">
<legend>At most</legend>
<label>
<input type="number" id="subagents-max" min="1" max="20" step="1" aria-label="At most this many helpers at once" />
<span>helpers at once</span>
</label>
<p class="help">Advisory: your agent's own limit still applies.</p>
</fieldset>
<p class="help" id="subagents-checkin"></p> <p class="help" id="subagents-checkin"></p>
<p class="help" id="subagents-research" hidden></p> <p class="help" id="subagents-research" hidden></p>
<p class="help" id="subagents-status" role="status"></p> <p class="help" id="subagents-status" role="status"></p>
+18
View File
@@ -194,6 +194,24 @@
.sa-pill.is-done { background: var(--ok-soft); color: var(--ok); } .sa-pill.is-done { background: var(--ok-soft); color: var(--ok); }
.sa-pill.is-failed { background: var(--warn-soft); color: var(--warn); } .sa-pill.is-failed { background: var(--warn-soft); color: var(--warn); }
.sa-pill .spinner.tiny { width: 10px; height: 10px; } .sa-pill .spinner.tiny { width: 10px; height: 10px; }
/* The Subagents dialog: wide like the Notebook, so it lays its choices out
in rows instead of a tall stack. Back to a stack on a narrow window. */
.modal.looks.subagents { width: min(1000px, 90vw); max-width: none; }
.subagents-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.modal.looks .subagents-top .modal-ranges + .modal-ranges { margin-top: 0; }
.subagents-top .looks-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subagents-top + .modal-ranges { margin-top: 18px; }
.subagents #subagents-strength-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Each strength radio carries the tab's badge; the session's own model has no
rank, so it keeps the badge's plain ink. A locked row dims with its radios. */
.subagents #subagents-strength-row .sa-badge { font-size: 13px; padding: 5px 10px; }
.subagents #subagents-strength-row label:has(input:checked) { border-color: var(--accent-line); }
.subagents #subagents-strength-row label:has(input:disabled) .sa-badge { opacity: 0.5; }
@media (max-width: 720px) {
.subagents-top,
.subagents-top .looks-row,
.subagents #subagents-strength-row { grid-template-columns: 1fr; }
}
/* The dialog's number box, themed like the page's other inputs. */ /* The dialog's number box, themed like the page's other inputs. */
.subagents input[type="number"] { .subagents input[type="number"] {
width: 5em; font: inherit; color: var(--ink); background: var(--panel-2); width: 5em; font: inherit; color: var(--ink); background: var(--panel-2);