deepseek-ai/deepseek-harness · error · Error
permission settings schema does not advertise its current pr
Error message
permission settings schema does not advertise its current preset
What it means
Error "permission settings schema does not advertise its current preset" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/client/ui-permission-presets/src/client/settings-store.ts:76
if (typeof value !== 'string') throw new Error('permission settings has no defaultPreset value')
const node = schema.nodeAtPath(schema.rehydrate(view.schema), ['defaultPreset'])
if (node === undefined) throw new Error('permission settings schema has no defaultPreset field')
const rawChoices = node.type === 'union'
? (node.list as SchemaNode[] | undefined) ?? []
: [node]
const options = rawChoices.flatMap((candidate) => {
const choice = candidate as unknown as ConstChoice
if (choice.type !== 'const' || typeof choice.value !== 'string') return []
const described = choice.meta?.description
return [{
id: choice.value,
label: typeof described === 'string' && described.length > 0
? displayPermissionPreset(choice.value, described)
: displayPermissionPreset(choice.value, choice.value),
}]
})
if (options.length === 0 || !options.some(option => option.id === value)) {
throw new Error('permission settings schema does not advertise its current preset')
}
return { currentValue: value, options }
}
/** Controller deriving the row from the shared mirror and writing the default through it. */
export class PermissionPresetSettingsController {
/** Row snapshot consumed through a bound selector hook. */
readonly store: SnapshotStore<PermissionSettingsState> = createSnapshotStore({
status: 'idle',
error: null,
writable: false,
currentValue: '',
options: [],
revision: 0,
})
private following: (() => void) | undefined
private saving = falseView on GitHub (pinned to b150a551b8)
Solutions
- Advertise the current preset in the permission settings schema.
When it happens
Trigger: Thrown at packages/client/ui-permission-presets/src/client/settings-store.ts:76 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/087592a36f7d5a08.
Report an issue: GitHub.