mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix: prevent long user queries from appearing in footer debug message
This commit is contained in:
@@ -551,6 +551,11 @@ export const AppContainer = (props: AppContainerProps) => {
|
|||||||
[visionSwitchResolver],
|
[visionSwitchResolver],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// onDebugMessage should log to console, not update footer debugMessage
|
||||||
|
const onDebugMessage = useCallback((message: string) => {
|
||||||
|
console.debug(message);
|
||||||
|
}, []);
|
||||||
|
|
||||||
const performMemoryRefresh = useCallback(async () => {
|
const performMemoryRefresh = useCallback(async () => {
|
||||||
historyManager.addItem(
|
historyManager.addItem(
|
||||||
{
|
{
|
||||||
@@ -628,7 +633,7 @@ export const AppContainer = (props: AppContainerProps) => {
|
|||||||
historyManager.addItem,
|
historyManager.addItem,
|
||||||
config,
|
config,
|
||||||
settings,
|
settings,
|
||||||
setDebugMessage,
|
onDebugMessage,
|
||||||
handleSlashCommand,
|
handleSlashCommand,
|
||||||
shellModeActive,
|
shellModeActive,
|
||||||
() => settings.merged.general?.preferredEditor as EditorType,
|
() => settings.merged.general?.preferredEditor as EditorType,
|
||||||
|
|||||||
Reference in New Issue
Block a user