mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 23:01:32 +00:00
feat(coding-agent): Add quietStartup setting to /settings (#847)
* feat(coding-agent): Add `quietStartup` setting to `/settings` * chore(coding-agent): Add CHANGELOG entry for "quiet startup" in `/settings`
This commit is contained in:
parent
2217cde74c
commit
25e7e2d08a
3 changed files with 20 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ export interface SettingsConfig {
|
|||
doubleEscapeAction: "fork" | "tree";
|
||||
showHardwareCursor: boolean;
|
||||
editorPaddingX: number;
|
||||
quietStartup: boolean;
|
||||
}
|
||||
|
||||
export interface SettingsCallbacks {
|
||||
|
|
@ -56,6 +57,7 @@ export interface SettingsCallbacks {
|
|||
onDoubleEscapeActionChange: (action: "fork" | "tree") => void;
|
||||
onShowHardwareCursorChange: (enabled: boolean) => void;
|
||||
onEditorPaddingXChange: (padding: number) => void;
|
||||
onQuietStartupChange: (enabled: boolean) => void;
|
||||
onCancel: () => void;
|
||||
}
|
||||
|
||||
|
|
@ -170,6 +172,13 @@ export class SettingsSelectorComponent extends Container {
|
|||
currentValue: config.collapseChangelog ? "true" : "false",
|
||||
values: ["true", "false"],
|
||||
},
|
||||
{
|
||||
id: "quiet-startup",
|
||||
label: "Quiet startup",
|
||||
description: "Disable verbose printing at startup",
|
||||
currentValue: config.quietStartup ? "true" : "false",
|
||||
values: ["true", "false"],
|
||||
},
|
||||
{
|
||||
id: "double-escape-action",
|
||||
label: "Double-escape action",
|
||||
|
|
@ -327,6 +336,9 @@ export class SettingsSelectorComponent extends Container {
|
|||
case "collapse-changelog":
|
||||
callbacks.onCollapseChangelogChange(newValue === "true");
|
||||
break;
|
||||
case "quiet-startup":
|
||||
callbacks.onQuietStartupChange(newValue === "true");
|
||||
break;
|
||||
case "double-escape-action":
|
||||
callbacks.onDoubleEscapeActionChange(newValue as "fork" | "tree");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue