Skip to content

refactor: AI chat panel layout shell#1074

Merged
datlechin merged 5 commits into
mainfrom
refactor/chat-layout-shell-pr-a
May 7, 2026
Merged

refactor: AI chat panel layout shell#1074
datlechin merged 5 commits into
mainfrom
refactor/chat-layout-shell-pr-a

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

PR A of the chat panel redesign tracked in docs/refactor/ai-chat-redesign.md. Layout-only — no provider behavior change. Slot for B-H follow-ups.

  • Inspector tab picker at the top of the right inspector. Pure SwiftUI Picker(.segmented) with Details and AI Chat. The window toolbar no longer carries any chat chrome.
  • Slim empty state (sparkles icon, single title, caption). Drops the previous big illustration and starter prompt chips. Matches VS Code's chat panel weight.
  • Single-row composer footer carries every chat action: @ mention, / slash commands, mode picker (Ask / Edit / Agent), model picker, history menu, new conversation, send/stop. Replaces the old in-content header.
  • AIChatMode enum (ask / edit / agent) added to AISettings, persisted across launches. Mode picker writes to settings; does not yet gate provider behavior or tools (slated for PR D).
  • @ObservationIgnored removed from MainContentCoordinator.rightPanelState so SwiftUI views inside NSHostingController re-render when the coordinator wires up the state on first display.
  • Deletes MainWindowToolbar+AIChat.swift (no longer needed) and AIStarterPrompts.swift (chips removed).

Test plan

  • Build the app, open a SQLite/Postgres connection.
  • Toggle the inspector. The right pane shows Details | AI Chat segmented picker at the top.
  • Switch to AI Chat. Empty state: sparkles icon, "Ask AI about your database", "AI responses may be inaccurate". No starter chips.
  • Composer footer single row in order: @ Ask▾ <model>▾ ... ✏︎ .
  • Mode picker: pick Edit/Agent. Setting persists across app relaunch.
  • Click ✏︎ (new conversation), (history) — both work as before.
  • Switch to Details tab. AI chat state is preserved when switching back.
  • Disable AI in Settings. Inspector tab picker disappears, panel falls back to Details only.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@datlechin datlechin merged commit 38f36e6 into main May 7, 2026
2 checks passed
@datlechin datlechin deleted the refactor/chat-layout-shell-pr-a branch May 7, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant