Repository navigation
fix(floating-mascot) : la grappe reste hors du Dock et de la barre des tâches - #448
Merged
Merged
Conversation
Sleep (every character, crab first): - sleep.ts mascotAsleep: the nap or the brain's sleep pose while resting (never dragged, walking or flying); the stage carries data-asleep. - Shared layer: dimmed character, bold outlined floating "z Z" beside the head; reduced motion shows a static "z Z" and keeps the closed eyes. - Crab: new "asleep" face (closed eyes as a 4x1 dash, never blinked away), sleep move breathes one whole cell over 4.2 s; CSS avatars match. Floating cluster: - The page reports the pill (quick input or call) with the character's box (setBody(rect, keep)); main keeps their union inside the display workArea on drag steps, drag end, pill open, display-added/removed/ metrics-changed and on show (Dock bottom/left/right, auto-hide, taskbar). - pillSide: the pill goes over the head when the Dock is right under the feet, the reply bubble stacked above it. - Positions also kept per display (display:<frame>, with t) beside the per-setup entry (unchanged shape, older builds still read it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep the floating-mascot dock work current with main before splitting sleep out. Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
PR #448 keeps the cluster off the Dock and the taskbar. Unmistakable sleep moves to cursor/floating-mascot-sleep-ff5b. Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
Per-display spots go in floating-bot-display-spots.json, keyed by id@origin so a scale or resolution change still finds them. The setups file stays at 32 keys, the shape an older slice(0, 32) still reads. A mixed display: key is purged on load. When the cluster does not fit the work area, the character stays inside. Linux uses workArea and stays clickable.
4 of 5 tasks
jencryzthers
marked this pull request as ready for review
October 14, 2026 12:23
cursor Bot
pushed a commit
that referenced
this pull request
Oct 14, 2026
Keep both the dock cluster placement from #448 and the sleep glyphs.
jencryzthers
added a commit
that referenced
this pull request
Oct 14, 2026
Sleep (every character, crab first): - sleep.ts mascotAsleep: the nap or the brain's sleep pose while resting (never dragged, walking or flying); the stage carries data-asleep. - Shared layer: dimmed character, bold outlined floating "z Z" beside the head; reduced motion shows a static "z Z" and keeps the closed eyes. - Crab: new "asleep" face (closed eyes as a 4x1 dash, never blinked away), sleep move breathes one whole cell over 4.2 s; CSS avatars match. Placement off the Dock lives on fix/floating-mascot-dock (PR #448). Co-authored-by: Cursor Agent <cursoragent@users.noreply.github.com>
jencryzthers
added a commit
that referenced
this pull request
Oct 14, 2026
## Quoi Bump de version, comme #421 pour 0.5.1 : - `package.json` : `forkVersion` 0.5.2 - `ios/project.yml` : `MARKETING_VERSION` 0.5.2 (même version que le desktop), `CURRENT_PROJECT_VERSION` 30, sur les quatre cibles - `docs/releases/0.5.2.md` : notes complètes FR et EN (affichées dans l'app avant et après la mise à jour), qui complètent celles de #458 avec tout ce qui est entré depuis 0.5.1 : voix (#427, #435, #422/#424, #450, #451, #458), démarrage serveur (#433, #460), approbations (#455), modèles (#462, #466), sandboxes Kubernetes (#463, #465), image Docker (#436, #444, #456), sécurité (#445), interface (#423, #425, #448, #454, #461) - `src/lib/bundled-release-notes.test.ts` : vérifie les nouvelles entrées NE PAS fusionner sans le GO de JC : la fusion sur main (changement de `package.json`) lance `release.yml`. ## Prérequis avant la release - Créer le secret de dépôt `TRIVYIGNORE_PRIVATE` (#456) : absent ou vide, `docker.yml` échoue fermé sur le tag. ## Tests locaux (candidat, Node 26.11, macOS) - `pnpm test:unit` : 8 shards, 1474 fichiers, exit 0 - `pnpm exec vitest run src/lib/bundled-release-notes.test.ts` : exit 0 - `pnpm test:shards` (tous les groupes) lancé avant #466 : exit 1. Les échecs déterministes sont corrigés par #466 ; restent des e2e qui passent seuls (charge des 8 shards) et `server/codex-review.e2e.test.ts`, qui échoue sur ce Mac aussi au tag `pulsa-v0.5.1` (Node 24 et 26). - Tests Swift non lancés. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Jean-Christophe Proulx <jencryzthers@Jean-Christophes-Macbook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corps réécrit (le champ Description de la PR n’est pas remplaçable ici). Le sommeil est dans #454.
Résumé
La mascotte flottante, et la pastille qui pend à ses pieds (saisie rapide ou appel), restent dans la zone de travail de l’écran : jamais sous le Dock macOS (bas, gauche, droite, masquage automatique), jamais sous la barre des tâches Windows, jamais sous un panneau Linux qu’Electron reporte dans
workArea.Le sommeil de la mascotte n’est plus dans cette PR. Il est dans #454
Comportement
keep). Le processus principal garde leur union dansworkArea, pas dansbounds, à chaque pas du glisser, à la fin du glisser, à l’ouverture de la pastille, au branchement ou au redimensionnement d’un écran, et à l’affichage.pillSide).Compatibilité ascendante
Les places par configuration d’écrans restent dans
floating-bot-positions.json, 32 clés, le même{x, y, v: 2}qu’une ancienne version lit avecslice(0, 32).Les places par écran vont dans un autre fichier,
floating-bot-display-spots.json, 64 clés. On ne mélange pas dedisplay:…dans la table des configurations, et on ne monte pas le plafond de 32 à 64 : une ancienne version qui litslice(0, 32)verrait autrement lesdisplay:…à la place des vraies configurations.Au chargement, une clé
display:…laissée dans l’ancien fichier mixte est extraite, recopiée dans la table d’écrans, puis purgée.La clé d’écran est
id@origine(DIP), sans largeur, sans hauteur, sans facteur d’échelle. Un changement de résolution ou d’échelle sur le même écran retrouve la place ; le coin est ensuite recalé dans la nouvelle zone de travail.Linux
Même pince sur
workArea. Le clic traverse reste éteint (un compositeur Linux ne transmet pas les mouvements du pointeur à travers une fenêtre ignorée).Si le gestionnaire de fenêtres reporte
workArea === bounds(aucun retrait pour le panneau), on pince au cadre entier : le panneau n’est alors pas évité, parce qu’Electron ne le nomme pas. C’est le même contrat que pour un Dock en masquage automatique dont la zone de travail remplit presque le cadre.Preuve
Les tests de cette PR, posés sur
origin/main(e36f6f6f5, sansclampClusterToDisplays/pillSide/ purgedisplay:) :Bloc Rouge 1 — grappe
Bloc Rouge 2 — pastille + table des positions
Vert
Commande, ici, après les correctifs :
Résultat :
Tests ajoutés ou resserrés (tous verts dans la même passe) :
when the mascot and its pill do not fit the work area, keeps the character insidewhen the mascot and its pill overflow the work area, the character stays insidekeeps the identity across a scale or resolution changeafter a scale or resolution change, restores the display spot and clamps it to the new work areaune ancienne version relit une table pleinemixing display: keys into the setups table would starve an older slice(0, 32) readerpurges mixed display: keys on load and maps a leaked frame onto today's identityLinux > stays clickable (no click-through) and keeps the cluster above a panel in workAreaLinux > when the compositor reports workArea equal to bounds, clamps to that full framethe input pill around the Dock and the taskbar(placement)pnpm lint,pnpm typechecketpnpm i18n:checkont passé augit push(crochet pre-push).Pas de captures macOS/Windows d’un Electron réel dans cet environnement : le banc ci-dessus pince
workArea(Dock, barre, panneau) sans lancer l’appli.Checklist
pnpm typecheckpasse (crochet pre-push)pnpm testcomplet (suite ~45 min, volontairement hors du crochet)dist-server/