feat(ai): context-aware AI chat tied to the open composer (#96) #103

Merged
kreativmonkey merged 1 commit from issue-96-ai-context into main 2026-06-15 00:11:30 +02:00

Behebt #96.

  • Auto-Kontext: Solange der Composer offen ist, hängt der AI-Chat automatisch den aktuellen Entwurfstext und die ausgewählten Ziele als Kontext an (sichtbar als lösbarer Chip „Composer · …"). Damit funktionieren Aufgaben wie „überarbeite den Post für Bluesky", weil das Modell Text und Zielplattformen kennt. Der Kontext löst sich, wenn der Composer schließt oder man den Chip entfernt.
  • Keyboard-Completion: @-Referenzen und /-Befehle sind jetzt per Tastatur bedienbar — Pfeil hoch/runter bewegt die Auswahl, Enter/Tab übernimmt, Escape schließt. Keine Maus mehr nötig.
  • Der „In Chat öffnen"-Button im Composer übergibt Entwurf + Ziele.
  • Der Chat-Drawer wird auf dem Smartphone zu einem nahezu bildschirmfüllenden Sheet.

Verifikation: tsc/Build/Lint sauber, neuer ai-chat-context Playwright-Test grün (Auto-Kontext-Chip + Keyboard-@-Completion, mit Screenshot), Composer-/AI-Specs ohne Regression.

Hinweis: Die bestehenden Composer-AI-Optimierungs-Steuerelemente habe ich bewusst belassen (funktionierendes Feature) — sie könnten laut Issue später zugunsten des Chats entfernt werden; sag Bescheid, dann mache ich das separat.

🤖 Generated with Claude Code

Behebt #96. - **Auto-Kontext:** Solange der Composer offen ist, hängt der AI-Chat automatisch den aktuellen Entwurfstext **und die ausgewählten Ziele** als Kontext an (sichtbar als lösbarer Chip „Composer · …"). Damit funktionieren Aufgaben wie „überarbeite den Post für Bluesky", weil das Modell Text **und** Zielplattformen kennt. Der Kontext löst sich, wenn der Composer schließt oder man den Chip entfernt. - **Keyboard-Completion:** `@`-Referenzen und `/`-Befehle sind jetzt per Tastatur bedienbar — Pfeil hoch/runter bewegt die Auswahl, Enter/Tab übernimmt, Escape schließt. Keine Maus mehr nötig. - Der „In Chat öffnen"-Button im Composer übergibt Entwurf + Ziele. - Der Chat-Drawer wird auf dem Smartphone zu einem nahezu bildschirmfüllenden Sheet. Verifikation: `tsc`/Build/Lint sauber, neuer `ai-chat-context` Playwright-Test grün (Auto-Kontext-Chip + Keyboard-`@`-Completion, mit Screenshot), Composer-/AI-Specs ohne Regression. Hinweis: Die bestehenden Composer-AI-Optimierungs-Steuerelemente habe ich bewusst belassen (funktionierendes Feature) — sie könnten laut Issue später zugunsten des Chats entfernt werden; sag Bescheid, dann mache ich das separat. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(ai): context-aware AI chat tied to the open composer (#96)
All checks were successful
CI/CD Workflow / Test Backend (Go) (pull_request) Successful in 2m57s
CI/CD Workflow / Test Frontend (Node.js) (pull_request) Successful in 1m33s
CI/CD Workflow / Test Postgres Store (pull_request) Successful in 1m16s
CI/CD Workflow / E2E (Playwright + Go) (pull_request) Successful in 7m45s
CI/CD Workflow / Build and Publish Docker Image (pull_request) Has been skipped
CI/CD Workflow / Trigger Dockhand Deployment (pull_request) Has been skipped
e5da3e05db
- While the composer is open, the AI chat automatically attaches the current
  draft text and the selected destinations as context (shown as a detachable
  chip). The user can ask "rework this for Bluesky" and the model knows both
  the post and its target platforms. The context detaches when the composer
  closes or the user removes the chip.
- @-mentions and /-commands are now keyboard-navigable: ArrowUp/ArrowDown move
  the highlight, Enter/Tab complete it, Escape dismisses — no mouse needed.
- The composer's "Open in chat" button forwards the draft and targets.
- The chat drawer becomes a near-fullscreen sheet on phones.

Closes #96.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kreativmonkey/goloom!103
No description provided.