-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat(cli): add built-in status line presets with interactive dialog #4120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
184a416
0cf25f2
59f6148
09b5e6e
8d0d11a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -131,6 +131,7 @@ import { useMessageQueue } from './hooks/useMessageQueue.js'; | |||||||||||
| import { useAutoAcceptIndicator } from './hooks/useAutoAcceptIndicator.js'; | ||||||||||||
| import { useSessionStats } from './contexts/SessionContext.js'; | ||||||||||||
| import { useGitBranchName } from './hooks/useGitBranchName.js'; | ||||||||||||
| import type { StatusLinePresetConfig } from './statusLinePresets.js'; | ||||||||||||
| import { | ||||||||||||
| useExtensionUpdates, | ||||||||||||
| useConfirmUpdateRequests, | ||||||||||||
|
|
@@ -675,6 +676,26 @@ export const AppContainer = (props: AppContainerProps) => { | |||||||||||
|
|
||||||||||||
| const { isSettingsDialogOpen, openSettingsDialog, closeSettingsDialog } = | ||||||||||||
| useSettingsCommand(); | ||||||||||||
| const [isStatusLineDialogOpen, setStatusLineDialogOpen] = useState(false); | ||||||||||||
| const openStatusLineDialog = useCallback( | ||||||||||||
| () => setStatusLineDialogOpen(true), | ||||||||||||
| [], | ||||||||||||
| ); | ||||||||||||
| const closeStatusLineDialog = useCallback( | ||||||||||||
| () => setStatusLineDialogOpen(false), | ||||||||||||
| [], | ||||||||||||
| ); | ||||||||||||
| const [statusLineSettingsVersion, setStatusLineSettingsVersion] = useState(0); | ||||||||||||
| const [statusLineConfigOverride, setStatusLineConfigOverride] = useState< | ||||||||||||
| StatusLinePresetConfig | undefined | ||||||||||||
| >(undefined); | ||||||||||||
| const notifyStatusLineSettingsChanged = useCallback( | ||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Suggestion]
Suggested change
— DeepSeek/deepseek-v4-pro via Qwen Code /review |
||||||||||||
| (newConfig: StatusLinePresetConfig) => { | ||||||||||||
| setStatusLineConfigOverride(newConfig); | ||||||||||||
| setStatusLineSettingsVersion((version) => version + 1); | ||||||||||||
| }, | ||||||||||||
| [], | ||||||||||||
| ); | ||||||||||||
| const { isMemoryDialogOpen, openMemoryDialog, closeMemoryDialog } = | ||||||||||||
| useMemoryDialog(); | ||||||||||||
|
|
||||||||||||
|
|
@@ -769,6 +790,7 @@ export const AppContainer = (props: AppContainerProps) => { | |||||||||||
| openEditorDialog, | ||||||||||||
| openMemoryDialog, | ||||||||||||
| openSettingsDialog, | ||||||||||||
| openStatusLineDialog, | ||||||||||||
| openModelDialog, | ||||||||||||
| openManageModelsDialog, | ||||||||||||
| openTrustDialog, | ||||||||||||
|
|
@@ -803,6 +825,7 @@ export const AppContainer = (props: AppContainerProps) => { | |||||||||||
| openEditorDialog, | ||||||||||||
| openMemoryDialog, | ||||||||||||
| openSettingsDialog, | ||||||||||||
| openStatusLineDialog, | ||||||||||||
| openModelDialog, | ||||||||||||
| openManageModelsDialog, | ||||||||||||
| openArenaDialog, | ||||||||||||
|
|
@@ -1846,6 +1869,7 @@ export const AppContainer = (props: AppContainerProps) => { | |||||||||||
| !!loopDetectionConfirmationRequest || | ||||||||||||
| isThemeDialogOpen || | ||||||||||||
| isSettingsDialogOpen || | ||||||||||||
| isStatusLineDialogOpen || | ||||||||||||
| isMemoryDialogOpen || | ||||||||||||
| isModelDialogOpen || | ||||||||||||
| isManageModelsDialogOpen || | ||||||||||||
|
|
@@ -2191,6 +2215,8 @@ export const AppContainer = (props: AppContainerProps) => { | |||||||||||
| exitEditorDialog, | ||||||||||||
| isSettingsDialogOpen, | ||||||||||||
| closeSettingsDialog, | ||||||||||||
| isStatusLineDialogOpen, | ||||||||||||
| closeStatusLineDialog, | ||||||||||||
| isMemoryDialogOpen, | ||||||||||||
| closeMemoryDialog, | ||||||||||||
| activeArenaDialog, | ||||||||||||
|
|
@@ -2622,6 +2648,9 @@ export const AppContainer = (props: AppContainerProps) => { | |||||||||||
| debugMessage, | ||||||||||||
| quittingMessages, | ||||||||||||
| isSettingsDialogOpen, | ||||||||||||
| isStatusLineDialogOpen, | ||||||||||||
| statusLineSettingsVersion, | ||||||||||||
| statusLineConfigOverride, | ||||||||||||
| isMemoryDialogOpen, | ||||||||||||
| isModelDialogOpen, | ||||||||||||
| isFastModelMode, | ||||||||||||
|
|
@@ -2740,6 +2769,9 @@ export const AppContainer = (props: AppContainerProps) => { | |||||||||||
| debugMessage, | ||||||||||||
| quittingMessages, | ||||||||||||
| isSettingsDialogOpen, | ||||||||||||
| isStatusLineDialogOpen, | ||||||||||||
| statusLineSettingsVersion, | ||||||||||||
| statusLineConfigOverride, | ||||||||||||
| isMemoryDialogOpen, | ||||||||||||
| isModelDialogOpen, | ||||||||||||
| isFastModelMode, | ||||||||||||
|
|
@@ -2863,6 +2895,8 @@ export const AppContainer = (props: AppContainerProps) => { | |||||||||||
| handleEditorSelect, | ||||||||||||
| exitEditorDialog, | ||||||||||||
| closeSettingsDialog, | ||||||||||||
| closeStatusLineDialog, | ||||||||||||
| notifyStatusLineSettingsChanged, | ||||||||||||
| closeMemoryDialog, | ||||||||||||
| closeModelDialog, | ||||||||||||
| openModelDialog, | ||||||||||||
|
|
@@ -2937,6 +2971,8 @@ export const AppContainer = (props: AppContainerProps) => { | |||||||||||
| handleEditorSelect, | ||||||||||||
| exitEditorDialog, | ||||||||||||
| closeSettingsDialog, | ||||||||||||
| closeStatusLineDialog, | ||||||||||||
| notifyStatusLineSettingsChanged, | ||||||||||||
| closeMemoryDialog, | ||||||||||||
| closeModelDialog, | ||||||||||||
| openModelDialog, | ||||||||||||
|
|
||||||||||||
Uh oh!
There was an error while loading. Please reload this page.