Commit Graph
144 Commits
Author SHA1 Message Date
Manos GeorgoudakisandClaude Opus 5.5 f23a015503 Windows and Linux: the open Coucou window no longer keeps a CPU core busy (#792) (#1149)
With the Coucou window open, one WebKitWebProcess stayed at about 100 % of a
core on Linux (KDE Plasma 5.27, X11, WebKitGTK 2.52.6), focused or not.

Measured per canvas, almost all of it was the sleeping Mochi of an empty
page (the Dictation page's empty history, shown at every launch until you
dictate): 60-75 ms a frame, growing over time, for a 64x64 canvas. Its z's
grow as they rise, so each frame set `ctx.font` to a new fractional size,
and WebKitGTK resolved and cached a new font every time. The z is now drawn
at one font size (32 px) and scaled: 0.3 ms a frame.

The window's canvases are also drawn at 30 frames a second with the focus
and 10 behind other windows, instead of 60: WebKitGTK paints and composites
each changed canvas in software, which cost about half a core at 60 even
with the font fixed. Mochi's engine is stepped in pieces of at most 1/30 s,
since its mouth spring is unstable above 0.08 s per step.

CPU of the whole app with the window open (Ubuntu 24.04, X11, RTX 2060):
  0.5.9:                   ~100 % focused, ~100 % behind other windows
  font fix only (60 fps):    49 %            46 %
  font fix + 30/10 fps:      24 %            10 %

Nothing looks different apart from the frame rate.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:22:28 +00:00
Rolle Laukkarinen 9998b51ee8 Type into the chat right after its shortcut (#1109) 2026-12-03 21:22:24 +00:00
ce17 53a8fee6ac Windows and Linux: WhatsApp messages show their time (#1031)
Each bubble in an open conversation gets its hour underneath, small and
dim on the right like WhatsApp: the hour for today, the day and the hour
before that ("Oct 31 14:05"), in the app's language.
2026-12-03 21:22:20 +00:00
LouisandClaude d202f8b24d Windows and Linux: the Mac now has 7 strings extra.json had; German says Erlauben like the Mac (#1292)
Made again from the Mac's catalog, strings.json now holds Details, Error, Questions, Off,
Microphone, not installed and Send Mochi to the desktop: their copies in extra.json go (the
test says extra.json never shadows the Mac), and Allow reads "Erlauben" in German, the Mac's word.


Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-03 21:01:25 +00:00
Claude 86423b4686 Nine new outfits for the ready-made Mochis
Headlamp, hard hat, monocle, knight helm, deerstalker, captain hat, headset,
aviator cap and straw hat (stored as gardenHat: strawHat was a removed Mac
value). Drawn in code on Mac and Windows, named in every language, in the
wardrobe for everyone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-29 17:03:17 +00:00
Rhytam BiswasandClaude Opus 5.5 a34a8febd3 Merge Louis-CFM/coucou main into feat/android-0.6.0
Conflicts: README.md (the Android Versions rows from #1098 next to the
0.6.0 row) and android/i18n/REVIEW.md (regenerated with gen-strings
--review). All generated strings files regenerated; --check passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:02:52 +05:30
Claude 6c7649a3fb Windows and Linux: let a paired phone start a Claude Code session (off by default)
Settings > Android phone > "Let the phone start Claude Code sessions",
off by default and owned by Rust like the other phone switches. With it
on, a phone that asks for the new `launch` capability is told the
island's projects (folder names and opaque ids, never a path) and may
ask for a session in one of them with a prompt.

There is no second launcher: the request ends in launch::launch_session,
the function behind the island's own card, so the prompt is handed over
the same way and is never written into a command line. The phone cannot
name a folder, a command or an option; the switch is read again for
every request; starts are rate limited; the prompt is not logged.

An older phone never asks for `launch` and is sent nothing new; to a
phone that did not negotiate it, the message is an unknown type.

Tests through the real TLS server in phone_link/tests.rs (mod launch).
See docs/ANDROID_0_6_PLAN.md; the design is still to be reviewed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EMLAfnxNRTcLp4GtHWhuKm
2026-11-14 06:11:06 +00:00
Ohualtex 7eb42d79d1 fix(windows): populate n8n card on initial load and emit execution updates (#1093) 2026-11-13 17:06:54 +03:00
Claude 6bc221c782 Windows and Linux: show the relay settings to testers
The "Away from home Wi-Fi" block stays hidden until a relay is ready for everyone, but now shows when Coucou starts with
COUCOU_RELAY_SETTINGS=1, or when a relay is already on. Without it, nobody could reach a relay, so the Android 0.5 relay
fixes (#19, #30 on Rhytam23/coucou) could not be tested. Nothing changes for other users.

- phone_relay_status carries `shown`; Settings → Android phone inserts the block only when it is set.
- docs/RELAY_DEPLOY.md says how to start Coucou with the variable; CHANGELOG notes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-12 22:46:34 +01:00
Claude e693a8121d Windows and Linux: start a Claude Code session from the island, drop a file on a session (port of the Mac's)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-06 14:04:19 +01:00
Claude 497c7ea075 Windows/Linux: start a Claude Code session from the island, drop a file on a session
Ports of the Mac's LaunchScript/SessionLauncher and SessionDrop.

New Claude Code session: a terminal tab in the island's header opens a card
(Mochi on the left, the project, "What should Claude do?", the send arrow).
The projects are the folders Claude Code sessions ran in (from SessionStart
and UserPromptSubmit), most recent first, ten at most, never a home folder
or a root, kept in the webview's storage; "Choose a folder…" is the system
picker (IFileOpenDialog on Windows, zenity or kdialog on Linux). Rust opens
the terminal in the folder running claude with the prompt, never spliced
into a command line:
- Linux: $TERMINAL, x-terminal-emulator, gnome-terminal, ptyxis, konsole,
  kitty, alacritty, wezterm, foot, xterm, running
  $SHELL -lic 'claude "$COUCOU_PROMPT"; exec $SHELL -l' with COUCOU_PROMPT
  set on the terminal's process.
- Windows: Windows Terminal (wt.exe -d <folder> pwsh|powershell ...), else
  PowerShell in a new console. wt.exe's tabs don't get its environment
  (microsoft/terminal#11094), so the prompt goes into a temp file of ours
  that PowerShell reads into $env:COUCOU_PROMPT and deletes; claude is taken
  with Get-Command -CommandType Application (never npm's claude.ps1).

Drop on a session: while a file is over the drop card, up to three sessions
are listed on its right ("Or into a session"). Letting go over one folds the
island, brings that session's window forward (the "Open terminal" lookup)
and pastes the path(s) with Flow's paste, escaped as a terminal drag writes
them, then a space (Ctrl+V on Windows, Ctrl+Shift+V on Linux). When the
window can't be found the text is copied and a note says so. Elsewhere on
the card the drop works as before. Hit-testing uses the Win32 cursor poll on
Windows and the drag events' position on Linux.

The command lines are pure, unit-tested Rust (launch.rs); the card logic,
the remembered projects and the drop hit-testing have TS tests. The
Windows-only parts (wt/PowerShell spawn, IFileOpenDialog) could not be
compiled here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-06 14:04:00 +01:00
Claude 5461634c49 Windows and Linux: approve Antigravity commands from the island
Port of the Mac's "Approve commands from the notch" (#934). Antigravity has
no permission request: it runs PreToolUse before its own permission check and
waits for the hook's decision. With Settings → Agents → Antigravity →
Approve commands from the notch (off by default, shown once the hooks are
installed), a run_command that none of Antigravity's command(...) rules
covers waits on the island's card: Allow prints {"decision":"allow"}, Deny
{"decision":"deny","reason":"Denied from Coucou"}, and Reply in terminal, no
click, a full card or Coucou closed print {"decision":"ask"}. Coucou never
allows a command without a click.

- agy_rules.rs: AgyPermissionRules.swift in Rust (CLI settings, global
  grants, the session's project or "outside of project"), with the Swift
  tests plus Windows folder URIs and paths.
- agy_approvals.rs: the gate (setting, run_command, hooks.json timeout >=
  120 s, rules verdict unknown, wait min(timeout - 10, 110) s) and the
  setting's commands, owned by Rust like the phone switches.
- Relay: Antigravity's PreToolUse is tagged coucou_kind agy_pre_tool and
  reads one line: "ask" at once, or "pending" then allow / deny / ask. 3 s
  for the first line, 115 s once pending. A command longer than what the
  relay forwards is flagged and gets no card.
- App (pipe.rs): the event goes to the island as usual, then the card as a
  PermissionRequest; "pending" once the island acks it.
- PreToolUse hook installed with a 120 s timeout; Settings shows the Mac's
  "install again" hint for hooks written with 10 s.
- Card: Deny, Allow and Reply in terminal for Antigravity only. Mac strings
  reused (all already in strings.json), no extra.json entries needed.
- CHANGELOG, windows/README.md, docs/AGENTS.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-06 13:13:25 +01:00
Claude 5ab86b989f Merge #735: fix(windows): task notifications no longer show as the session's prompt (arnavaggarwal-dev)
# Conflicts:
#	windows/src/island/hooks.ts
2026-11-06 12:54:28 +01:00
Claude 56a4f76dba 0.6: small fixes on merged pull requests
- #991 compiles (var task) and the Hermes plugin keeps the terminal's own bundle id.
- #1022 keeps one renderer per window (a crash no longer takes all four).
- #1038 cuts a long PDF's text on a character boundary; its timer-only test goes.
- #1062 runs herdr only from a path to a program named herdr.
- #1055 Coucoudoro: one timer at the phase's deadline instead of a half-second tick.
- #952 "As heard" in the 16 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-06 12:54:08 +01:00
Claude 78088eab0a Merge #1038: fix(chat): support PDF text extraction for Google AI and resolve drag exit freeze (#608) (Ohualtex) 2026-11-06 12:52:53 +01:00
Claude 0530896766 0.6: fix the build after the merges
- DictationLanguageMenu is shared with the new-session card.
- The Rust approvals test lists OpenCode (#442).
- The notes export test (#1007) stubs window listeners, which the Coucou
  window's hero now adds.
- strings.json regenerated from the Mac catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-06 12:52:33 +01:00
Claude c8732ef1b0 Merge #1007: Windows: choose the destination for Markdown note exports (lazarevtill) 2026-11-06 12:44:09 +01:00
Claude e1e6f5cd5d Merge #1006: Windows/Linux: show Cal.com booking details with bounded pagination (lazarevtill) 2026-11-06 12:44:08 +01:00
Claude 08440be572 Merge #587: Leave the finished card when a new prompt comes (rollecode) 2026-11-06 12:44:04 +01:00
Claude 0846003009 Merge #442: answer OpenCode permission requests from the island on Windows and Linux (ValentinoMartz)
Kept Claude Desktop in the agents that take decisions, which main added since.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-06 12:42:51 +01:00
Claude 79f88c0370 Merge remote-tracking branch 'pr/740' into release-0.6 2026-11-06 12:40:15 +01:00
Claude c5a1105e57 Windows and Linux: dictate with the left keys, or a shortcut of your own
The dictation key could only be Right Ctrl, Right Alt, Right Shift or
Ctrl + Win. Left Ctrl, Left Alt and Left Shift join them, and "A shortcut
of your own…" records any keys held together (Alt + Shift + F, F9…, up to
four): press them in Settings, let go, they are kept.

Underneath, every choice is now a list of keys (KeyboardEvent.code names,
mapped to virtual keys on Windows and keysyms on X11) watched by the same
combo logic. On Windows a shortcut's own letter is kept from the app in
front while the keys are held, and a held Alt or Win is masked so letting
go opens no menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-03 00:37:01 +01:00
Claude da04f8ed71 Windows and Linux: the closed island only peeks; Open on hover waits for the pointer to rest
Hovering the closed island went straight to the open island when Open on
hover was on. A PC has no notch, so the pointer crosses the closed island
far more often than a Mac's notch: it now always brings the compact island
first, and Open on hover opens it once the pointer rests on it for half a
second. Passing over it opens nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-03 00:02:15 +01:00
Claude 2ab4217868 Windows and Linux: the closed island stays on screen, with Mochi or the time; ✕ folds the open island
A PC has no notch, so a closed island used to shrink to an invisible 6 px
strip at the top of the screen, and when that strip failed the island was
gone for good. It now keeps a small black island there while Coucou runs,
as a Mac does on a screen without a notch: Mochi in it (the default), or
the time, the date and the time, the Claude plan's usage, what's playing,
or nothing. Settings → General → Closed island shows; Hide the island
keeps the old strip. Hovering it brings the compact island back, and the
folded window is exactly its size, so nothing polls the cursor.

The open island gets the Mac's ✕ to fold it at once, the header uses the
Mac's line icons at the Mac's size, and the card's ↗ is readable again.
The cursor poll stops telling the page about a cursor far from the island.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-02 20:55:24 +01:00
ARNAV AGGARWAL abcebb1c0f feat(windows): drop a permission card answered in the terminal
- The app watches the relay's connection while a card is up: when Claude
  Code ends the relay because the prompt was answered in the terminal or
  the Claude app, the island gets hook-resolved and the card goes at once.
- The card also goes when the very tool call it asked about runs.
- coucou-hook notices when the shell that ran it (Git Bash, cmd) is gone
  and exits, so an orphaned relay no longer keeps the card up.
2026-11-02 12:20:16 +08:00
ARNAV AGGARWAL e62b0e1ad0 fix(windows): task notifications no longer show as the session's prompt
Claude Code also submits text the user never typed: a background task's
<task-notification>, system reminders, slash-command echoes. The session's
step line showed them as raw tags. promptStep now shows a notification's
summary, a command's name, or the prompt with its tags removed.
2026-11-02 12:11:08 +08:00
Anatoly Lazarev 3b8752d5f6 Fit the island's Cal.com month view in its card and scroll the weeks
The month's navigation, weekday names and Open Cal.com action now stay inside the island card while only the weeks scroll, using the Mac's 18 px day rows so two weeks and the top of the third show at once. The day and booking views scroll their calls and details the same way, and the fixed 220 px height that was taller than the card is gone.
2026-11-02 03:17:00 +01:00
Ohualtex 99eafaf5bd fix(chat): support PDF text extraction for Google AI and resolve drag exit freeze (#608) 2026-11-01 22:35:28 +03:00
Anatoly Lazarev 852af5e594 Merge current upstream main 2026-10-31 21:02:24 +01:00
Anatoly Lazarev 85d40ef9d2 Merge current upstream main 2026-10-31 21:02:24 +01:00
Claude b6a85f2971 Merge #1003: Windows and Linux: Flow keeps your edits and history when a save fails (lazarevtill)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

# Conflicts:
#	CLAUDE.md
#	windows/src/hub/pages/dictation.ts
#	windows/src/hub/pages/flowsettings.ts
2026-10-31 17:30:34 +01:00
Claude 6f434da51d Merge #1000: Windows and Linux: discover Claude API models and keep the saved choice (lazarevtill)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 17:27:06 +01:00
Claude 947fddcbde Merge #705: The sidebar follows the language (Windows and Linux) (Ohualtex)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 03:15:19 +01:00
Claude da85ceb3de Merge #979: Windows and Linux: plan usage in the compact island (Ohualtex)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

# Conflicts:
#	windows/src/i18n/extra.json
2026-10-31 03:15:12 +01:00
Claude d796abcc1e Merge #976: Windows and Linux: alerts from every pill (Ohualtex)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 03:15:04 +01:00
Claude daebec8392 Merge #984: Windows and Linux: permission requests wait their turn (Ohualtex)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 03:15:04 +01:00
Claude 2a3223381b Merge #441: Windows: Claude Desktop approval and question cards (Ohualtex)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 03:15:04 +01:00
Claude 3881122387 Merge #975: Linux: Claude Desktop pill (Ohualtex)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 03:15:04 +01:00
Claude a356780050 fix(island): queued requests stay out of sight until their turn
Follow-up to the approval queue:
- a request that waits in line no longer switches the island to its view
  (a queued question turned the approval card into a question view) and no
  longer plays its sound twice; its pill gets the approval badge instead;
- every request gives up on its own 110 s clock, checked by id: the first
  card's timer could drop the request promoted after it;
- a turn that ends releases its requests still in line at once, before the
  card goes, so a moot request never takes the card;
- the next request comes up through island.alert, like a new one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 03:06:37 +01:00
Claude 100bf53302 test(windows): fake DOM detaches removed children and has prepend
On main the pill re-attaches its capsule only when it has no parent, and
puts its bubble first with prepend (#760). The fake DOM left parentNode set
after replaceChildren/removeChild and had no prepend, so #699's pill tests
failed against main although a real DOM behaves as the page expects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 03:05:48 +01:00
Claude 8f206414f4 Merge origin/main into the hub language fix (#705)
Resolves the conflict with the settings search (#996): the sidebar groups
now live in their own container, the Mail group is kept, and the hub tests
give the search field an empty value, since the fake DOM keeps none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 03:03:23 +01:00
Claude 10dc74accf Merge origin/main (0.5.7) into fix-pr699
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 03:03:20 +01:00
Claude c68a39ee6b fix(island): give the borrowed front back when the island closes
As on the Mac, the pill that was shown comes back when the island closes
(any close, not only the collapse button). The 5.2 s return to idle no
longer swaps the pill under an open island, where the finished card would
then have named the wrong pill; an agent pill about to be removed still
hands the front back at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 03:00:01 +01:00
Claude e224036d49 Merge origin/main (0.5.7) into fix-pr975
pills.test.mjs: Claude Desktop now on Linux too, Mail still Windows only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-31 02:57:28 +01:00
Anatoly Lazarev 7d2c79ada8 Use native Save As for Windows note exports 2026-10-30 18:58:50 +01:00
Anatoly Lazarev 0c36e643dc Add Cal.com booking details with bounded cursor pagination 2026-10-30 18:50:46 +01:00
Anatoly Lazarev bb7ee21d73 Preserve Flow drafts and history when disk writes fail 2026-10-30 18:44:31 +01:00
Ohualtex 074ce9babb feat(windows): settings search in the Coucou window (#996)
Port the Coucou window settings search to Windows and Linux:
- Add search box beneath brand header in the sidebar with query normalization and keyboard navigation (Enter opens first match, Escape clears)
- Implement pure SettingsSearchMatch algorithm and index in search.ts matching SettingsSearch.swift
- Add data-anchor hooks and smooth scroll with glow animation across Flow and Mail pages
- Add unit tests verifying words normalization, match parity, and section lookups
2026-10-30 20:37:09 +03:00
Anatoly Lazarev 37adcc3c0d Discover Claude API models and preserve the saved selection 2026-10-30 18:33:27 +01:00
Claude 19d79f40d4 Mail on Windows: classic Outlook, the Mail section and the chat's mail plans
The Mail pill (Windows only) reads the classic Outlook already open, through
its COM objects in a small PowerShell script: no sign-in, no app registration,
no admin consent; Coucou never starts Outlook. Same features as the Mac:
search and quick filters, actions on a message, the Mail section (automatic
sorting, rules, banned words, VIPs, journal with Undo, what Coucou sent), and
the chat's Mail switch with plans that run only after Run (mail merge: the PDF
is cut with lopdf and each page goes to its recipient).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-30 15:52:55 +01:00