docs: record v1 lessons and open items in the project mind #4
@@ -2,5 +2,12 @@
|
||||
|
||||
- [2026-10-14] `claude -p "/usage"` writes a transcript into the working directory's project folder unless `--no-session-persistence` is passed; that transcript would show up in Claude token history.
|
||||
- [2026-10-14] Git Bash rewrites an argument that starts with `/` (`/usage` becomes `C:/Program Files/Git/usage`). Run CLI probes from PowerShell, or set `MSYS_NO_PATHCONV=1`. The app itself starts processes with an argument list, so it is not affected.
|
||||
- [2026-10-14] A GUI-subsystem host (`WinExe`) has no console and no console code page, so .NET decoded child output with code page 0 and Claude's `·` separators broke the `/usage` parser: Claude was "unavailable" in the app but fine in the CLI. Child pipes are always UTF-8 and every child gets its own handles (D6). Test process code from a GUI host (`tests/FinalToken.ProcessHost`), not only from a console.
|
||||
- [2026-10-14] With source-generated System.Text.Json, an `init`-only property missing from the JSON gets `default`, not its initializer. A partial `settings.json` then failed validation and reset every setting. Types read back from disk use settable properties so defaults survive (Core `AGENTS.md`). Test with partial files, not only round trips.
|
||||
- [2026-10-14] On Windows, replacing a file fails while another process holds it open without delete sharing. Readers of atomically replaced files open them with `FileShare.ReadWrite | FileShare.Delete`, and the replace retries briefly (D5).
|
||||
- [2026-10-14] A Stream Deck host started by the app (or a test harness) inherits that process's environment, `FINALTOKEN_DATA_DIR` included, and so does the plugin. To return a machine to normal after a test, restart Stream Deck from Explorer: `explorer.exe "C:\Program Files\Elgato\StreamDeck\StreamDeck.exe"`.
|
||||
- [2026-10-14] Windows file names ignore case: `FinalToken.exe` (app) and `finaltoken.exe` would collide in one folder, so the CLI is `finaltoken-cli` everywhere.
|
||||
- [2026-10-14] The installer updates the plugin only when the shipped manifest `Version` is higher (D11). `tools/publish.py` stamps it from `<Version>` in `Directory.Build.props`; bump that for every release that changes the plugin or Core, or installed plugins stay stale.
|
||||
- [2026-10-14] Converting a local midnight with `TimeZoneInfo.ConvertTimeToUtc` throws where midnight does not exist (Cairo, Santiago, Beirut at DST changes). Use `CalendarDays` for every local day boundary.
|
||||
|
||||
## Archive
|
||||
|
||||
@@ -2,13 +2,15 @@
|
||||
> Always-loaded. Everything else is on-demand. Update TOC when files change.
|
||||
|
||||
## Current Focus
|
||||
- [2026-10-14] v1 on issue #1: Core collectors and store, Avalonia app, Stream Deck plugin.
|
||||
- [2026-10-14] v1 merged (PR #2, issue #1). Next: the developer checks CachyOS and a real Stream Deck key; then the deferred items in `open.md`.
|
||||
|
||||
## Invariants
|
||||
- No credential is ever read, stored or sent; providers are reached only through their CLIs (D2).
|
||||
- Everything shipped stays NativeAOT-safe on win-x64 and linux-x64 (D1).
|
||||
- A response counts once, across restarts, rescans and resumed sessions (D3, D4, D5).
|
||||
- `snapshot.json` is the only interface between the app and other processes (D9).
|
||||
- An idle refresh writes only `snapshot.json`; history writes follow new data (D5).
|
||||
|
||||
## Table of Contents
|
||||
- `gotchas.md` — 2 entries — CLI probing pitfalls on this machine.
|
||||
- `gotchas.md` — 9 entries — CLI probing, GUI-host encoding, JSON defaults, Windows file sharing, Stream Deck environment, versioning, local midnights.
|
||||
- `open.md` — 5 entries — unverified hardware checks and deferred review notes from v1.
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Open
|
||||
|
||||
- [2026-10-14] Not verified for v1, needs the developer's hardware: a real CachyOS KDE Plasma session under XWayland (tray, popup placement, autostart), OpenDeck on Linux, pressing a physical Stream Deck key, Windows autostart through the registry.
|
||||
- [2026-10-14] Claude Code installed with npm on Windows is resolved from the package layout (`bin/claude.exe`, else `node cli.js`), checked only against npm metadata and hand-written fixtures. Confirm on a real npm install.
|
||||
- [2026-10-14] Deferred review notes from PR #2: prune scan cursors of deleted source files; per-point model queries under a provider filter may be slow on long history; a refresh that keeps failing retries every second instead of backing off; the daily chart tooltip shows `00:00` where a date alone would read better.
|
||||
- [2026-10-14] One test run on `5c5973a` failed 1 of 173 tests and never reproduced in 25+ runs; real-time tests were hardened in `15c7e68`. If a failure shows up again, capture which test.
|
||||
- [2026-10-14] The plugin installed on the developer's Stream Deck is `1.0.1.0` built before the bad-frame fix of `fd30dfc`; the merged code also ships `1.0.1.0`, so bump `<Version>` before the next release.
|
||||
|
||||
## Archive
|
||||
Reference in New Issue
Block a user