mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(core): address round 3 review findings for upstream merge
This commit is contained in:
@@ -139,7 +139,7 @@ export function registerKiloCommands(useSDK: () => UseSDK) {
|
||||
hidden: !isKiloConnected(),
|
||||
run: async () => {
|
||||
try {
|
||||
if (sync.data.globalConfig.privacy_mode === true) {
|
||||
if (sync.data.config.privacy_mode === true || sync.data.globalConfig.privacy_mode === true) {
|
||||
const confirmed = await DialogConfirm.show(
|
||||
dialog,
|
||||
"Privacy Mode Enabled",
|
||||
@@ -191,13 +191,15 @@ export function registerKiloCommands(useSDK: () => UseSDK) {
|
||||
{
|
||||
name: "kilo.privacy",
|
||||
get title() {
|
||||
return sync.data.globalConfig.privacy_mode === true ? "Disable privacy mode" : "Enable privacy mode"
|
||||
const active = sync.data.config.privacy_mode === true || sync.data.globalConfig.privacy_mode === true
|
||||
return active ? "Disable privacy mode" : "Enable privacy mode"
|
||||
},
|
||||
desc: "Blur PII (balance, email, etc.) and confirm before showing profile",
|
||||
category: "Kilo",
|
||||
slashName: "privacy",
|
||||
run: async () => {
|
||||
const next = sync.data.globalConfig.privacy_mode !== true
|
||||
const active = sync.data.config.privacy_mode === true || sync.data.globalConfig.privacy_mode === true
|
||||
const next = !active
|
||||
const response = await sdk.client.config.overlayUpdate({
|
||||
scope: "global",
|
||||
set: { privacy_mode: next },
|
||||
|
||||
@@ -100,7 +100,9 @@ function View(props: { api: TuiPluginApi }) {
|
||||
name: list.at(-1) ?? "",
|
||||
}
|
||||
})
|
||||
const privacyMode = createMemo(() => props.api.state.globalConfig.privacy_mode === true)
|
||||
const privacyMode = createMemo(
|
||||
() => props.api.state.config.privacy_mode === true || props.api.state.globalConfig.privacy_mode === true,
|
||||
)
|
||||
const balanceText = createMemo(() => (privacyMode() ? REDACTED_BALANCE : null))
|
||||
const mutedColor = createMemo(() => (privacyMode() ? theme().textMuted : tone()))
|
||||
const refresh = () => {
|
||||
|
||||
@@ -870,6 +870,7 @@ export const layer: Layer.Layer<
|
||||
model, // kilocode_change - preserve the model + variant active at the fork point
|
||||
sourceID: input.sessionID, // kilocode_change - forks preserve initialized confinement
|
||||
sandboxFallback, // kilocode_change - seed confinement from the source session's original directory
|
||||
platform: KiloSession.resolvePlatform(original.id), // kilocode_change - inherit platform telemetry attribution
|
||||
})
|
||||
const idMap = new Map<string, MessageID>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user