BlueGit

ict rusty-teams

chore: drop OpenSpec files from upstream slice

metis Joachim Mild · pushed by metis

Authored 2026-11-12 · 2 weeks ago

Hash
894881fe7310259b6d2aca2ebd6a93a031a6318f
Parent
80aeee92
6 files changed +0 −280
openspec/changes/archive/2026-11-11-write-with-identity/.openspec.yaml deleted +0 −2
@@ -1,2 +0,0 @@
1 schema: spec-driven
2 created: 2026-11-11
@@ -1,2 +0,0 @@
1schema: spec-driven
2created: 2026-11-11
openspec/changes/archive/2026-11-11-write-with-identity/design.md deleted +0 −91
@@ -1,91 +0,0 @@
1 # Design
2
3 ## Context
4
5 Siehe `proposal.md` — Why. Heute:
6
7 - `AgentSettings.write_with` (leer = Microsoft) steuert Composer-Rewrite in `crates/app/src/views/composer/rewrite.rs` über `local_writer` → `agents::complete_text`.
8 - Tooltips nutzen bereits den Profilnamen; Status-/Fehlerstrings und Icons bleiben «Copilot» / `auto_fix_high`.
9 - Die Chat-Insel in `crates/app/src/views/conversation/copilot.rs` brandet fest mit `symbols/copilot_color.svg` und ruft nur `engine.ask_copilot` (Teams Sydney).
10 - Agent-Threads mit Limit 20 leben in `crates/app-state/src/agents/message_context.rs` — aber an einer festen `message_id`. Die Insel braucht denselben Limit-Gedanken für den ganzen offenen Chat.
11
12 ## Goals / Non-Goals
13
14 **Goals:**
15
16 - Eine gemeinsame «aktive Writer»-Auflösung (Profil oder Microsoft) für Branding und Ask/Rewrite.
17 - Insel-Ask lokal mit Thread-Text (max. 20 Nachrichten), ohne Tools.
18 - Kein Copilot-Logo/Copy, wenn der Writer lokal ist.
19
20 **Non-Goals:**
21
22 - Kein MCP/Tool-Loop in der Insel.
23 - Keine Provider-spezifischen Marken-Assets (Ollama-/OpenAI-Logos); ein generisches Bot-Symbol reicht.
24 - Kein Umschreiben der Roboter-Agenten-Delegation (Hover-Toolbar).
25 - Kein Entfernen des Microsoft-Pfads.
26
27 ## Decisions
28
29 ### 1. Gemeinsamer Writer-Resolver
30
31 Eine kleine Hilfsfunktion (App-seitig, z. B. neben Agents-Runs-Handle) liefert:
32
33 - `None` / Microsoft → leeres `write_with`
34 - `Some(profile)` → gültiges Chat-Profil
35
36 Composer und Insel lesen dieselbe Quelle. Anzeigename = `profile.name`.
37
38 **Alternative:** Modellstring aus `AgentBackend` — verworfen, weil das Dropdown und die Spec den Profilnamen festlegen.
39
40 ### 2. Branding
41
42 | Oberfläche | Microsoft | Lokal |
43 |---|---|---|
44 | Insel-Logo / Header | `copilot_color.svg` | Symbol `smart_toy` / Bot (bestehendes Asset) |
45 | Labels / Status | «Copilot …» | «{profile.name} …» |
46 | Composer-Button | `auto_fix_high` ok oder gleiches Bot-Symbol | gleiches Non-Copilot-Symbol + Tooltip «Rewrite with {name}» |
47
48 Overflow-Menü (`chat_header_actions.rs`) nutzt denselben dynamischen Label-String statt `'static` Copilot-Text.
49
50 ### 3. Insel-Ask-Pfad
51
52 ```
53 ask
54 |
55 +-- local_writer Some(profile)
56 | build thread text (newest 20 non-deleted)
57 | complete_text(system, thread + question)
58 |
59 +-- else
60 engine.ask_copilot (wie heute; ohne Engine → UNAVAILABLE)
61 ```
62
63 Systemprompt: Fragen zum aktuellen Teams-Chat beantworten; nur den gelieferten Thread nutzen; keine erfundenen Nachrichten.
64
65 Thread-Bau: `store.messages(chat_id, None, 20)` (bzw. äquivalent), Senderauflösung analog `message_context` (`local_names` / `sender_name`). Keine Abhängigkeit von einer angeklickten `message_id`.
66
67 **Alternative:** Insel an Agent-Run + MCP anbinden — verworfen (Explorations-Entscheidung: Option 1).
68
69 ### 4. Verfügbarkeit ohne Engine
70
71 - Rewrite: `rewrite_available` schon `local_writer.is_some() || engine` — belassen/härten.
72 - Insel-Button/Ask: bei lokalem Writer Engine nicht voraussetzen; `ask_copilot`-Zweig nur auf Microsoft-Pfad.
73
74 ### 5. Settings-Hinweis
75
76 Kurztext unter «Write with» erwähnen, dass Rewrite **und** die Chat-Insel dem Eintrag folgen.
77
78 ## Risks / Trade-offs
79
80 - [Dünner Kontext] 20 Nachrichten reichen für lange Chats nicht → Mitigation: gleiches Limit wie Agent-Thread; später erweiterbar, Spec bleibt «at most twenty».
81 - [Kanal vs Chat] Insel heute nur bei `Selection::Chat` → bleibt so; Kanäle out of scope.
82 - [Mehrere Insel-Turns] Folgefragen bekommen weiterhin den aktuellen Chat-Thread, nicht zwingend den Insel-Dialogverlauf → akzeptiert für v1; Dialog-Turns nur in der UI.
83 - [Falsches Profil gelöscht] `write_with` zeigt auf fehlende ID → wie heute Fallback Richtung Microsoft-Label in Settings; Ask sollte klar fehlschlagen oder Writer als fehlend behandeln — Implementierung: fehlendes Profil = kein local_writer (wie `local_writer` heute).
84
85 ## Migration Plan
86
87 Kein Datenmigrationsschritt: `write_with` existiert. Reines UI-/Ask-Verhalten. Rollback = vorheriges Binary.
88
89 ## Open Questions
90
91 Keine spez-relevanten. Icon-Wahl (`smart_toy` vs `bot`) ist Implementierungsdetail.
@@ -1,91 +0,0 @@
1# Design
2
3## Context
4
5Siehe `proposal.md` — Why. Heute:
6
7- `AgentSettings.write_with` (leer = Microsoft) steuert Composer-Rewrite in `crates/app/src/views/composer/rewrite.rs` über `local_writer` → `agents::complete_text`.
8- Tooltips nutzen bereits den Profilnamen; Status-/Fehlerstrings und Icons bleiben «Copilot» / `auto_fix_high`.
9- Die Chat-Insel in `crates/app/src/views/conversation/copilot.rs` brandet fest mit `symbols/copilot_color.svg` und ruft nur `engine.ask_copilot` (Teams Sydney).
10- Agent-Threads mit Limit 20 leben in `crates/app-state/src/agents/message_context.rs` — aber an einer festen `message_id`. Die Insel braucht denselben Limit-Gedanken für den ganzen offenen Chat.
11
12## Goals / Non-Goals
13
14**Goals:**
15
16- Eine gemeinsame «aktive Writer»-Auflösung (Profil oder Microsoft) für Branding und Ask/Rewrite.
17- Insel-Ask lokal mit Thread-Text (max. 20 Nachrichten), ohne Tools.
18- Kein Copilot-Logo/Copy, wenn der Writer lokal ist.
19
20**Non-Goals:**
21
22- Kein MCP/Tool-Loop in der Insel.
23- Keine Provider-spezifischen Marken-Assets (Ollama-/OpenAI-Logos); ein generisches Bot-Symbol reicht.
24- Kein Umschreiben der Roboter-Agenten-Delegation (Hover-Toolbar).
25- Kein Entfernen des Microsoft-Pfads.
26
27## Decisions
28
29### 1. Gemeinsamer Writer-Resolver
30
31Eine kleine Hilfsfunktion (App-seitig, z. B. neben Agents-Runs-Handle) liefert:
32
33- `None` / Microsoft → leeres `write_with`
34- `Some(profile)` → gültiges Chat-Profil
35
36Composer und Insel lesen dieselbe Quelle. Anzeigename = `profile.name`.
37
38**Alternative:** Modellstring aus `AgentBackend` — verworfen, weil das Dropdown und die Spec den Profilnamen festlegen.
39
40### 2. Branding
41
42| Oberfläche | Microsoft | Lokal |
43|---|---|---|
44| Insel-Logo / Header | `copilot_color.svg` | Symbol `smart_toy` / Bot (bestehendes Asset) |
45| Labels / Status | «Copilot …» | «{profile.name} …» |
46| Composer-Button | `auto_fix_high` ok oder gleiches Bot-Symbol | gleiches Non-Copilot-Symbol + Tooltip «Rewrite with {name}» |
47
48Overflow-Menü (`chat_header_actions.rs`) nutzt denselben dynamischen Label-String statt `'static` Copilot-Text.
49
50### 3. Insel-Ask-Pfad
51
52```
53ask
54 |
55 +-- local_writer Some(profile)
56 | build thread text (newest 20 non-deleted)
57 | complete_text(system, thread + question)
58 |
59 +-- else
60 engine.ask_copilot (wie heute; ohne Engine → UNAVAILABLE)
61```
62
63Systemprompt: Fragen zum aktuellen Teams-Chat beantworten; nur den gelieferten Thread nutzen; keine erfundenen Nachrichten.
64
65Thread-Bau: `store.messages(chat_id, None, 20)` (bzw. äquivalent), Senderauflösung analog `message_context` (`local_names` / `sender_name`). Keine Abhängigkeit von einer angeklickten `message_id`.
66
67**Alternative:** Insel an Agent-Run + MCP anbinden — verworfen (Explorations-Entscheidung: Option 1).
68
69### 4. Verfügbarkeit ohne Engine
70
71- Rewrite: `rewrite_available` schon `local_writer.is_some() || engine` — belassen/härten.
72- Insel-Button/Ask: bei lokalem Writer Engine nicht voraussetzen; `ask_copilot`-Zweig nur auf Microsoft-Pfad.
73
74### 5. Settings-Hinweis
75
76Kurztext unter «Write with» erwähnen, dass Rewrite **und** die Chat-Insel dem Eintrag folgen.
77
78## Risks / Trade-offs
79
80- [Dünner Kontext] 20 Nachrichten reichen für lange Chats nicht → Mitigation: gleiches Limit wie Agent-Thread; später erweiterbar, Spec bleibt «at most twenty».
81- [Kanal vs Chat] Insel heute nur bei `Selection::Chat` → bleibt so; Kanäle out of scope.
82- [Mehrere Insel-Turns] Folgefragen bekommen weiterhin den aktuellen Chat-Thread, nicht zwingend den Insel-Dialogverlauf → akzeptiert für v1; Dialog-Turns nur in der UI.
83- [Falsches Profil gelöscht] `write_with` zeigt auf fehlende ID → wie heute Fallback Richtung Microsoft-Label in Settings; Ask sollte klar fehlschlagen oder Writer als fehlend behandeln — Implementierung: fehlendes Profil = kein local_writer (wie `local_writer` heute).
84
85## Migration Plan
86
87Kein Datenmigrationsschritt: `write_with` existiert. Reines UI-/Ask-Verhalten. Rollback = vorheriges Binary.
88
89## Open Questions
90
91Keine spez-relevanten. Icon-Wahl (`smart_toy` vs `bot`) ist Implementierungsdetail.
openspec/changes/archive/2026-11-11-write-with-identity/proposal.md deleted +0 −33
@@ -1,33 +0,0 @@
1 # Proposal
2
3 ## Why
4
5 «Write with» kann Microsoft Copilot schon durch ein Chat-Profil ersetzen, aber Composer und Chat-Insel bleiben optisch und textlich «Copilot». Wer kein MS-Abo nutzt, sieht weiter Copilot-Branding und die Insel spricht weiterhin nur die Teams-API.
6
7 ## What Changes
8
9 - Wenn «Write with» ein Chat-Profil ist, zeigen Composer-Rewrite und die Chat-Header-Insel die Identität dieses Profils (Name + Non-Copilot-Icon), nicht «Copilot».
10 - Die Chat-Insel beantwortet Fragen dann über dasselbe Chat-Profil; Kontext sind die letzten ~20 Nachrichten des offenen Chats als Text (kein MCP/Tools).
11 - Composer-Status- und Fehlertexte folgen derselben Identität.
12 - Mit lokalem Writer bleiben Rewrite und Insel auch ohne Teams-Engine / ohne Copilot-Lizenz erreichbar.
13 - Leer belassenes «Write with» behält den Microsoft-Pfad inkl. Copilot-Branding (wie heute).
14
15 Annahme (Explorations-Feinheit): sichtbarer Anzeigename ist der **Profilname** aus den Agents-Einstellungen, nicht der Backend-Modellstring.
16
17 ## Capabilities
18
19 ### New Capabilities
20
21 - (keine)
22
23 ### Modified Capabilities
24
25 - `agent-providers`: «Write with» steuert nicht nur den Rewrite-Backend-Pfad, sondern die gemeinsame Assistenten-Identität und den Ask-Pfad der Chat-Insel.
26
27 ## Impact
28
29 - UI: `crates/app/src/views/composer/rewrite.rs`, `crates/app/src/views/conversation/copilot.rs`, Overflow-Menü in `chat_header_actions.rs`
30 - Settings-Texte optional: `settings_section.rs` (Hinweis, dass Insel mitwechselt)
31 - Kontextaufbau: Wiederverwendung/Erweiterung um Chat-Thread ohne feste `message_id` (Vorbild `message_context`, Limit 20)
32 - Lauf: `agents::complete_text` für Insel-Ask; Microsoft `ask_copilot` nur bei leerem `write_with`
33 - Spec-Baseline `openspec/specs/agent-providers` nach Archive
@@ -1,33 +0,0 @@
1# Proposal
2
3## Why
4
5«Write with» kann Microsoft Copilot schon durch ein Chat-Profil ersetzen, aber Composer und Chat-Insel bleiben optisch und textlich «Copilot». Wer kein MS-Abo nutzt, sieht weiter Copilot-Branding und die Insel spricht weiterhin nur die Teams-API.
6
7## What Changes
8
9- Wenn «Write with» ein Chat-Profil ist, zeigen Composer-Rewrite und die Chat-Header-Insel die Identität dieses Profils (Name + Non-Copilot-Icon), nicht «Copilot».
10- Die Chat-Insel beantwortet Fragen dann über dasselbe Chat-Profil; Kontext sind die letzten ~20 Nachrichten des offenen Chats als Text (kein MCP/Tools).
11- Composer-Status- und Fehlertexte folgen derselben Identität.
12- Mit lokalem Writer bleiben Rewrite und Insel auch ohne Teams-Engine / ohne Copilot-Lizenz erreichbar.
13- Leer belassenes «Write with» behält den Microsoft-Pfad inkl. Copilot-Branding (wie heute).
14
15Annahme (Explorations-Feinheit): sichtbarer Anzeigename ist der **Profilname** aus den Agents-Einstellungen, nicht der Backend-Modellstring.
16
17## Capabilities
18
19### New Capabilities
20
21- (keine)
22
23### Modified Capabilities
24
25- `agent-providers`: «Write with» steuert nicht nur den Rewrite-Backend-Pfad, sondern die gemeinsame Assistenten-Identität und den Ask-Pfad der Chat-Insel.
26
27## Impact
28
29- UI: `crates/app/src/views/composer/rewrite.rs`, `crates/app/src/views/conversation/copilot.rs`, Overflow-Menü in `chat_header_actions.rs`
30- Settings-Texte optional: `settings_section.rs` (Hinweis, dass Insel mitwechselt)
31- Kontextaufbau: Wiederverwendung/Erweiterung um Chat-Thread ohne feste `message_id` (Vorbild `message_context`, Limit 20)
32- Lauf: `agents::complete_text` für Insel-Ask; Microsoft `ask_copilot` nur bei leerem `write_with`
33- Spec-Baseline `openspec/specs/agent-providers` nach Archive
openspec/changes/archive/2026-11-11-write-with-identity/specs/agent-providers/spec.md deleted +0 −44
@@ -1,44 +0,0 @@
1 # Spec Delta
2
3 ## ADDED Requirements
4
5 ### Requirement: Write-with identity brands assistant surfaces
6
7 When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL present that profile's name and a non-Copilot icon instead of Microsoft Copilot branding. When «Write with» is empty, those surfaces SHALL keep Microsoft Copilot branding.
8
9 #### Scenario: Local writer rebrands composer and island
10
11 - **WHEN** the user has chosen a chat profile under Settings > Agents > Write with
12 - **THEN** the composer rewrite tooltip, working and failure copy name that profile
13 - **AND** the chat-header island title, open/close labels, placeholder and working/failure copy name that profile
14 - **AND** neither surface shows the Copilot colour logo as its identity mark
15
16 #### Scenario: Empty write-with keeps Copilot branding
17
18 - **WHEN** Write with is left empty (Microsoft Copilot)
19 - **THEN** composer rewrite and the chat-header island keep Copilot labels and the Copilot logo where they already appear today
20
21 ### Requirement: Chat island asks through the write-with profile
22
23 When «Write with» selects a chat profile, questions from the chat-header assistant island SHALL be answered by that profile. The prompt SHALL include up to the newest twenty non-deleted messages of the open chat as plain text plus the user's question. The island SHALL NOT call Microsoft Copilot for those asks. Empty Write with keeps the Microsoft ask path.
24
25 #### Scenario: Local ask uses recent chat messages
26
27 - **WHEN** Write with is a chat profile and the user asks a question in the chat-header island
28 - **THEN** the answer comes from that profile
29 - **AND** the model input includes at most the newest twenty non-deleted messages of that chat plus the question
30 - **AND** Microsoft Copilot is not invoked for that ask
31
32 #### Scenario: Empty write-with still uses Microsoft ask
33
34 - **WHEN** Write with is empty and the user asks in the chat-header island
35 - **THEN** the ask follows the existing Microsoft Copilot path
36
37 ### Requirement: Local writer surfaces work without a Teams engine
38
39 When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL remain available for an open chat even if the Teams sync engine is absent, so users without a Microsoft Copilot licence can still use the local writer.
40
41 #### Scenario: Island opens without engine when a local writer is set
42
43 - **WHEN** Write with is a chat profile, a chat is open, and no Teams sync engine is connected
44 - **THEN** the user can still open the chat-header assistant island and send a question to that profile
@@ -1,44 +0,0 @@
1# Spec Delta
2
3## ADDED Requirements
4
5### Requirement: Write-with identity brands assistant surfaces
6
7When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL present that profile's name and a non-Copilot icon instead of Microsoft Copilot branding. When «Write with» is empty, those surfaces SHALL keep Microsoft Copilot branding.
8
9#### Scenario: Local writer rebrands composer and island
10
11- **WHEN** the user has chosen a chat profile under Settings > Agents > Write with
12- **THEN** the composer rewrite tooltip, working and failure copy name that profile
13- **AND** the chat-header island title, open/close labels, placeholder and working/failure copy name that profile
14- **AND** neither surface shows the Copilot colour logo as its identity mark
15
16#### Scenario: Empty write-with keeps Copilot branding
17
18- **WHEN** Write with is left empty (Microsoft Copilot)
19- **THEN** composer rewrite and the chat-header island keep Copilot labels and the Copilot logo where they already appear today
20
21### Requirement: Chat island asks through the write-with profile
22
23When «Write with» selects a chat profile, questions from the chat-header assistant island SHALL be answered by that profile. The prompt SHALL include up to the newest twenty non-deleted messages of the open chat as plain text plus the user's question. The island SHALL NOT call Microsoft Copilot for those asks. Empty Write with keeps the Microsoft ask path.
24
25#### Scenario: Local ask uses recent chat messages
26
27- **WHEN** Write with is a chat profile and the user asks a question in the chat-header island
28- **THEN** the answer comes from that profile
29- **AND** the model input includes at most the newest twenty non-deleted messages of that chat plus the question
30- **AND** Microsoft Copilot is not invoked for that ask
31
32#### Scenario: Empty write-with still uses Microsoft ask
33
34- **WHEN** Write with is empty and the user asks in the chat-header island
35- **THEN** the ask follows the existing Microsoft Copilot path
36
37### Requirement: Local writer surfaces work without a Teams engine
38
39When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL remain available for an open chat even if the Teams sync engine is absent, so users without a Microsoft Copilot licence can still use the local writer.
40
41#### Scenario: Island opens without engine when a local writer is set
42
43- **WHEN** Write with is a chat profile, a chat is open, and no Teams sync engine is connected
44- **THEN** the user can still open the chat-header assistant island and send a question to that profile
openspec/changes/archive/2026-11-11-write-with-identity/tasks.md deleted +0 −22
@@ -1,22 +0,0 @@
1 # Tasks
2
3 ## 1. Writer-Resolver und Chat-Thread
4
5 - [x] 1.1 Gemeinsame Auflösung von «Write with» (Chat-Profil oder Microsoft) für App-UI bereitstellen und mit `cargo test -p app --lib` bzw. einem gezielten Unit-Test für leeres/`write_with`-Profil verifizieren
6 - [x] 1.2 Thread-Text für einen offenen Chat bauen (max. 20 nicht gelöschte Nachrichten, Sender analog `message_context`) und Unit-Test in `app-state` oder `agents` grün halten (`cargo test -p app-state --lib` bzw. passender Filter)
7
8 ## 2. Composer-Branding
9
10 - [x] 2.1 In `crates/app/src/views/composer/rewrite.rs` Working-/Failed-/Empty-/Text-only-Strings und Button-Icon an den lokalen Writer-Namen koppeln; Microsoft-Pfad unverändert lassen — verifizieren durch Review der Strings und `cargo test -p app --lib` falls vorhandene Rewrite-Tests greifen
11 - [x] 2.2 Settings-Hinweis unter «Write with» so anpassen, dass Rewrite und Chat-Insel erwähnt werden; manuell im Settings-Dialog prüfen
12
13 ## 3. Chat-Insel: Branding und lokaler Ask
14
15 - [x] 3.1 In `copilot.rs` und `chat_header_actions.rs` Titel, Tooltips, Placeholder, Working/Failed und Logo/Icon dynamisch aus dem Writer ableiten — verifizieren: mit lokalem Profil kein `copilot_color.svg` als Identitätsmarke
16 - [x] 3.2 Insel-Ask bei lokalem Writer über `complete_text` mit Thread+Frage; ohne Engine erreichbar; bei leerem `write_with` weiter `ask_copilot` — verifizieren mit gezieltem Test oder manuellem Smoke (lokales Profil vs. Microsoft)
17 - [x] 3.3 Integration: `cargo test -p agents --lib` und `cargo test -p app-state --lib` (oder engere Filter) grün; kurzer Smoke: Write with → Ollama/OpenAI-Profil → Insel-Frage und Composer-Rewrite zeigen Profilname
18
19 ## Workflow follow-up
20
21 - Archive nach Review und Merge der Spec-Deltas in `openspec/specs/agent-providers`
22 - Alltagskomits nach `fork` pushen, nicht nach `origin`
@@ -1,22 +0,0 @@
1# Tasks
2
3## 1. Writer-Resolver und Chat-Thread
4
5- [x] 1.1 Gemeinsame Auflösung von «Write with» (Chat-Profil oder Microsoft) für App-UI bereitstellen und mit `cargo test -p app --lib` bzw. einem gezielten Unit-Test für leeres/`write_with`-Profil verifizieren
6- [x] 1.2 Thread-Text für einen offenen Chat bauen (max. 20 nicht gelöschte Nachrichten, Sender analog `message_context`) und Unit-Test in `app-state` oder `agents` grün halten (`cargo test -p app-state --lib` bzw. passender Filter)
7
8## 2. Composer-Branding
9
10- [x] 2.1 In `crates/app/src/views/composer/rewrite.rs` Working-/Failed-/Empty-/Text-only-Strings und Button-Icon an den lokalen Writer-Namen koppeln; Microsoft-Pfad unverändert lassen — verifizieren durch Review der Strings und `cargo test -p app --lib` falls vorhandene Rewrite-Tests greifen
11- [x] 2.2 Settings-Hinweis unter «Write with» so anpassen, dass Rewrite und Chat-Insel erwähnt werden; manuell im Settings-Dialog prüfen
12
13## 3. Chat-Insel: Branding und lokaler Ask
14
15- [x] 3.1 In `copilot.rs` und `chat_header_actions.rs` Titel, Tooltips, Placeholder, Working/Failed und Logo/Icon dynamisch aus dem Writer ableiten — verifizieren: mit lokalem Profil kein `copilot_color.svg` als Identitätsmarke
16- [x] 3.2 Insel-Ask bei lokalem Writer über `complete_text` mit Thread+Frage; ohne Engine erreichbar; bei leerem `write_with` weiter `ask_copilot` — verifizieren mit gezieltem Test oder manuellem Smoke (lokales Profil vs. Microsoft)
17- [x] 3.3 Integration: `cargo test -p agents --lib` und `cargo test -p app-state --lib` (oder engere Filter) grün; kurzer Smoke: Write with → Ollama/OpenAI-Profil → Insel-Frage und Composer-Rewrite zeigen Profilname
18
19## Workflow follow-up
20
21- Archive nach Review und Merge der Spec-Deltas in `openspec/specs/agent-providers`
22- Alltagskomits nach `fork` pushen, nicht nach `origin`
openspec/specs/agent-providers/spec.md deleted +0 −88
@@ -1,88 +0,0 @@
1 # agent-providers Specification
2
3 ## Purpose
4
5 Die Fork-App erkennt lokale Agent-CLIs, lässt Profile und Aktionen in den Einstellungen pflegen und startet Agent-Läufe inkl. Chat-Runs aus der UI.
6
7 ## Requirements
8
9 ### Requirement: Installed CLIs are discoverable
10
11 The app SHALL scan for known agent CLIs on the host (including user bin directories that a desktop session often omits from PATH) and offer them as installable profiles.
12
13 #### Scenario: Claude on PATH or user bin
14
15 - **WHEN** a `claude` binary exists on PATH or under `~/.local/bin`
16 - **THEN** the agents settings can offer it as an installable host profile
17
18 #### Scenario: Cursor agent binary aliases
19
20 - **WHEN** `cursor-agent` or `agent` is available as the Cursor CLI
21 - **THEN** it appears as a Cursor host profile candidate
22
23 ### Requirement: Agent settings persist profiles and actions
24
25 Agent settings SHALL store profiles, actions, recent working directories, and which agent is used for «write with», and SHALL reject unknown placeholders and empty commands.
26
27 #### Scenario: Invalid action is rejected
28
29 - **WHEN** an action references an agent id that is not in the profile list
30 - **THEN** settings validation reports that problem
31 - **AND** the invalid configuration is not treated as healthy
32
33 #### Scenario: Write-with can target a chat profile
34
35 - **WHEN** the user picks a chat-capable agent for «write with»
36 - **THEN** that choice is stored in agent settings
37 - **AND** empty write-with means Microsoft Copilot
38
39 ### Requirement: Chat and task runs are started from the app
40
41 The user SHALL be able to start agent runs and chat runs from the app against a configured profile, with working-directory context remembered per agent.
42
43 #### Scenario: Recent working directories are remembered
44
45 - **WHEN** the user runs an agent with a working directory
46 - **THEN** that directory is kept in the recent list for that agent (capped)
47 - **AND** it can be chosen again later without retyping
48
49 ### Requirement: Write-with identity brands assistant surfaces
50
51 When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL present that profile's name and a non-Copilot icon instead of Microsoft Copilot branding. When «Write with» is empty, those surfaces SHALL keep Microsoft Copilot branding.
52
53 #### Scenario: Local writer rebrands composer and island
54
55 - **WHEN** the user has chosen a chat profile under Settings > Agents > Write with
56 - **THEN** the composer rewrite tooltip, working and failure copy name that profile
57 - **AND** the chat-header island title, open/close labels, placeholder and working/failure copy name that profile
58 - **AND** neither surface shows the Copilot colour logo as its identity mark
59
60 #### Scenario: Empty write-with keeps Copilot branding
61
62 - **WHEN** Write with is left empty (Microsoft Copilot)
63 - **THEN** composer rewrite and the chat-header island keep Copilot labels and the Copilot logo where they already appear today
64
65 ### Requirement: Chat island asks through the write-with profile
66
67 When «Write with» selects a chat profile, questions from the chat-header assistant island SHALL be answered by that profile. The prompt SHALL include up to the newest twenty non-deleted messages of the open chat as plain text plus the user's question. The island SHALL NOT call Microsoft Copilot for those asks. Empty Write with keeps the Microsoft ask path.
68
69 #### Scenario: Local ask uses recent chat messages
70
71 - **WHEN** Write with is a chat profile and the user asks a question in the chat-header island
72 - **THEN** the answer comes from that profile
73 - **AND** the model input includes at most the newest twenty non-deleted messages of that chat plus the question
74 - **AND** Microsoft Copilot is not invoked for that ask
75
76 #### Scenario: Empty write-with still uses Microsoft ask
77
78 - **WHEN** Write with is empty and the user asks in the chat-header island
79 - **THEN** the ask follows the existing Microsoft Copilot path
80
81 ### Requirement: Local writer surfaces work without a Teams engine
82
83 When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL remain available for an open chat even if the Teams sync engine is absent, so users without a Microsoft Copilot licence can still use the local writer.
84
85 #### Scenario: Island opens without engine when a local writer is set
86
87 - **WHEN** Write with is a chat profile, a chat is open, and no Teams sync engine is connected
88 - **THEN** the user can still open the chat-header assistant island and send a question to that profile
@@ -1,88 +0,0 @@
1# agent-providers Specification
2
3## Purpose
4
5Die Fork-App erkennt lokale Agent-CLIs, lässt Profile und Aktionen in den Einstellungen pflegen und startet Agent-Läufe inkl. Chat-Runs aus der UI.
6
7## Requirements
8
9### Requirement: Installed CLIs are discoverable
10
11The app SHALL scan for known agent CLIs on the host (including user bin directories that a desktop session often omits from PATH) and offer them as installable profiles.
12
13#### Scenario: Claude on PATH or user bin
14
15- **WHEN** a `claude` binary exists on PATH or under `~/.local/bin`
16- **THEN** the agents settings can offer it as an installable host profile
17
18#### Scenario: Cursor agent binary aliases
19
20- **WHEN** `cursor-agent` or `agent` is available as the Cursor CLI
21- **THEN** it appears as a Cursor host profile candidate
22
23### Requirement: Agent settings persist profiles and actions
24
25Agent settings SHALL store profiles, actions, recent working directories, and which agent is used for «write with», and SHALL reject unknown placeholders and empty commands.
26
27#### Scenario: Invalid action is rejected
28
29- **WHEN** an action references an agent id that is not in the profile list
30- **THEN** settings validation reports that problem
31- **AND** the invalid configuration is not treated as healthy
32
33#### Scenario: Write-with can target a chat profile
34
35- **WHEN** the user picks a chat-capable agent for «write with»
36- **THEN** that choice is stored in agent settings
37- **AND** empty write-with means Microsoft Copilot
38
39### Requirement: Chat and task runs are started from the app
40
41The user SHALL be able to start agent runs and chat runs from the app against a configured profile, with working-directory context remembered per agent.
42
43#### Scenario: Recent working directories are remembered
44
45- **WHEN** the user runs an agent with a working directory
46- **THEN** that directory is kept in the recent list for that agent (capped)
47- **AND** it can be chosen again later without retyping
48
49### Requirement: Write-with identity brands assistant surfaces
50
51When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL present that profile's name and a non-Copilot icon instead of Microsoft Copilot branding. When «Write with» is empty, those surfaces SHALL keep Microsoft Copilot branding.
52
53#### Scenario: Local writer rebrands composer and island
54
55- **WHEN** the user has chosen a chat profile under Settings > Agents > Write with
56- **THEN** the composer rewrite tooltip, working and failure copy name that profile
57- **AND** the chat-header island title, open/close labels, placeholder and working/failure copy name that profile
58- **AND** neither surface shows the Copilot colour logo as its identity mark
59
60#### Scenario: Empty write-with keeps Copilot branding
61
62- **WHEN** Write with is left empty (Microsoft Copilot)
63- **THEN** composer rewrite and the chat-header island keep Copilot labels and the Copilot logo where they already appear today
64
65### Requirement: Chat island asks through the write-with profile
66
67When «Write with» selects a chat profile, questions from the chat-header assistant island SHALL be answered by that profile. The prompt SHALL include up to the newest twenty non-deleted messages of the open chat as plain text plus the user's question. The island SHALL NOT call Microsoft Copilot for those asks. Empty Write with keeps the Microsoft ask path.
68
69#### Scenario: Local ask uses recent chat messages
70
71- **WHEN** Write with is a chat profile and the user asks a question in the chat-header island
72- **THEN** the answer comes from that profile
73- **AND** the model input includes at most the newest twenty non-deleted messages of that chat plus the question
74- **AND** Microsoft Copilot is not invoked for that ask
75
76#### Scenario: Empty write-with still uses Microsoft ask
77
78- **WHEN** Write with is empty and the user asks in the chat-header island
79- **THEN** the ask follows the existing Microsoft Copilot path
80
81### Requirement: Local writer surfaces work without a Teams engine
82
83When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL remain available for an open chat even if the Teams sync engine is absent, so users without a Microsoft Copilot licence can still use the local writer.
84
85#### Scenario: Island opens without engine when a local writer is set
86
87- **WHEN** Write with is a chat profile, a chat is open, and no Teams sync engine is connected
88- **THEN** the user can still open the chat-header assistant island and send a question to that profile