Skip to content

armgit / cogit

Public Imported from GitHub
0

Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.

feat(settings): make recording one Economical or Detailed choice, Economical by default

Eren542abd89e4d4
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66220cd..3c98e48 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- A session-end pass: when a session ends, the side model (Haiku by default) reads the whole session once, splits it into threads and says what each grew from. The parents follow from that, so a detour becomes a side branch and a return to earlier work hangs from where that work stopped; before, the side model chained nearly every message to the previous one. The same call writes each thread's summary and one line on where the session left off (`leftOff`). It costs about a cent per session and keeps every parent and note the main agent wrote. Run it on any recorded session with `cogit backfill <session-id> --tail --close`.
- In side-only mode the session-end pass also hangs a session's first message from the earlier session it continues, which the side model never did before.
### Changed
+- Settings → Recording is one choice: **Economical** (the default for new installs: a small model records in the background and closes each session) or **Detailed** (the main agent also records its own decisions every 15 turns). The turn intervals, the side model and the session-end switch left the panel and stay on `cogit config set`; so does the main-agent-only mode. An existing config keeps the mode it has.
+- "Message summaries" is now "One-line summary under each message", and its help says that branch summaries and where a session left off are written either way.
- A new session's first message is offered the eight most recent other sessions, each with where it left off, its branches and the message each branch ends at, instead of the last three messages of three sessions. Work from further back or the middle of a session can now be continued.
- The side model's prompt now includes what the agent did in each turn: the questions it asked with their options, the files it edited and its steps. It finds the agent's decisions and the topic of a turn in these.
### Fixed
diff --git a/docs/guide/recording-and-cost.md b/docs/guide/recording-and-cost.md
index 906b748..3847fc1 100644
--- a/docs/guide/recording-and-cost.md
+++ b/docs/guide/recording-and-cost.md
@@ -15,14 +15,16 @@ Two writers share the record, and `recorder` decides which ones run:
Each writer owns its own fields: the side model fills what is empty and never overwrites what
the agent wrote.
-| `recorder` | What happens | Cost in our sessions |
-|---|---|---|
-| `mixed` (default) | The side model records every 5 turns (`sideEveryTurns`); the agent checks in every 15 (`updateEveryTurns`) to add its decisions | about 1–2% of a session's tokens |
-| `agent` | The agent records everything itself every `updateEveryTurns` turns | about 3–7%, more in short sessions |
-| `side` | Only the side model records; the agent is never asked | the side model's runs only |
+| `recorder` | Panel | What happens | Cost in our sessions |
+|---|---|---|---|
+| `side` (default) | Economical | Only the side model records, every 5 turns (`sideEveryTurns`); the agent is never asked | about a cent per session |
+| `mixed` | Detailed | As above, and the agent checks in every 15 turns (`updateEveryTurns`) to add its decisions | about 1–2% of a session's tokens |
+| `agent` | (config only) | The agent records everything itself every `updateEveryTurns` turns | about 3–7%, more in short sessions |
-When a session ends, the side model records whatever is still unrecorded
-(`sessionEndCatchUp`). Nothing in the chat waits for it.
+When a session ends, the side model records whatever is still unrecorded and then closes the
+session (`sessionEndCatchUp`): it reads the whole session once, splits it into threads, hangs
+each message from the thread it belongs to, and writes the branch summaries and one line on
+where the session left off. Nothing in the chat waits for it.
## What it costs
@@ -30,8 +32,10 @@ The side model runs with your own Claude Code login, like any `claude -p` run, s
your plan or API account. Haiku is about thirty times cheaper than the main model per token.
In an A/B over three real sessions (109 messages) Haiku matched the main agent on message
parents in 94% of cases and was good on titles and your decisions; it was weaker on the
-agent's own technical decisions and branch summaries, which is why `mixed` still asks the
-agent every 15 turns.
+agent's own technical decisions and at splitting a session into threads. Telling it what the
+agent did in each turn (its steps, questions and edited files) fixed most of the first, and
+the session-end pass fixed the second, so `side` is the default since 0.21. Choose `mixed`
+(Detailed) when you want the agent's own account of its decisions as well.
To record less often, raise `sideEveryTurns` and `updateEveryTurns`. To spend nothing on
recording during the session, use `recorder: side` and turn `sessionEndCatchUp` off; the
diff --git a/docs/guide/settings.md b/docs/guide/settings.md
index b0be7f4..657b31b 100644
--- a/docs/guide/settings.md
+++ b/docs/guide/settings.md
@@ -8,21 +8,21 @@ or with `cogit config set <key> <value>`; `cogit config get` lists them all.
## In the panel
-### Recording mode
+### Recording
-`recorder` · default `mixed`
+`recorder` · default `side`
-**Who writes the record: a side model, the main agent, or both.**
+**How much of the chat goes into the record.**
-Who writes the record. Mixed (recommended): a small side model records every few turns and the main agent still checks in every 15 turns to record its own decisions; measured on real sessions this costs about 1–2% of a session. Main agent: the agent records its own work every few turns, which costs about 5% of a session but catches its technical decisions best. Side model only: a small model records everything in the background and the agent is never interrupted.
+Economical (recommended): a small model records in the background every few turns and closes each session with one pass that finds its threads, writes the branch summaries and one line on where the session left off. The agent is never interrupted; it costs about a cent per session. Detailed: on top of that, the main agent records its own decisions every 15 turns. It catches the agent's technical choices best and costs about 1–2% of a session. A third mode, where only the main agent records, is set with `cogit config set recorder agent`.
-### Message summaries
+### One-line summary under each message
`messageSummaries` · default `false`
-**Write a one-line summary for each recorded message.**
+**A sentence under each message title on the map.**
-A one-sentence summary under each message title, so a skim reads better. Off keeps the record shorter and cheaper.
+A one-sentence summary under each message title, so a skim reads better. Off keeps the record shorter and cheaper. Branch summaries and the line on where a session left off are written either way.
### Lineage at session start
@@ -56,6 +56,26 @@ Before the agent edits a file, it hears which options earlier thoughts tried and
The language the record is written in. With auto, it follows the language of the conversation.
+### Share conversations
+
+`shareConversations` · default `false`
+
+**Commit the raw chat text too, not only the session record (off: chat stays local).**
+
+Also commit the raw chat text, not only the record. Leave it off to keep conversations on your machine while the record still travels with the branch.
+
+### Commit the record
+
+`recordCommit` · default `ask`
+
+**ask, auto or off: what to do with the last messages after the last code commit.**
+
+What happens to record changes made after your last code commit: ask you next time, commit them automatically, or leave them for you to commit.
+
+## Only through `cogit config`
+
+These are set up once, per project, or rarely touched, so the panel leaves them out.
+
### Record every N turns
`updateEveryTurns` · default `15`
@@ -76,9 +96,9 @@ How often the small side model records in the background. A lower number keeps t
`sessionEndCatchUp` · default `true`
-**When a session ends, the side model records the messages still unrecorded.**
+**When a session ends, the side model records what is left and closes the session.**
-When a session ends, the side model records whatever nobody got to. It runs outside the chat, so it does not spend the session's tokens.
+When a session ends, the side model records whatever nobody got to, then reads the whole session once to find its threads, write the branch summaries and one line on where it left off. It runs outside the chat, so it does not spend the session's tokens.
### Side model
@@ -88,26 +108,6 @@ When a session ends, the side model records whatever nobody got to. It runs outs
The small model behind every side record: every few turns in mixed mode, all the time in side mode, and at session end. Haiku is cheap and good enough for titles, parents and short decisions.
-### Share conversations
-
-`shareConversations` · default `false`
-
-**Commit the raw chat text too, not only the session record (off: chat stays local).**
-
-Also commit the raw chat text, not only the record. Leave it off to keep conversations on your machine while the record still travels with the branch.
-
-### Commit the record
-
-`recordCommit` · default `ask`
-
-**ask, auto or off: what to do with the last messages after the last code commit.**
-
-What happens to record changes made after your last code commit: ask you next time, commit them automatically, or leave them for you to commit.
-
-## Only through `cogit config`
-
-These are set up once, per project, or rarely touched, so the panel leaves them out.
-
### Git policy
`gitPolicy` · default `commit`
diff --git a/docs/schema/config.json b/docs/schema/config.json
index fe41ca5..8aa3dc8 100644
--- a/docs/schema/config.json
+++ b/docs/schema/config.json
@@ -23,7 +23,7 @@
"type": "boolean"
},
"recorder": {
- "default": "mixed",
+ "default": "side",
"type": "string",
"enum": [
"agent",
diff --git a/packages/cli/src/schema/config.ts b/packages/cli/src/schema/config.ts
index ef80f3a..c62398d 100644
--- a/packages/cli/src/schema/config.ts
+++ b/packages/cli/src/schema/config.ts
@@ -16,10 +16,11 @@ export const Config = z.object({
sessionEndCatchUp: z.boolean().default(true),
/**
* Who writes the record (Story 12.1): the main agent (`agent`), both (`mixed`,
- * the default: a side model often, the agent rarely), or only the side model
- * (`side`, the agent is never interrupted).
+ * "Detailed" in the panel: a side model often, the agent rarely), or only the
+ * side model (`side`, "Economical", the default since 0.21: the agent is never
+ * interrupted and the session-end pass writes the branches).
*/
- recorder: z.enum(["agent", "mixed", "side"]).default("mixed"),
+ recorder: z.enum(["agent", "mixed", "side"]).default("side"),
/** Model the side runs use: the headless catch-up and the periodic records. */
sideModel: z.string().trim().min(1).max(64).default("haiku"),
/** How often the side model records, in turns (Story 12.1). */
diff --git a/packages/cli/src/view/model.ts b/packages/cli/src/view/model.ts
index bcfcc54..d53f83d 100644
--- a/packages/cli/src/view/model.ts
+++ b/packages/cli/src/view/model.ts
@@ -36,10 +36,6 @@ export const PANEL_EDITABLE_KEYS = [
"recordHeadless",
"tryBeforeNotes",
"language",
- "updateEveryTurns",
- "sideEveryTurns",
- "sessionEndCatchUp",
- "sideModel",
"shareConversations",
"recordCommit",
] as const;
diff --git a/packages/cli/src/view/settings.ts b/packages/cli/src/view/settings.ts
index 856f752..8fbb58a 100644
--- a/packages/cli/src/view/settings.ts
+++ b/packages/cli/src/view/settings.ts
@@ -50,29 +50,30 @@ export interface FieldSpec {
const EDITABLE: FieldSpec[] = [
{
key: "recorder",
- label: "Recording mode",
- help: "Who writes the record: a side model, the main agent, or both.",
+ label: "Recording",
+ help: "How much of the chat goes into the record.",
details:
- "Who writes the record. Mixed (recommended): a small side model records every few " +
- "turns and the main agent still checks in every 15 turns to record its own decisions; " +
- "measured on real sessions this costs about 1–2% of a session. Main agent: the agent " +
- "records its own work every few turns, which costs about 5% of a session but catches its " +
- "technical decisions best. Side model only: a small model records everything in the " +
- "background and the agent is never interrupted.",
+ "Economical (recommended): a small model records in the background every few turns and " +
+ "closes each session with one pass that finds its threads, writes the branch summaries " +
+ "and one line on where the session left off. The agent is never interrupted; it costs " +
+ "about a cent per session. Detailed: on top of that, the main agent records its own " +
+ "decisions every 15 turns. It catches the agent's technical choices best and costs about " +
+ "1–2% of a session. A third mode, where only the main agent records, is set with " +
+ "`cogit config set recorder agent`.",
kind: "select",
options: [
- { value: "mixed", label: "Mixed (recommended)" },
- { value: "agent", label: "Main agent" },
- { value: "side", label: "Side model only" },
+ { value: "side", label: "Economical (recommended)" },
+ { value: "mixed", label: "Detailed" },
],
},
{
key: "messageSummaries",
- label: "Message summaries",
- help: "Write a one-line summary for each recorded message.",
+ label: "One-line summary under each message",
+ help: "A sentence under each message title on the map.",
details:
"A one-sentence summary under each message title, so a skim reads better. Off keeps " +
- "the record shorter and cheaper.",
+ "the record shorter and cheaper. Branch summaries and the line on where a session left " +
+ "off are written either way.",
kind: "boolean",
},
{
@@ -114,43 +115,6 @@ const EDITABLE: FieldSpec[] = [
"conversation.",
kind: "text",
},
- {
- key: "updateEveryTurns",
- label: "Record every N turns",
- help: "Ask the agent to record after this many turns.",
- details:
- "How often the main agent is asked to update the record inside the chat. In mixed mode " +
- "the side model records in between, so this can be rare (15 turns by default).",
- kind: "number",
- },
- {
- key: "sideEveryTurns",
- label: "Side model every N turns",
- help: "How often the background recorder writes in mixed or side mode.",
- details:
- "How often the small side model records in the background. A lower number keeps the " +
- "map fresher and costs a little more; a higher number is quieter.",
- kind: "number",
- },
- {
- key: "sessionEndCatchUp",
- label: "Side model at session end",
- help: "When a session ends, the side model records the messages still unrecorded.",
- details:
- "When a session ends, the side model records whatever nobody got to. It runs outside " +
- "the chat, so it does not spend the session's tokens.",
- kind: "boolean",
- },
- {
- key: "sideModel",
- label: "Side model",
- help: "The small model that records outside the chat.",
- details:
- "The small model behind every side record: every few turns in mixed mode, all the " +
- "time in side mode, and at session end. Haiku is cheap and good enough for titles, " +
- "parents and short decisions.",
- kind: "text",
- },
{
key: "shareConversations",
label: "Share conversations",
@@ -181,6 +145,40 @@ export interface CliSetting {
/** The settings the panel leaves out; `cogit config --help` and the guide explain them. */
export const CLI_ONLY: CliSetting[] = [
+ {
+ key: "updateEveryTurns",
+ label: "Record every N turns",
+ help: "Ask the agent to record after this many turns.",
+ details:
+ "How often the main agent is asked to update the record inside the chat. In mixed mode " +
+ "the side model records in between, so this can be rare (15 turns by default).",
+ },
+ {
+ key: "sideEveryTurns",
+ label: "Side model every N turns",
+ help: "How often the background recorder writes in mixed or side mode.",
+ details:
+ "How often the small side model records in the background. A lower number keeps the " +
+ "map fresher and costs a little more; a higher number is quieter.",
+ },
+ {
+ key: "sessionEndCatchUp",
+ label: "Side model at session end",
+ help: "When a session ends, the side model records what is left and closes the session.",
+ details:
+ "When a session ends, the side model records whatever nobody got to, then reads the " +
+ "whole session once to find its threads, write the branch summaries and one line on " +
+ "where it left off. It runs outside the chat, so it does not spend the session's tokens.",
+ },
+ {
+ key: "sideModel",
+ label: "Side model",
+ help: "The small model that records outside the chat.",
+ details:
+ "The small model behind every side record: every few turns in mixed mode, all the " +
+ "time in side mode, and at session end. Haiku is cheap and good enough for titles, " +
+ "parents and short decisions.",
+ },
{
key: "gitPolicy",
label: "Git policy",
@@ -262,7 +260,7 @@ export function configHelpLines(): string[] {
* the defaults from the config schema, overridden by what the build embedded.
*/
export const DEFAULT_SETTINGS: PanelSettings = {
- recorder: "mixed",
+ recorder: "side",
language: "auto",
updateEveryTurns: 15,
sideEveryTurns: 5,
@@ -292,10 +290,6 @@ export function editableSettings(settings: PanelSettings): PanelEditableSettings
recordHeadless: settings.recordHeadless,
tryBeforeNotes: settings.tryBeforeNotes,
language: settings.language,
- updateEveryTurns: settings.updateEveryTurns,
- sideEveryTurns: settings.sideEveryTurns,
- sessionEndCatchUp: settings.sessionEndCatchUp,
- sideModel: settings.sideModel,
shareConversations: settings.shareConversations,
recordCommit: settings.recordCommit,
};
diff --git a/packages/cli/test/build.test.ts b/packages/cli/test/build.test.ts
index 3e78746..70ab8ed 100644
--- a/packages/cli/test/build.test.ts
+++ b/packages/cli/test/build.test.ts
@@ -587,7 +587,7 @@ describe("cogit build", () => {
expect(model.settings).toMatchObject({
messageSummaries: true,
startupContext: true,
- recorder: "mixed",
+ recorder: "side",
updateEveryTurns: 15,
shareConversations: false,
recordCommit: "ask",
diff --git a/packages/cli/test/config-epoch.test.ts b/packages/cli/test/config-epoch.test.ts
index 23ce583..a655b23 100644
--- a/packages/cli/test/config-epoch.test.ts
+++ b/packages/cli/test/config-epoch.test.ts
@@ -21,7 +21,7 @@ describe("config", () => {
const io = fakeIo(env);
await configGet(undefined, io);
expect(io.lines).toContain("updateEveryTurns = 15");
- expect(io.lines).toContain('recorder = "mixed"');
+ expect(io.lines).toContain('recorder = "side"');
expect(io.lines).toContain('sideModel = "haiku"');
expect(io.lines).toContain("sideEveryTurns = 5");
// The old name is an accepted alias, not a listed key (Story 12.1).
@@ -67,7 +67,7 @@ describe("config", () => {
const config = await loadConfig(env);
expect(config.sideModel).toBe("sonnet");
expect(config.catchUpModel).toBeUndefined();
- expect(config.recorder).toBe("mixed");
+ expect(config.recorder).toBe("side");
// The next write stores only the new name.
await configSet("updateEveryTurns", "6", fakeIo(env));
const stored = JSON.parse(await readFile(file, "utf8")) as Record<string, unknown>;
diff --git a/packages/cli/test/hooks.test.ts b/packages/cli/test/hooks.test.ts
index fea859f..b405139 100644
--- a/packages/cli/test/hooks.test.ts
+++ b/packages/cli/test/hooks.test.ts
@@ -165,6 +165,8 @@ describe("runHook", () => {
const initialized = async (everyTurns: number) => {
await init(root, { name: "p", retention: "keep", language: "auto" }, fakeIo(env));
await configSet("updateEveryTurns", String(everyTurns), fakeIo(env));
+ // These tests drive the main agent's check-ins, which only Detailed mode asks for.
+ await configSet("recorder", "mixed", fakeIo(env));
};
it("offers setup before init on startup and resume, but not on clear", async () => {
diff --git a/packages/cli/test/panel.test.ts b/packages/cli/test/panel.test.ts
index 5f880ba..5a7e770 100644
--- a/packages/cli/test/panel.test.ts
+++ b/packages/cli/test/panel.test.ts
@@ -81,7 +81,7 @@ describe("buildPanel", () => {
schema: 1,
generatedAt: T0,
settings: {
- recorder: "mixed",
+ recorder: "side",
language: "auto",
updateEveryTurns: 7,
sideEveryTurns: 5,
diff --git a/packages/cli/test/program-commands.test.ts b/packages/cli/test/program-commands.test.ts
index 7768bef..ed6e356 100644
--- a/packages/cli/test/program-commands.test.ts
+++ b/packages/cli/test/program-commands.test.ts
@@ -184,6 +184,7 @@ describe("commands through the CLI", () => {
it("runs a hook from stdin and prints its output", async () => {
await cli("init", root, "--yes", "--retention", "keep");
await cli("config", "set", "updateEveryTurns", "1");
+ await cli("config", "set", "recorder", "mixed");
stdin = JSON.stringify({ session_id: "s1", cwd: root });
await cli("hook", "stop");
expect(JSON.parse(io.lines.at(-1) ?? "")).toHaveProperty("hookSpecificOutput");
diff --git a/packages/cli/test/schema.test.ts b/packages/cli/test/schema.test.ts
index 5038822..9c5c46a 100644
--- a/packages/cli/test/schema.test.ts
+++ b/packages/cli/test/schema.test.ts
@@ -109,7 +109,7 @@ describe("Project and Config schemas", () => {
expect(Config.parse({ schema: 1 })).toMatchObject({
language: "auto",
updateEveryTurns: 15,
- recorder: "mixed",
+ recorder: "side",
sideModel: "haiku",
sideEveryTurns: 5,
sessionEndCatchUp: true,
diff --git a/packages/cli/test/server.test.ts b/packages/cli/test/server.test.ts
index b9cccdd..bb99415 100644
--- a/packages/cli/test/server.test.ts
+++ b/packages/cli/test/server.test.ts
@@ -419,7 +419,7 @@ describe("settings write", () => {
try {
expect(await events.waitFor("retry: 1000")).toBe(true);
const token = await panelToken(server);
- const reply = await configWrite(server, token, { key: "sessionEndCatchUp", value: false });
+ const reply = await configWrite(server, token, { key: "messageSummaries", value: true });
expect(reply.status).toBe(200);
expect(await events.waitFor("event: change")).toBe(true);
} finally {
@@ -547,16 +547,12 @@ describe("settings read", () => {
expect(JSON.parse(reply.body)).toEqual({
ok: true,
settings: {
- recorder: "mixed",
+ recorder: "side",
messageSummaries: false,
startupContext: true,
recordHeadless: false,
tryBeforeNotes: true,
language: "auto",
- updateEveryTurns: 15,
- sideEveryTurns: 5,
- sessionEndCatchUp: true,
- sideModel: "haiku",
shareConversations: false,
recordCommit: "ask",
},
@@ -570,16 +566,20 @@ describe("settings read", () => {
[CONFIG_TOKEN_HEADER]: token,
});
expect(reply.status).toBe(200);
- expect(JSON.parse(reply.body).settings.updateEveryTurns).toBe(15);
+ expect(JSON.parse(reply.body).settings.recorder).toBe("side");
});
it("shows a value changed after the page was built", async () => {
const server = await start();
const token = await panelToken(server);
- const write = await configWrite(server, token, { key: "updateEveryTurns", value: 8 });
+ const write = await configWrite(server, token, { key: "recorder", value: "mixed" });
expect(write.status).toBe(200);
const reply = await configRead(server, token);
- expect(JSON.parse(reply.body).settings.updateEveryTurns).toBe(8);
+ expect(JSON.parse(reply.body).settings.recorder).toBe("mixed");
+ // The advanced recording keys stay on `cogit config set` (0.21).
+ expect((await configWrite(server, token, { key: "updateEveryTurns", value: 8 })).status).toBe(
+ 400,
+ );
});
it("rejects a wrong token, a foreign origin and a foreign Host", async () => {
diff --git a/packages/cli/test/settings.test.ts b/packages/cli/test/settings.test.ts
index e114e86..728672e 100644
--- a/packages/cli/test/settings.test.ts
+++ b/packages/cli/test/settings.test.ts
@@ -65,16 +65,12 @@ describe("settings model", () => {
it("returns only the editable keys with their current values", () => {
const settings = { ...DEFAULT_SETTINGS, language: "tr", updateEveryTurns: 8 };
expect(editableSettings(settings)).toEqual({
- recorder: "mixed",
+ recorder: "side",
messageSummaries: false,
startupContext: true,
recordHeadless: false,
tryBeforeNotes: true,
language: "tr",
- updateEveryTurns: 8,
- sideEveryTurns: 5,
- sessionEndCatchUp: true,
- sideModel: "haiku",
shareConversations: false,
recordCommit: "ask",
});
@@ -89,8 +85,11 @@ describe("settings model", () => {
expect(text).toContain(field.details);
}
// The recording-mode explanation states the measured trade-off plainly.
+ expect(text).toContain("about a cent per session");
expect(text).toContain("1–2%");
- expect(text).toContain("5%");
+ // The advanced recording keys left the panel but keep their help (0.21).
+ expect(text).toContain("sideEveryTurns");
+ expect(text).toContain("sideModel");
});
it("formats a read-only value for the modal", () => {
diff --git a/packages/cli/test/worktree.test.ts b/packages/cli/test/worktree.test.ts
index 6a92500..be002db 100644
--- a/packages/cli/test/worktree.test.ts
+++ b/packages/cli/test/worktree.test.ts
@@ -146,6 +146,7 @@ describe("commands in a worktree", () => {
it("counts hook turns for a worktree session in the main checkout", async () => {
await configSet("updateEveryTurns", "1", fakeIo(env));
+ await configSet("recorder", "mixed", fakeIo(env));
const input = JSON.stringify({ session_id: "s1", cwd: wt });
const out = await runHook("stop", input, { ...env, CLAUDE_PROJECT_DIR: wt }, T0, () => {});
expect(out).toBeDefined();
diff --git a/packages/template/src/SettingsModal.tsx b/packages/template/src/SettingsModal.tsx
index 8f53eb8..7cf6a4d 100644
--- a/packages/template/src/SettingsModal.tsx
+++ b/packages/template/src/SettingsModal.tsx
@@ -127,6 +127,10 @@ function EditableSetting({ id, field, value, draft, error, onChange }: EditableP
{option.label}
</option>
))}
+ {/* A value set with `cogit config set` that the panel does not offer still shows. */}
+ {(field.options ?? []).some((option) => option.value === String(shown)) ? null : (
+ <option value={String(shown)}>{String(shown)}</option>
+ )}
</select>
) : (
<input