Theia API Documentation v1.74.0
    Preparing search index...

    Persistent strip rendered above the chat content whenever an AI tool confirmation preference (ai-features.chat.defaultToolConfirmation or ai-features.chat.toolConfirmation) is active in the session scope (typically set via --session-preference). When the global default is forced to "Allow All" the strip is shown in error styling as the Theia AI Allow-All Mode banner; per-tool confirmation overrides use warning styling.

    Other AI-namespaced session overrides (e.g. forced-on AI features, default chat agent) are reported by the generic Session Preferences status bar item and intentionally not duplicated here.

    Implements

    Index

    Constructors

    Properties

    dismissed: boolean = false

    Process-lifetime dismissal flag. Reset on the next launch so the user is always reminded once per process. Also automatically cleared when the override set changes in any way after a dismissal (see init), so a previously dismissed strip cannot silently hide new or escalated overrides.

    dismissedSignature: undefined | string

    Signature of the override set at the moment the user dismissed the strip. undefined while the strip is not dismissed.

    onDidChange: Event<void> = ...

    Fired when the banner content (or visibility) may have changed.

    onDidChangeEmitter: Emitter<void> = ...
    preferenceService: PreferenceService
    priority: 1000

    Optional priority for rendering order. Higher values render first. Default: 0.

    toDispose: DisposableCollection = ...
    watchedKeys: readonly string[] = ...

    Only tool confirmation preferences are watched here. Other AI session overrides (enable AI, agent mode, default chat agent, etc.) are surfaced in the generic Session Preferences status bar item to keep the banner from duplicating the list.

    Methods

    • Returns true only when the global default is forced to Allow-All. Per-tool always_allow entries via TOOL_CONFIRMATION_PREFERENCE are scoped exceptions and remain in the banner as informational (warning) entries rather than escalating the whole strip to the red "Allow-All Mode" treatment.

      Parameters

      • key: string
      • value: unknown

      Returns boolean

    • Stable snapshot of the watched preferences' current session values. Used to detect changes to the override set for the dismissal-reset logic; not for anything user-visible so the format is intentionally simple.

      Returns string