bots-garden/sidekickspublic Fork
⑂ 713ea6e
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/sidekicks.git
git clone ssh://git@rickub.com/bots-garden/sidekicks.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

Merge feature/111-composer-height into main

agent committed 2026-11-15T19:31:21+01:00 Browse files
713ea6e parents: f29b0e5 1427f81
modified .memory/history.md +3 -0
@@ -371,3 +371,6 @@
371371 - Checks: make verify green; Xvfb: flowchart, sequence, light/dark, invalid diagram, Go block, edit mode. Not committed; #116 left open for the owner's test.
372372 - **2026-11-15 — v1.6.0 published** (owner, commits 10efb6f/dc2c4cb/498ca3b on main, pushed). Sync: #102 restored from HEAD then closed with all tasks (the Mac's IssueSpec had closed it from a stale copy: tasks 1–3 reopened, comment lost — and the committed copy had already lost the comment); milestones.yaml keeps the owner's v1.6.0 closing (IssueSpec unquoted the descriptions) + v1.7.0. Tag v1.6.0 not visible here (remote unreachable from the sandbox): git fetch --tags on the Mac.
373373 - **2026-11-15 — #116 closed** (owner tested on the Mac); feature/116-mermaid merged into main (not pushed).
374+- **2026-11-15 — #111 composer height** (branch feature/111-composer-height): fit() in a $effect on text + window resize (was only in onInput); composerHeight() in composer.ts with a test; Xvfb: send / ↑ / ↓ resize correctly. Release notes v1.7.0. Not committed; #111 open for the owner's test.
375+- **2026-11-15 — tickets #117** (code of a linked source file not coloured: LinkedFilePanel shows <pre>) **and #118** (↑ recall works with mini-me kept sessions, not other agents; composer history is in-memory per Composer — to reproduce). Owner restated #111 (reset after send) — already what the branch does; likely an old build on the Mac.
376+- **2026-11-15 — #111 closed** (owner); feature/111-composer-height merged into main with tickets #117, #118 (not pushed).
@@ -371,3 +371,6 @@
371 - Checks: make verify green; Xvfb: flowchart, sequence, light/dark, invalid diagram, Go block, edit mode. Not committed; #116 left open for the owner's test.371 - Checks: make verify green; Xvfb: flowchart, sequence, light/dark, invalid diagram, Go block, edit mode. Not committed; #116 left open for the owner's test.
372 - **2026-11-15 — v1.6.0 published** (owner, commits 10efb6f/dc2c4cb/498ca3b on main, pushed). Sync: #102 restored from HEAD then closed with all tasks (the Mac's IssueSpec had closed it from a stale copy: tasks 1–3 reopened, comment lost — and the committed copy had already lost the comment); milestones.yaml keeps the owner's v1.6.0 closing (IssueSpec unquoted the descriptions) + v1.7.0. Tag v1.6.0 not visible here (remote unreachable from the sandbox): git fetch --tags on the Mac.372 - **2026-11-15 — v1.6.0 published** (owner, commits 10efb6f/dc2c4cb/498ca3b on main, pushed). Sync: #102 restored from HEAD then closed with all tasks (the Mac's IssueSpec had closed it from a stale copy: tasks 1–3 reopened, comment lost — and the committed copy had already lost the comment); milestones.yaml keeps the owner's v1.6.0 closing (IssueSpec unquoted the descriptions) + v1.7.0. Tag v1.6.0 not visible here (remote unreachable from the sandbox): git fetch --tags on the Mac.
373 - **2026-11-15 — #116 closed** (owner tested on the Mac); feature/116-mermaid merged into main (not pushed).373 - **2026-11-15 — #116 closed** (owner tested on the Mac); feature/116-mermaid merged into main (not pushed).
374+- **2026-11-15 — #111 composer height** (branch feature/111-composer-height): fit() in a $effect on text + window resize (was only in onInput); composerHeight() in composer.ts with a test; Xvfb: send / ↑ / ↓ resize correctly. Release notes v1.7.0. Not committed; #111 open for the owner's test.
375+- **2026-11-15 — tickets #117** (code of a linked source file not coloured: LinkedFilePanel shows <pre>) **and #118** (↑ recall works with mini-me kept sessions, not other agents; composer history is in-memory per Composer — to reproduce). Owner restated #111 (reset after send) — already what the branch does; likely an old build on the Mac.
376+- **2026-11-15 — #111 closed** (owner); feature/111-composer-height merged into main with tickets #117, #118 (not pushed).
modified .tickets/issues/0111-la-zone-de-saisie-ne-reprend-pas-sa-taille-initi.yaml +28 -5
@@ -1,12 +1,12 @@
11 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
22 id: 111
33 title: "La zone de saisie ne reprend pas sa taille initiale après plusieurs lignes"
4-state: open
4+state: closed
55 author:
66 name: k33g
77 email: ph.charriere@gmail.com
88 createdAt: 2026-11-15T17:22:23.000Z
9-updatedAt: 2026-11-15T17:22:23.000Z
9+updatedAt: 2026-11-15T18:31:21.000Z
1010 labels:
1111 - kind::bug
1212 - area::ui
@@ -30,18 +30,41 @@ body: |
3030 tasks:
3131 - id: 1
3232 title: "Recalculer la hauteur à chaque changement du texte (effet sur text), pas seulement à la frappe"
33- state: open
33+ state: closed
3434 priority: high
3535 author:
3636 name: k33g
3737 email: ph.charriere@gmail.com
3838 createdAt: 2026-11-15T17:22:23.000Z
39+ updatedAt: 2026-11-15T18:08:13.000Z
40+ closedAt: 2026-11-15T18:08:13.000Z
3941 - id: 2
4042 title: "Vérifier : envoi, historique ↑/↓, suggestions, redimensionnement de la fenêtre"
41- state: open
43+ state: closed
4244 priority: medium
4345 author:
4446 name: k33g
4547 email: ph.charriere@gmail.com
4648 createdAt: 2026-11-15T17:22:23.000Z
47-comments: []
49+ updatedAt: 2026-11-15T18:08:13.000Z
50+ closedAt: 2026-11-15T18:08:13.000Z
51+comments:
52+ - id: 1
53+ author:
54+ name: k33g
55+ email: ph.charriere@gmail.com
56+ createdAt: 2026-11-15T18:08:13.000Z
57+ body: |
58+ Fait sur `feature/111-composer-height`. Cause confirmée : la hauteur n'était recalculée que dans `onInput`.
59+ `Composer.svelte` : `fit()` (hauteur `auto`, puis `composerHeight(scrollHeight, innerHeight)` — un tiers de la
60+ fenêtre au plus, règle sortie dans `composer.ts` avec un test) appelé par un `$effect` sur le texte, quelle
61+ que soit la cause du changement (frappe, envoi, ↑/↓, suggestion, fichier inséré), et au redimensionnement de la
62+ fenêtre. Vérifié sous Xvfb : 8 lignes → envoi → taille initiale ; ↑ → 8 lignes ; ↓ → taille initiale. Notes
63+ v1.7.0. Reste : le test de l'owner.
64+ - id: 2
65+ author:
66+ name: k33g
67+ email: ph.charriere@gmail.com
68+ createdAt: 2026-11-15T18:31:21.000Z
69+ body: |
70+ Testé sur le Mac par l'owner : ça fonctionne. Mergé dans main. Ticket fermé.
@@ -1,12 +1,12 @@
1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2 id: 1112 id: 111
3 title: "La zone de saisie ne reprend pas sa taille initiale après plusieurs lignes"3 title: "La zone de saisie ne reprend pas sa taille initiale après plusieurs lignes"
4-state: open4+state: closed
5 author:5 author:
6 name: k33g6 name: k33g
7 email: ph.charriere@gmail.com7 email: ph.charriere@gmail.com
8 createdAt: 2026-11-15T17:22:23.000Z8 createdAt: 2026-11-15T17:22:23.000Z
9-updatedAt: 2026-11-15T17:22:23.000Z9+updatedAt: 2026-11-15T18:31:21.000Z
10 labels:10 labels:
11 - kind::bug11 - kind::bug
12 - area::ui12 - area::ui
@@ -30,18 +30,41 @@ body: |
30 tasks:30 tasks:
31 - id: 131 - id: 1
32 title: "Recalculer la hauteur à chaque changement du texte (effet sur text), pas seulement à la frappe"32 title: "Recalculer la hauteur à chaque changement du texte (effet sur text), pas seulement à la frappe"
33- state: open33+ state: closed
34 priority: high34 priority: high
35 author:35 author:
36 name: k33g36 name: k33g
37 email: ph.charriere@gmail.com37 email: ph.charriere@gmail.com
38 createdAt: 2026-11-15T17:22:23.000Z38 createdAt: 2026-11-15T17:22:23.000Z
39+ updatedAt: 2026-11-15T18:08:13.000Z
40+ closedAt: 2026-11-15T18:08:13.000Z
39 - id: 241 - id: 2
40 title: "Vérifier : envoi, historique ↑/↓, suggestions, redimensionnement de la fenêtre"42 title: "Vérifier : envoi, historique ↑/↓, suggestions, redimensionnement de la fenêtre"
41- state: open43+ state: closed
42 priority: medium44 priority: medium
43 author:45 author:
44 name: k33g46 name: k33g
45 email: ph.charriere@gmail.com47 email: ph.charriere@gmail.com
46 createdAt: 2026-11-15T17:22:23.000Z48 createdAt: 2026-11-15T17:22:23.000Z
47-comments: []49+ updatedAt: 2026-11-15T18:08:13.000Z
50+ closedAt: 2026-11-15T18:08:13.000Z
51+comments:
52+ - id: 1
53+ author:
54+ name: k33g
55+ email: ph.charriere@gmail.com
56+ createdAt: 2026-11-15T18:08:13.000Z
57+ body: |
58+ Fait sur `feature/111-composer-height`. Cause confirmée : la hauteur n'était recalculée que dans `onInput`.
59+ `Composer.svelte` : `fit()` (hauteur `auto`, puis `composerHeight(scrollHeight, innerHeight)` — un tiers de la
60+ fenêtre au plus, règle sortie dans `composer.ts` avec un test) appelé par un `$effect` sur le texte, quelle
61+ que soit la cause du changement (frappe, envoi, ↑/↓, suggestion, fichier inséré), et au redimensionnement de la
62+ fenêtre. Vérifié sous Xvfb : 8 lignes → envoi → taille initiale ; ↑ → 8 lignes ; ↓ → taille initiale. Notes
63+ v1.7.0. Reste : le test de l'owner.
64+ - id: 2
65+ author:
66+ name: k33g
67+ email: ph.charriere@gmail.com
68+ createdAt: 2026-11-15T18:31:21.000Z
69+ body: |
70+ Testé sur le Mac par l'owner : ça fonctionne. Mergé dans main. Ticket fermé.
added .tickets/issues/0117-panneau-d-un-fichier-lie-colorer-le-code-source.yaml +67 -0
new file mode 100644
@@ -0,0 +1,67 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 117
3+title: "Panneau d'un fichier lié : colorer le code source"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T18:23:34.000Z
9+updatedAt: 2026-11-15T18:23:34.000Z
10+labels:
11+ - kind::feature
12+ - area::ui
13+ - citizen-ux
14+milestone: "v1.7.0 · Release"
15+epic: Conversation
16+related:
17+ - 65
18+ - 116
19+body: |
20+ Quand on clique, dans une réponse, sur un lien vers un **fichier de code source** (`main.go`, `app.ts`…), le
21+ panneau qui l'ouvre à côté de la conversation ([#65](.tickets/issues/0065-ouvrir-les-fichiers-lies-par-un-agent-dans-un-pan.yaml)) montre le
22+ code **sans couleurs**. Il faudrait qu'il soit **coloré**, comme dans l'éditeur de l'onglet Fichiers.
23+
24+ ## Ce qui existe
25+ - `frontend/src/lib/agent/LinkedFilePanel.svelte` : Markdown, AsciiDoc, HTML et images passent par `FilePreview` ;
26+ tout autre fichier texte s'affiche en `<pre>{content}</pre>`, brut.
27+ - Deux colorations dans l'interface : **Shiki** pour les blocs de code des réponses (`lib/markdown.ts`, langages
28+ chargés : go, bash, yaml, json, typescript, javascript, python, rust, markdown) et **CodeMirror** dans l'éditeur
29+ (`FileEditor.svelte`).
30+
31+ ## À décider
32+ - Shiki (même rendu que les blocs de code des réponses ; langage d'après l'extension ; ajouter des langages ?) ou
33+ CodeMirror en lecture seule (mêmes couleurs que l'éditeur, numéros de ligne, recherche) — ce dernier semble le
34+ plus cohérent avec l'onglet Fichiers.
35+ - Thème clair / sombre ; un fichier d'extension inconnue reste en texte brut.
36+ - Gros fichiers : rester fluide (limite de taille au-delà de laquelle on n'colore pas ?).
37+
38+ ## Critères d'acceptation
39+ - Un lien vers un fichier de code d'un langage connu ouvre un panneau où le code est coloré, en clair et en sombre.
40+ - Les autres fichiers texte restent lisibles tels quels ; l'aperçu Markdown/AsciiDoc/HTML/images ne change pas.
41+ - Tests vitest (langage d'après l'extension) ; doc EN + FR ; notes de release v1.7.0.
42+tasks:
43+ - id: 1
44+ title: "Choisir la coloration (Shiki ou CodeMirror en lecture seule) et le langage d'après l'extension"
45+ state: open
46+ priority: high
47+ author:
48+ name: k33g
49+ email: ph.charriere@gmail.com
50+ createdAt: 2026-11-15T18:23:34.000Z
51+ - id: 2
52+ title: "Colorer le code dans LinkedFilePanel (thème clair/sombre, gros fichiers)"
53+ state: open
54+ priority: high
55+ author:
56+ name: k33g
57+ email: ph.charriere@gmail.com
58+ createdAt: 2026-11-15T18:23:34.000Z
59+ - id: 3
60+ title: "Tests vitest, doc EN + FR, notes de release v1.7.0"
61+ state: open
62+ priority: medium
63+ author:
64+ name: k33g
65+ email: ph.charriere@gmail.com
66+ createdAt: 2026-11-15T18:23:34.000Z
67+comments: []
new file mode 100644
@@ -0,0 +1,67 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 117
3+title: "Panneau d'un fichier lié : colorer le code source"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T18:23:34.000Z
9+updatedAt: 2026-11-15T18:23:34.000Z
10+labels:
11+ - kind::feature
12+ - area::ui
13+ - citizen-ux
14+milestone: "v1.7.0 · Release"
15+epic: Conversation
16+related:
17+ - 65
18+ - 116
19+body: |
20+ Quand on clique, dans une réponse, sur un lien vers un **fichier de code source** (`main.go`, `app.ts`…), le
21+ panneau qui l'ouvre à côté de la conversation ([#65](.tickets/issues/0065-ouvrir-les-fichiers-lies-par-un-agent-dans-un-pan.yaml)) montre le
22+ code **sans couleurs**. Il faudrait qu'il soit **coloré**, comme dans l'éditeur de l'onglet Fichiers.
23+
24+ ## Ce qui existe
25+ - `frontend/src/lib/agent/LinkedFilePanel.svelte` : Markdown, AsciiDoc, HTML et images passent par `FilePreview` ;
26+ tout autre fichier texte s'affiche en `<pre>{content}</pre>`, brut.
27+ - Deux colorations dans l'interface : **Shiki** pour les blocs de code des réponses (`lib/markdown.ts`, langages
28+ chargés : go, bash, yaml, json, typescript, javascript, python, rust, markdown) et **CodeMirror** dans l'éditeur
29+ (`FileEditor.svelte`).
30+
31+ ## À décider
32+ - Shiki (même rendu que les blocs de code des réponses ; langage d'après l'extension ; ajouter des langages ?) ou
33+ CodeMirror en lecture seule (mêmes couleurs que l'éditeur, numéros de ligne, recherche) — ce dernier semble le
34+ plus cohérent avec l'onglet Fichiers.
35+ - Thème clair / sombre ; un fichier d'extension inconnue reste en texte brut.
36+ - Gros fichiers : rester fluide (limite de taille au-delà de laquelle on n'colore pas ?).
37+
38+ ## Critères d'acceptation
39+ - Un lien vers un fichier de code d'un langage connu ouvre un panneau où le code est coloré, en clair et en sombre.
40+ - Les autres fichiers texte restent lisibles tels quels ; l'aperçu Markdown/AsciiDoc/HTML/images ne change pas.
41+ - Tests vitest (langage d'après l'extension) ; doc EN + FR ; notes de release v1.7.0.
42+tasks:
43+ - id: 1
44+ title: "Choisir la coloration (Shiki ou CodeMirror en lecture seule) et le langage d'après l'extension"
45+ state: open
46+ priority: high
47+ author:
48+ name: k33g
49+ email: ph.charriere@gmail.com
50+ createdAt: 2026-11-15T18:23:34.000Z
51+ - id: 2
52+ title: "Colorer le code dans LinkedFilePanel (thème clair/sombre, gros fichiers)"
53+ state: open
54+ priority: high
55+ author:
56+ name: k33g
57+ email: ph.charriere@gmail.com
58+ createdAt: 2026-11-15T18:23:34.000Z
59+ - id: 3
60+ title: "Tests vitest, doc EN + FR, notes de release v1.7.0"
61+ state: open
62+ priority: medium
63+ author:
64+ name: k33g
65+ email: ph.charriere@gmail.com
66+ createdAt: 2026-11-15T18:23:34.000Z
67+comments: []
added .tickets/issues/0118-rappeler-les-derniers-messages-avec-pour-tous-le.yaml +65 -0
new file mode 100644
@@ -0,0 +1,65 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 118
3+title: "Rappeler les derniers messages avec ↑ pour tous les types d'agents, pas seulement mini-me"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T18:23:34.000Z
9+updatedAt: 2026-11-15T18:23:34.000Z
10+labels:
11+ - kind::bug
12+ - area::ui
13+ - citizen-ux
14+ - real-agents
15+milestone: "v1.7.0 · Release"
16+epic: Conversation
17+related:
18+ - 111
19+body: |
20+ Relevé par l'owner : avec des agents **mini-me** dont on **conserve les sessions**, on peut **rappeler les derniers
21+ prompts** (↑) ; avec les **autres types d'agents** (Claude, Codex, Antigravity, Vibe, Copilot…), ça ne fonctionne pas.
22+
23+ ## Ce que dit le code (à confirmer)
24+ - ↑ / ↓ dans la zone de saisie s'appuient sur `createHistory()` (`frontend/src/lib/composer.ts`), créé par chaque
25+ `Composer` (`chat/Composer.svelte`) : une liste **en mémoire**, remplie seulement par les messages envoyés
26+ depuis ce composant. Elle ne dépend pas du type d'agent, mais elle est perdue quand le composant est recréé
27+ (changement de channel, redémarrage de Sidekicks…).
28+ - Le rappel « qui marche » avec mini-me vient donc peut-être d'ailleurs (sessions mm gardées dans `.mm/sessions`,
29+ commandes de mm, contexte réinjecté…) : à reproduire pour comprendre ce que l'owner voit.
30+
31+ ## Piste
32+ Remplir l'historique de la zone de saisie à partir des **messages de l'utilisateur déjà enregistrés** dans le
33+ channel (Pebble), pour tous les agents : ↑ rappelle les derniers messages envoyés dans ce channel ou cette
34+ conversation, même après un changement de channel ou un redémarrage.
35+
36+ ## Critères d'acceptation
37+ - Dans une conversation ou un channel, ↑ rappelle les derniers messages envoyés, quel que soit le type d'agent,
38+ y compris après être revenu sur le channel ou avoir relancé Sidekicks.
39+ - ↓ revient au brouillon en cours ; pas de doublons consécutifs ; tests vitest ; notes de release v1.7.0.
40+tasks:
41+ - id: 1
42+ title: "Reproduire : mini-me (sessions gardées) contre un agent sbx ; trouver d'où vient le rappel avec mini-me"
43+ state: open
44+ priority: high
45+ author:
46+ name: k33g
47+ email: ph.charriere@gmail.com
48+ createdAt: 2026-11-15T18:23:34.000Z
49+ - id: 2
50+ title: "Historique de la zone de saisie rempli depuis les messages de l'utilisateur enregistrés du channel"
51+ state: open
52+ priority: high
53+ author:
54+ name: k33g
55+ email: ph.charriere@gmail.com
56+ createdAt: 2026-11-15T18:23:34.000Z
57+ - id: 3
58+ title: "Tests vitest, notes de release v1.7.0"
59+ state: open
60+ priority: medium
61+ author:
62+ name: k33g
63+ email: ph.charriere@gmail.com
64+ createdAt: 2026-11-15T18:23:34.000Z
65+comments: []
new file mode 100644
@@ -0,0 +1,65 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 118
3+title: "Rappeler les derniers messages avec ↑ pour tous les types d'agents, pas seulement mini-me"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T18:23:34.000Z
9+updatedAt: 2026-11-15T18:23:34.000Z
10+labels:
11+ - kind::bug
12+ - area::ui
13+ - citizen-ux
14+ - real-agents
15+milestone: "v1.7.0 · Release"
16+epic: Conversation
17+related:
18+ - 111
19+body: |
20+ Relevé par l'owner : avec des agents **mini-me** dont on **conserve les sessions**, on peut **rappeler les derniers
21+ prompts** (↑) ; avec les **autres types d'agents** (Claude, Codex, Antigravity, Vibe, Copilot…), ça ne fonctionne pas.
22+
23+ ## Ce que dit le code (à confirmer)
24+ - ↑ / ↓ dans la zone de saisie s'appuient sur `createHistory()` (`frontend/src/lib/composer.ts`), créé par chaque
25+ `Composer` (`chat/Composer.svelte`) : une liste **en mémoire**, remplie seulement par les messages envoyés
26+ depuis ce composant. Elle ne dépend pas du type d'agent, mais elle est perdue quand le composant est recréé
27+ (changement de channel, redémarrage de Sidekicks…).
28+ - Le rappel « qui marche » avec mini-me vient donc peut-être d'ailleurs (sessions mm gardées dans `.mm/sessions`,
29+ commandes de mm, contexte réinjecté…) : à reproduire pour comprendre ce que l'owner voit.
30+
31+ ## Piste
32+ Remplir l'historique de la zone de saisie à partir des **messages de l'utilisateur déjà enregistrés** dans le
33+ channel (Pebble), pour tous les agents : ↑ rappelle les derniers messages envoyés dans ce channel ou cette
34+ conversation, même après un changement de channel ou un redémarrage.
35+
36+ ## Critères d'acceptation
37+ - Dans une conversation ou un channel, ↑ rappelle les derniers messages envoyés, quel que soit le type d'agent,
38+ y compris après être revenu sur le channel ou avoir relancé Sidekicks.
39+ - ↓ revient au brouillon en cours ; pas de doublons consécutifs ; tests vitest ; notes de release v1.7.0.
40+tasks:
41+ - id: 1
42+ title: "Reproduire : mini-me (sessions gardées) contre un agent sbx ; trouver d'où vient le rappel avec mini-me"
43+ state: open
44+ priority: high
45+ author:
46+ name: k33g
47+ email: ph.charriere@gmail.com
48+ createdAt: 2026-11-15T18:23:34.000Z
49+ - id: 2
50+ title: "Historique de la zone de saisie rempli depuis les messages de l'utilisateur enregistrés du channel"
51+ state: open
52+ priority: high
53+ author:
54+ name: k33g
55+ email: ph.charriere@gmail.com
56+ createdAt: 2026-11-15T18:23:34.000Z
57+ - id: 3
58+ title: "Tests vitest, notes de release v1.7.0"
59+ state: open
60+ priority: medium
61+ author:
62+ name: k33g
63+ email: ph.charriere@gmail.com
64+ createdAt: 2026-11-15T18:23:34.000Z
65+comments: []
modified docs/release-notes/v1.7.0.fr.md +4 -0
@@ -12,3 +12,7 @@ Brouillon — complété au fil des tickets de la 1.7.0.
1212 - Seul l'aperçu dessine les diagrammes : dans une conversation, un bloc mermaid reste du code. Mermaid n'est chargé que quand un document a un diagramme.
1313
1414 → [Les fichiers et le terminal d'un agent](https://rickub.com/bots-garden/sidekicks/blob/v1.7.0/docs/fr/how-to/fichiers-et-terminal-d-un-agent.md)
15+
16+### Petits changements
17+
18+- La zone de saisie grandit avec un long message et reprend maintenant sa taille une fois le message envoyé, ou quand ↑ / ↓ rappellent un message plus court (#111).
@@ -12,3 +12,7 @@ Brouillon — complété au fil des tickets de la 1.7.0.
12 - Seul l'aperçu dessine les diagrammes : dans une conversation, un bloc mermaid reste du code. Mermaid n'est chargé que quand un document a un diagramme.12 - Seul l'aperçu dessine les diagrammes : dans une conversation, un bloc mermaid reste du code. Mermaid n'est chargé que quand un document a un diagramme.
13 13
14 → [Les fichiers et le terminal d'un agent](https://rickub.com/bots-garden/sidekicks/blob/v1.7.0/docs/fr/how-to/fichiers-et-terminal-d-un-agent.md)14 → [Les fichiers et le terminal d'un agent](https://rickub.com/bots-garden/sidekicks/blob/v1.7.0/docs/fr/how-to/fichiers-et-terminal-d-un-agent.md)
15+
16+### Petits changements
17+
18+- La zone de saisie grandit avec un long message et reprend maintenant sa taille une fois le message envoyé, ou quand ↑ / ↓ rappellent un message plus court (#111).
modified docs/release-notes/v1.7.0.md +4 -0
@@ -12,3 +12,7 @@ Draft — completed as the 1.7.0 tickets are done.
1212 - Only the preview draws diagrams: in a conversation, a mermaid block stays code. Mermaid is loaded only when a document has a diagram.
1313
1414 → [Work with an agent's files and terminal](https://rickub.com/bots-garden/sidekicks/blob/v1.7.0/docs/en/how-to/work-with-an-agents-files.md#preview-a-document-or-an-image)
15+
16+### Smaller changes
17+
18+- The message box grows with a long message and now shrinks back once it is sent, or when ↑ / ↓ bring back a shorter message (#111).
@@ -12,3 +12,7 @@ Draft — completed as the 1.7.0 tickets are done.
12 - Only the preview draws diagrams: in a conversation, a mermaid block stays code. Mermaid is loaded only when a document has a diagram.12 - Only the preview draws diagrams: in a conversation, a mermaid block stays code. Mermaid is loaded only when a document has a diagram.
13 13
14 → [Work with an agent's files and terminal](https://rickub.com/bots-garden/sidekicks/blob/v1.7.0/docs/en/how-to/work-with-an-agents-files.md#preview-a-document-or-an-image)14 → [Work with an agent's files and terminal](https://rickub.com/bots-garden/sidekicks/blob/v1.7.0/docs/en/how-to/work-with-an-agents-files.md#preview-a-document-or-an-image)
15+
16+### Smaller changes
17+
18+- The message box grows with a long message and now shrinks back once it is sent, or when ↑ / ↓ bring back a shorter message (#111).
modified frontend/src/lib/chat/Composer.svelte +17 -4
@@ -2,7 +2,7 @@
22 <script lang="ts">
33 import { untrack } from 'svelte'
44 import { t } from '../i18n/index.svelte'
5- import { completeTrigger, createHistory, findTrigger, insertAt, type Trigger } from '../composer'
5+ import { completeTrigger, composerHeight, createHistory, findTrigger, insertAt, type Trigger } from '../composer'
66 import type { Suggestion, Suggestions } from '../suggestions'
77 import AgentAvatar from '../agent/AgentAvatar.svelte'
88
@@ -131,10 +131,21 @@
131131 }
132132 }
133133
134- function onInput() {
135- // Grow with the text, up to a third of the window.
134+ // Grow with the text, up to a third of the window — and shrink back
135+ // (issue #111). Whatever changed the text: typing, but also sending (the
136+ // text is emptied), ↑/↓ in the history, a suggestion, a joined file; and
137+ // when the window is resized. Measured from "auto" so that it can shrink.
138+ function fit() {
139+ if (!textarea) return
136140 textarea.style.height = 'auto'
137- textarea.style.height = Math.min(textarea.scrollHeight, window.innerHeight / 3) + 'px'
141+ textarea.style.height = composerHeight(textarea.scrollHeight, window.innerHeight) + 'px'
142+ }
143+ $effect(() => {
144+ void text
145+ fit()
146+ })
147+
148+ function onInput() {
138149 updatePopup()
139150 }
140151
@@ -160,6 +171,8 @@
160171 }
161172 </script>
162173
174+<svelte:window onresize={fit} />
175+
163176 <div class="composer" id={dropTarget} data-file-drop-target={dropTarget ? '' : undefined}>
164177 {#if suggestions}
165178 <div class="popup" role="listbox" aria-label={t('composer.suggestions')}>
@@ -2,7 +2,7 @@
2 <script lang="ts">2 <script lang="ts">
3 import { untrack } from 'svelte'3 import { untrack } from 'svelte'
4 import { t } from '../i18n/index.svelte'4 import { t } from '../i18n/index.svelte'
5- import { completeTrigger, createHistory, findTrigger, insertAt, type Trigger } from '../composer'5+ import { completeTrigger, composerHeight, createHistory, findTrigger, insertAt, type Trigger } from '../composer'
6 import type { Suggestion, Suggestions } from '../suggestions'6 import type { Suggestion, Suggestions } from '../suggestions'
7 import AgentAvatar from '../agent/AgentAvatar.svelte'7 import AgentAvatar from '../agent/AgentAvatar.svelte'
8 8
@@ -131,10 +131,21 @@
131 }131 }
132 }132 }
133 133
134- function onInput() {134+ // Grow with the text, up to a third of the window — and shrink back
135- // Grow with the text, up to a third of the window.135+ // (issue #111). Whatever changed the text: typing, but also sending (the
136+ // text is emptied), ↑/↓ in the history, a suggestion, a joined file; and
137+ // when the window is resized. Measured from "auto" so that it can shrink.
138+ function fit() {
139+ if (!textarea) return
136 textarea.style.height = 'auto'140 textarea.style.height = 'auto'
137- textarea.style.height = Math.min(textarea.scrollHeight, window.innerHeight / 3) + 'px'141+ textarea.style.height = composerHeight(textarea.scrollHeight, window.innerHeight) + 'px'
142+ }
143+ $effect(() => {
144+ void text
145+ fit()
146+ })
147+
148+ function onInput() {
138 updatePopup()149 updatePopup()
139 }150 }
140 151
@@ -160,6 +171,8 @@
160 }171 }
161 </script>172 </script>
162 173
174+<svelte:window onresize={fit} />
175+
163 <div class="composer" id={dropTarget} data-file-drop-target={dropTarget ? '' : undefined}>176 <div class="composer" id={dropTarget} data-file-drop-target={dropTarget ? '' : undefined}>
164 {#if suggestions}177 {#if suggestions}
165 <div class="popup" role="listbox" aria-label={t('composer.suggestions')}>178 <div class="popup" role="listbox" aria-label={t('composer.suggestions')}>
modified frontend/src/lib/composer.test.ts +9 -1
@@ -1,7 +1,7 @@
11 // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
22
33 import { describe, expect, it } from 'vitest'
4-import { completeTrigger, createDrafts, createHistory, findTrigger, isNearBottom } from './composer'
4+import { completeTrigger, createDrafts, createHistory, findTrigger, isNearBottom, composerHeight } from './composer'
55
66 describe('findTrigger', () => {
77 it('finds a trigger at the start or after a space', () => {
@@ -62,3 +62,11 @@ describe('drafts', () => {
6262 expect(drafts.of('c2')).toBe('other')
6363 })
6464 })
65+
66+describe('composerHeight (issue #111)', () => {
67+ it('follows the text, up to a third of the window', () => {
68+ expect(composerHeight(48, 900)).toBe(48)
69+ expect(composerHeight(2000, 900)).toBe(300)
70+ })
71+})
72+
@@ -1,7 +1,7 @@
1 // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE1 // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
2 2
3 import { describe, expect, it } from 'vitest'3 import { describe, expect, it } from 'vitest'
4-import { completeTrigger, createDrafts, createHistory, findTrigger, isNearBottom } from './composer'4+import { completeTrigger, createDrafts, createHistory, findTrigger, isNearBottom, composerHeight } from './composer'
5 5
6 describe('findTrigger', () => {6 describe('findTrigger', () => {
7 it('finds a trigger at the start or after a space', () => {7 it('finds a trigger at the start or after a space', () => {
@@ -62,3 +62,11 @@ describe('drafts', () => {
62 expect(drafts.of('c2')).toBe('other')62 expect(drafts.of('c2')).toBe('other')
63 })63 })
64 })64 })
65+
66+describe('composerHeight (issue #111)', () => {
67+ it('follows the text, up to a third of the window', () => {
68+ expect(composerHeight(48, 900)).toBe(48)
69+ expect(composerHeight(2000, 900)).toBe(300)
70+ })
71+})
72+
modified frontend/src/lib/composer.ts +14 -0
@@ -111,3 +111,17 @@ export function createDrafts() {
111111
112112 /** The drafts of every conversation of the window. */
113113 export const drafts = createDrafts()
114+
115+/**
116+ * The height of the composer for a text of contentHeight pixels (the
117+ * textarea's scrollHeight once its height is "auto"): as tall as the text,
118+ * up to a third of the window (issue #111).
119+ *
120+ * @example
121+ * composerHeight(48, 900) // 48
122+ * composerHeight(2000, 900) // 300
123+ */
124+export function composerHeight(contentHeight: number, windowHeight: number): number {
125+ return Math.min(contentHeight, windowHeight / 3)
126+}
127+
@@ -111,3 +111,17 @@ export function createDrafts() {
111 111
112 /** The drafts of every conversation of the window. */112 /** The drafts of every conversation of the window. */
113 export const drafts = createDrafts()113 export const drafts = createDrafts()
114+
115+/**
116+ * The height of the composer for a text of contentHeight pixels (the
117+ * textarea's scrollHeight once its height is "auto"): as tall as the text,
118+ * up to a third of the window (issue #111).
119+ *
120+ * @example
121+ * composerHeight(48, 900) // 48
122+ * composerHeight(2000, 900) // 300
123+ */
124+export function composerHeight(contentHeight: number, windowHeight: number): number {
125+ return Math.min(contentHeight, windowHeight / 3)
126+}
127+