mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-29 03:44:06 +08:00
feat(vscode): add a setting to hide the auto-approval reason line
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"kilo-code": minor
|
||||
---
|
||||
|
||||
Move the "why was this tool call approved" line to after the tool output instead of between the header and body, add an icon to it, and add a Display setting to hide it.
|
||||
@@ -49,7 +49,7 @@ import { Tooltip } from "./tooltip"
|
||||
import { IconButton } from "./icon-button"
|
||||
import { TextShimmer } from "@opencode-ai/ui/text-shimmer"
|
||||
import { ToolApprovalProvider, resolveToolApproval } from "./tool-approval"
|
||||
export { ToolApprovalProvider, resolveToolApproval } from "./tool-approval"
|
||||
export { ToolApprovalProvider, resolveToolApproval, ToolApprovalVisibilityProvider } from "./tool-approval"
|
||||
import { GrowBox } from "./grow-box"
|
||||
import { COLLAPSIBLE_SPRING } from "./motion"
|
||||
import { busy, createThrottledValue, useToolFade, useContextToolPending } from "./tool-utils"
|
||||
|
||||
@@ -1158,6 +1158,11 @@
|
||||
"default": false,
|
||||
"description": "Show tokens-per-second (prompt-processing / text-generation) badges on assistant messages and the task header"
|
||||
},
|
||||
"kilo-code.new.showAutoApprovalReason": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.)"
|
||||
},
|
||||
"kilo-code.new.chat.shiftTabCyclesVariant": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
|
||||
@@ -186,6 +186,10 @@ import {
|
||||
import { canonicalizePath, projectIdFor, samePath } from "./agent-manager/project/paths"
|
||||
import { validChatSetting, watchChatConfig } from "./kilo-provider/chat-settings"
|
||||
import { buildThroughputSettingMessage, watchThroughputConfig } from "./kilo-provider/throughput-settings"
|
||||
import {
|
||||
buildAutoApprovalReasonSettingMessage,
|
||||
watchAutoApprovalReasonConfig,
|
||||
} from "./kilo-provider/auto-approval-reason-settings"
|
||||
|
||||
let maxCost = 0
|
||||
|
||||
@@ -419,6 +423,7 @@ export class KiloProvider implements vscode.WebviewViewProvider, TelemetryProper
|
||||
private indexingConfigDisposable: vscode.Disposable | null = null
|
||||
private chatConfigDisposable: vscode.Disposable | null = null
|
||||
private throughputConfigDisposable: vscode.Disposable | null = null
|
||||
private autoApprovalReasonConfigDisposable: vscode.Disposable | null = null
|
||||
private telemetryStateDisposable: vscode.Disposable | null = null
|
||||
private viewStateDisposable: vscode.Disposable | null = null
|
||||
private visibilityDisposable: vscode.Disposable | null = null
|
||||
@@ -1002,6 +1007,8 @@ export class KiloProvider implements vscode.WebviewViewProvider, TelemetryProper
|
||||
this.chatConfigDisposable = watchChatConfig((msg) => this.postMessage(msg))
|
||||
this.throughputConfigDisposable?.dispose()
|
||||
this.throughputConfigDisposable = watchThroughputConfig((msg) => this.postMessage(msg))
|
||||
this.autoApprovalReasonConfigDisposable?.dispose()
|
||||
this.autoApprovalReasonConfigDisposable = watchAutoApprovalReasonConfig((msg) => this.postMessage(msg))
|
||||
this.telemetryStateDisposable?.dispose()
|
||||
this.telemetryStateDisposable = watchTelemetryState((msg) => this.postMessage(msg))
|
||||
this.webviewMessageDisposable = webview.onDidReceiveMessage(async (message) => {
|
||||
@@ -1831,6 +1838,7 @@ export class KiloProvider implements vscode.WebviewViewProvider, TelemetryProper
|
||||
this.sendNotificationSettings()
|
||||
this.sendTimelineSetting()
|
||||
this.postMessage(buildThroughputSettingMessage())
|
||||
this.postMessage(buildAutoApprovalReasonSettingMessage())
|
||||
this.postMessage({ type: "extensionDataReady" })
|
||||
|
||||
console.log("[Kilo New] KiloProvider: ✅ initializeConnection completed successfully")
|
||||
@@ -4071,6 +4079,7 @@ export class KiloProvider implements vscode.WebviewViewProvider, TelemetryProper
|
||||
this.sendNotificationSettings()
|
||||
this.sendTimelineSetting()
|
||||
this.postMessage(buildThroughputSettingMessage())
|
||||
this.postMessage(buildAutoApprovalReasonSettingMessage())
|
||||
this.sendWorkStyle()
|
||||
await ModelState.reset(this.client, (msg) => this.postMessage(msg))
|
||||
|
||||
@@ -4995,6 +5004,7 @@ export class KiloProvider implements vscode.WebviewViewProvider, TelemetryProper
|
||||
this.indexingConfigDisposable?.dispose()
|
||||
this.chatConfigDisposable?.dispose()
|
||||
this.throughputConfigDisposable?.dispose()
|
||||
this.autoApprovalReasonConfigDisposable?.dispose()
|
||||
this.telemetryStateDisposable?.dispose()
|
||||
this.autoApproveBridge?.dispose()
|
||||
this.visibleTaskStreams.clear()
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import * as vscode from "vscode"
|
||||
|
||||
type Post = (msg: unknown) => void
|
||||
|
||||
export function buildAutoApprovalReasonSettingMessage() {
|
||||
const config = vscode.workspace.getConfiguration("kilo-code.new")
|
||||
return {
|
||||
type: "autoApprovalReasonSettingLoaded" as const,
|
||||
visible: config.get<boolean>("showAutoApprovalReason", true),
|
||||
}
|
||||
}
|
||||
|
||||
export function watchAutoApprovalReasonConfig(post: Post): vscode.Disposable {
|
||||
return vscode.workspace.onDidChangeConfiguration((event) => {
|
||||
if (event.affectsConfiguration("kilo-code.new.showAutoApprovalReason")) {
|
||||
post(buildAutoApprovalReasonSettingMessage())
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import type { SuggestionContext } from "./handlers/suggestion"
|
||||
import type { KiloClient } from "@kilocode/sdk/v2/client"
|
||||
import { buildChatSettingsMessage } from "./chat-settings"
|
||||
import { buildThroughputSettingMessage } from "./throughput-settings"
|
||||
import { buildAutoApprovalReasonSettingMessage } from "./auto-approval-reason-settings"
|
||||
import { handleModelUsageMessage, type ModelUsageMessage } from "./model-usage"
|
||||
|
||||
type Ctx = {
|
||||
@@ -71,6 +72,10 @@ export async function routeEarlyMessage(
|
||||
ctx.post(buildThroughputSettingMessage())
|
||||
return true
|
||||
}
|
||||
if (message.type === "requestAutoApprovalReasonSetting") {
|
||||
ctx.post(buildAutoApprovalReasonSettingMessage())
|
||||
return true
|
||||
}
|
||||
if (message.type === "requestSpeechToTextModels") {
|
||||
await ctx.speechToTextModels()
|
||||
return true
|
||||
|
||||
@@ -104,6 +104,19 @@ const DisplayTab: Component = () => {
|
||||
</Switch>
|
||||
</SettingsRow>
|
||||
|
||||
<SettingsRow
|
||||
title={language.t("settings.display.autoApprovalReason.title")}
|
||||
description={language.t("settings.display.autoApprovalReason.description")}
|
||||
>
|
||||
<Switch
|
||||
checked={Boolean(settings()["showAutoApprovalReason"] ?? true)}
|
||||
onChange={(checked: boolean) => updateSetting("showAutoApprovalReason", checked)}
|
||||
hideLabel
|
||||
>
|
||||
{language.t("settings.display.autoApprovalReason.title")}
|
||||
</Switch>
|
||||
</SettingsRow>
|
||||
|
||||
<SettingsRow
|
||||
title={language.t("settings.display.terminalCommand.title")}
|
||||
description={language.t("settings.display.terminalCommand.description")}
|
||||
|
||||
@@ -77,6 +77,7 @@ function loadedSettings(message: ExtensionMessage): Record<string, unknown> | un
|
||||
return { "chat.shiftTabCyclesVariant": message.settings.shiftTabCyclesVariant }
|
||||
}
|
||||
if (message.type === "throughputSettingLoaded") return { showTokenThroughput: message.visible }
|
||||
if (message.type === "autoApprovalReasonSettingLoaded") return { showAutoApprovalReason: message.visible }
|
||||
}
|
||||
|
||||
export const ConfigProvider: ParentComponent = (props) => {
|
||||
|
||||
@@ -13,6 +13,7 @@ import { useConfig } from "./config"
|
||||
import { useVSCode } from "./vscode"
|
||||
import type { ExtensionMessage } from "../types/messages"
|
||||
import { applyFontSize, clampFontSize, readFontSize } from "../font-size"
|
||||
import { ToolApprovalVisibilityProvider } from "@kilocode/kilo-ui/message-part"
|
||||
|
||||
interface DisplayContextValue {
|
||||
reasoningAutoCollapse: Accessor<boolean>
|
||||
@@ -23,6 +24,8 @@ interface DisplayContextValue {
|
||||
// every AssistantMessage and the aggregated row in TaskHeader, so flipping
|
||||
// the setting once updates both surfaces without round-trips.
|
||||
throughputVisible: Accessor<boolean>
|
||||
// Whether the "why was this tool call approved" line renders on tool calls.
|
||||
autoApprovalReasonVisible: Accessor<boolean>
|
||||
}
|
||||
|
||||
export const DisplayContext = createContext<DisplayContextValue>()
|
||||
@@ -33,15 +36,20 @@ export const DisplayProvider: ParentComponent = (props) => {
|
||||
const reasoningAutoCollapse = createMemo(() => config().auto_collapse_reasoning ?? false)
|
||||
const [fontSize, setFontSizeSignal] = createSignal(readFontSize())
|
||||
const [throughputVisible, setThroughputVisible] = createSignal(false)
|
||||
const [autoApprovalReasonVisible, setAutoApprovalReasonVisible] = createSignal(true)
|
||||
|
||||
// Request the throughput toggle once on mount; the extension posts back
|
||||
// Request both toggles once on mount; the extension posts back
|
||||
// (and onDidChangeConfiguration forwards subsequent edits).
|
||||
onMount(() => vscode.postMessage({ type: "requestThroughputSetting" }))
|
||||
onMount(() => {
|
||||
vscode.postMessage({ type: "requestThroughputSetting" })
|
||||
vscode.postMessage({ type: "requestAutoApprovalReasonSetting" })
|
||||
})
|
||||
|
||||
const unsubscribe = vscode.onMessage((message: ExtensionMessage) => {
|
||||
if (message.type === "ready" && message.fontSize !== undefined) setFontSizeSignal(clampFontSize(message.fontSize))
|
||||
if (message.type === "fontSizeChanged") setFontSizeSignal(clampFontSize(message.fontSize))
|
||||
if (message.type === "throughputSettingLoaded") setThroughputVisible(Boolean(message.visible))
|
||||
if (message.type === "autoApprovalReasonSettingLoaded") setAutoApprovalReasonVisible(Boolean(message.visible))
|
||||
})
|
||||
|
||||
createEffect(() => {
|
||||
@@ -62,9 +70,13 @@ export const DisplayProvider: ParentComponent = (props) => {
|
||||
vscode.postMessage({ type: "updateSetting", key: "fontSize", value: next })
|
||||
},
|
||||
throughputVisible,
|
||||
autoApprovalReasonVisible,
|
||||
}}
|
||||
>
|
||||
{props.children}
|
||||
{/* Bridges the toggle into kilo-ui's generic gate so every tool render hides the line consistently. */}
|
||||
<ToolApprovalVisibilityProvider value={autoApprovalReasonVisible}>
|
||||
{props.children}
|
||||
</ToolApprovalVisibilityProvider>
|
||||
</DisplayContext.Provider>
|
||||
)
|
||||
}
|
||||
|
||||
+3
@@ -1110,6 +1110,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1153,6 +1153,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1143,6 +1143,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1139,6 +1139,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
@@ -1166,6 +1166,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
@@ -1112,6 +1112,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1156,6 +1156,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1125,6 +1125,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "نمایش توان عملیاتی توکن",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"نرخ تولید متن (توکن/ثانیه) را در آخرین پیام دستیار و در سربرگ وظیفه نمایش میدهد. بهطور پیشفرض پنهان است تا چت شلوغ نشود.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"میانگین {{speed}} توکن/ثانیه برای این نوبت. شامل توکنهای خروجی و استدلال میشود؛ زمان اجرای ابزار و انتظار را شامل نمیشود.",
|
||||
|
||||
+3
@@ -1173,6 +1173,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -999,6 +999,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1131,6 +1131,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1119,6 +1119,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1113,6 +1113,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1137,6 +1137,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Vis genereringshastighet",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Vis tekstgenereringshastighet (tokens/sek) på den siste assistentmeldingen og i oppgaveoverskriften. Skjult som standard for å holde chatten ryddig.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1144,6 +1144,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1138,6 +1138,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1117,6 +1117,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1099,6 +1099,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1099,6 +1099,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1077,6 +1077,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
+3
@@ -1040,6 +1040,9 @@ export const dict = {
|
||||
"settings.display.tokenThroughput.title": "Show Token Throughput",
|
||||
"settings.display.tokenThroughput.description":
|
||||
"Display the text-generation rate (tokens/sec) on the latest assistant message and in the task header. Hidden by default to keep the chat uncluttered.",
|
||||
"settings.display.autoApprovalReason.title": "Show Auto-Approval Reason",
|
||||
"settings.display.autoApprovalReason.description":
|
||||
"Show a line on tool calls explaining why they were auto-approved (matched rule, agent default, YOLO mode, etc.).",
|
||||
|
||||
"chat.throughput.tooltip":
|
||||
"Average {{speed}} tokens/s for this turn. Includes output and reasoning tokens; excludes tool execution and waiting time.",
|
||||
|
||||
@@ -660,6 +660,11 @@ export interface ThroughputSettingLoadedMessage {
|
||||
visible: boolean
|
||||
}
|
||||
|
||||
export interface AutoApprovalReasonSettingLoadedMessage {
|
||||
type: "autoApprovalReasonSettingLoaded"
|
||||
visible: boolean
|
||||
}
|
||||
|
||||
export interface WorkStyleLoadedMessage {
|
||||
type: "workStyleLoaded"
|
||||
style: WorkStyleState
|
||||
@@ -1359,6 +1364,7 @@ export type ExtensionMessage =
|
||||
| NotificationSettingsLoadedMessage
|
||||
| TimelineSettingLoadedMessage
|
||||
| ThroughputSettingLoadedMessage
|
||||
| AutoApprovalReasonSettingLoadedMessage
|
||||
| WorkStyleLoadedMessage
|
||||
| WorkStyleAppliedMessage
|
||||
| WorkStyleApplyFailedMessage
|
||||
|
||||
@@ -455,6 +455,10 @@ export interface RequestThroughputSettingMessage {
|
||||
type: "requestThroughputSetting"
|
||||
}
|
||||
|
||||
export interface RequestAutoApprovalReasonSettingMessage {
|
||||
type: "requestAutoApprovalReasonSetting"
|
||||
}
|
||||
|
||||
export interface RequestWorkStyleMessage {
|
||||
type: "requestWorkStyle"
|
||||
}
|
||||
@@ -1439,6 +1443,7 @@ export type WebviewMessage =
|
||||
| UpdateSettingRequest
|
||||
| RequestTimelineSettingMessage
|
||||
| RequestThroughputSettingMessage
|
||||
| RequestAutoApprovalReasonSettingMessage
|
||||
| RequestWorkStyleMessage
|
||||
| SetWorkStyleMessage
|
||||
| ApplyWorkStyleMessage
|
||||
|
||||
Reference in New Issue
Block a user