Skip to content

Hold the built-in AI chat to its access level; redesign Migrations - #306

Merged
broisnees merged 1 commit into
nightlyfrom
ai-access-levels
Nov 19, 2026
Merged

broisnees merged 1 commit into
nightlyfrom
ai-access-levels

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

AI access levels for built-in models. Before this change, Stroke Free and API-key models could run any write; the chat only asked before destructive ones. Now every execute_sql they send is classified by src-tauri/src/mcp/access.rs, the same classifier the MCP server uses for local agents (through the new sql_access_level command). Anything above the chat's level is refused, and the SQL goes back to the model to hand to the user. The Read only / Read & write / Modify schema / Dangerous control under the composer now shows for every model, and the system prompt tells the model what its level allows. The default level is Read only, the same as for local agents.

Migrations redesign.

  • A stat row with applied, pending, problems and last applied, over a three-part progress bar.
  • The apply command on its own line, so the copy button no longer wraps.
  • A prompt to pick the project folder when none is set.
  • Search.
  • The list as a timeline grouped by the month each migration ran, with pending last.
  • Dates on one line in any font. They wrapped with a monospace UI font before.

Checked in the real app in dark and light.

Tests: vitest, svelte-check, design lint, and the Rust access tests (16) all pass.

- The built-in chat (Stroke Free, API keys) ran any write, asking only
  before destructive ones. Its execute_sql now goes through the classifier
  the MCP server enforces for local agents (sql_access_level), and a
  statement above the chat's level is refused with the SQL handed back.
  The access control under the composer shows for every model, and the
  system prompt says what the level allows.
- Migrations: a stat row (applied, pending, problems, last applied) with a
  three-part bar, the apply command on its own line, a folder prompt when
  none is picked, search, and the list as a timeline grouped by the month
  it ran, pending last. Dates fit one line in any font.
- TODO: tick off what shipped.
@broisnees
broisnees merged commit e6d9b94 into nightly Nov 19, 2026
1 check passed
@broisnees
broisnees deleted the ai-access-levels branch November 19, 2026 05:00
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant