mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-19 17:04:41 +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
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Add "quiet startup" setting to `/settings` ([#847](https://github.com/badlogic/pi-mono/pull/847) by [@unexge](https://github.com/unexge))
|
||||||
|
|
||||||
## [0.49.1] - 2026-01-18
|
## [0.49.1] - 2026-01-18
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ export interface SettingsConfig {
|
||||||
doubleEscapeAction: "fork" | "tree";
|
doubleEscapeAction: "fork" | "tree";
|
||||||
showHardwareCursor: boolean;
|
showHardwareCursor: boolean;
|
||||||
editorPaddingX: number;
|
editorPaddingX: number;
|
||||||
|
quietStartup: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SettingsCallbacks {
|
export interface SettingsCallbacks {
|
||||||
|
|
@ -56,6 +57,7 @@ export interface SettingsCallbacks {
|
||||||
onDoubleEscapeActionChange: (action: "fork" | "tree") => void;
|
onDoubleEscapeActionChange: (action: "fork" | "tree") => void;
|
||||||
onShowHardwareCursorChange: (enabled: boolean) => void;
|
onShowHardwareCursorChange: (enabled: boolean) => void;
|
||||||
onEditorPaddingXChange: (padding: number) => void;
|
onEditorPaddingXChange: (padding: number) => void;
|
||||||
|
onQuietStartupChange: (enabled: boolean) => void;
|
||||||
onCancel: () => void;
|
onCancel: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -170,6 +172,13 @@ export class SettingsSelectorComponent extends Container {
|
||||||
currentValue: config.collapseChangelog ? "true" : "false",
|
currentValue: config.collapseChangelog ? "true" : "false",
|
||||||
values: ["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",
|
id: "double-escape-action",
|
||||||
label: "Double-escape action",
|
label: "Double-escape action",
|
||||||
|
|
@ -327,6 +336,9 @@ export class SettingsSelectorComponent extends Container {
|
||||||
case "collapse-changelog":
|
case "collapse-changelog":
|
||||||
callbacks.onCollapseChangelogChange(newValue === "true");
|
callbacks.onCollapseChangelogChange(newValue === "true");
|
||||||
break;
|
break;
|
||||||
|
case "quiet-startup":
|
||||||
|
callbacks.onQuietStartupChange(newValue === "true");
|
||||||
|
break;
|
||||||
case "double-escape-action":
|
case "double-escape-action":
|
||||||
callbacks.onDoubleEscapeActionChange(newValue as "fork" | "tree");
|
callbacks.onDoubleEscapeActionChange(newValue as "fork" | "tree");
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -2555,6 +2555,7 @@ export class InteractiveMode {
|
||||||
doubleEscapeAction: this.settingsManager.getDoubleEscapeAction(),
|
doubleEscapeAction: this.settingsManager.getDoubleEscapeAction(),
|
||||||
showHardwareCursor: this.settingsManager.getShowHardwareCursor(),
|
showHardwareCursor: this.settingsManager.getShowHardwareCursor(),
|
||||||
editorPaddingX: this.settingsManager.getEditorPaddingX(),
|
editorPaddingX: this.settingsManager.getEditorPaddingX(),
|
||||||
|
quietStartup: this.settingsManager.getQuietStartup(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
onAutoCompactChange: (enabled) => {
|
onAutoCompactChange: (enabled) => {
|
||||||
|
|
@ -2619,6 +2620,9 @@ export class InteractiveMode {
|
||||||
onCollapseChangelogChange: (collapsed) => {
|
onCollapseChangelogChange: (collapsed) => {
|
||||||
this.settingsManager.setCollapseChangelog(collapsed);
|
this.settingsManager.setCollapseChangelog(collapsed);
|
||||||
},
|
},
|
||||||
|
onQuietStartupChange: (enabled) => {
|
||||||
|
this.settingsManager.setQuietStartup(enabled);
|
||||||
|
},
|
||||||
onDoubleEscapeActionChange: (action) => {
|
onDoubleEscapeActionChange: (action) => {
|
||||||
this.settingsManager.setDoubleEscapeAction(action);
|
this.settingsManager.setDoubleEscapeAction(action);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue