theseus/PENDING.md

209 lines
12 KiB
Markdown
Raw Normal View History

Theseus: download tracker, search split, discover-more tier, UX polish Bundle of UX + feature work. Split from packaging by intent so the diff is reviewable; the next Theseus rebuild ships it. Features - Download tracker (new): session.on("will-download") → per-item state {id, filename, url, mime, total, received, state, savePath, startedAt} with updated/done event handlers. New downloadsPop WebContentsView loads downloads.html (new file) + downloads-preload.js (new file); panel positioned under a new #downloads toolbar button between search and Tor. Full IPC: downloads-get, toggle/close/resize-downloads, download-open/show/cancel/clear, downloads-clear-all. In-memory only — cross-session persistence is a future addition. Button badge shows active count + spin/done/err color. - Search engines split by kind + tier: * kind: "search" | "llm" — separate headers in picker + settings ("Search with" / "Ask an AI"). Empty sections hidden. * tier: "catalog" | "extra" — Settings now has THREE panes behind the "+ Add search engine" button: curated catalog, wider discoverable bank filtered by a live search input, custom URL form. * DEFAULT_ENABLED unchanged (5 major engines). * Custom user-added engines carry tier="custom" (never in catalog/extra panes). - 9 tier="extra" engines added (all non-login ?q=): Marginalia, Stract, Yep, Presearch, MetaGer, Qwant, Swisscows, Naver, Baidu. Same rot rule as LLMs: if one starts bouncing to a login gate, drop it. Bug fixes - Loadbar collapses to 0px when idle (was reserving a permanent 2px strip below the address bar). .loadbar {height:0} + .loadbar.on {height:2px} + 120ms transition. - Native <select> popup theme sync via :root { color-scheme: dark } + @media(prefers-color-scheme: light). nativeTheme.themeSource already drives prefers-color-scheme, so the OS popup color follows the app theme automatically (fixed light popup on dark app / vice versa). - .ctl layout flipped to flex-direction: row with flex-wrap so anti-fingerprint mode + value fields fit side-by-side. Settings restructure - General section: Startup group at the top ("Open previous windows and tabs" toggle), then Appearance below with three visual THEME CARDS (System / Light / Dark) — small mock-browser previews per theme, Firefox-style, active card gets a blue ring. System pipes through to nativeTheme.themeSource = "system". - Search promoted to a top-level sidebar item between General and Naming. Search-engine controls moved out of General into Search. - Search section: enabled list shows only enabled engines, grouped by kind, drag-reorder within a kind. "+ Add search engine" opens the catalog/extras/custom-URL panel. Search engine catalog trims (already flagged in prior work) - Removed ChatGPT / Claude / You.com (login-gated ?q=). - Removed SearXNG (federated; every single-instance default rots). Docs - TheseusNavigator/PENDING.md and GOTCHAS.md born with this work (see the HANDOFF.md commit for the convention). - PENDING.md's own "session: 2026-08-02:theseus-ux-polish" group will be emptied after this ship lands. Preview harness - _preview.html + _settings-preview.html stubs updated with kind + tier + downloads seed + tier="extra" samples so the preview reflects reality. Both files are gitignored — local only. Coordination - Parallel session's collision-policy work (chrome.html registry chips, popover switcher, Naming section, in-tab collision prompt) already landed in commits 256079d/42b340f/b0d6375/78dddda. This commit adds cleanly on top.
2026-08-02 15:31:47 +02:00
# Pending — uncommitted Theseus changes
Working-tree state that hasn't been committed or shipped. Read this before
touching the same files. Update when you land or add work.
Format: each group has a `session:` label so parallel sessions can see
what belongs to whom and coordinate. Naming convention:
`YYYY-MM-DD:short-slug` for date-bounded work, or `parallel:<theme>` for
work owned by a session that isn't the current one.
Theseus 0.3.131: Mail promoted to Sidebar quicklink, Nostr signer ships, panels free RAM when idle, Game.X in SM cards Silent Mode Mail is no longer an extension. The 0.1.0 panel was a black screen (iframe to mail.silentmode.st which sends X-Frame-Options: DENY; the browser rendered the block page and still fired the iframe's load event, so the 5-second "did it embed?" watchdog saw it as loaded and the fallback never swapped in). The whole extension existed to put one "Open Mail" button in a panel — that is exactly what a sidebar quicklink does, without taking a panel slot or an Extensions row. So: - settings.quickLinks default list gains silentmail at the top (Silent Mode Mail → https://mail.silentmode.st/). - migrateAegisRename grew a mail retirement block: any existing extensions/mail/ folder on the user's box moves to addons-backups/mail-migrated-<stamp>/ on first boot of this Theseus, so the old extension vanishes from Settings instead of sitting there with a broken panel. - "mail" added to the first-party reserved-ids list so no community add-on can claim the id after retirement. Nostr NIP-07 signer finally ships. The bundled-addons/nostr/ folder was sitting untracked in the main checkout, so the detached-HEAD build worktree 0.3.130 used never saw it (same reason build/, tor/, snapshots/ have to be hand-copied into the worktree). This build committed the folder and copied it in. Puts window.nostr on https + localhost pages; identity is Hermes's key (one npub for DMs and public notes). Per-origin read/sign grants; kinds 0/3/5/10002 re-prompt every time with no remember option. Sidebar panel apps free their render tree after idle. closeLeftPanel used to keep the loaded page warm forever — great for fast reopen, bad for RAM when the user docks a heavy panel (Hermes, Pithos, Aegis) once and never comes back. A 2-minute idle timer now blanks the panel to about:blank after close; reopen within the window still reuses the loaded page (cancelLeftPanelIdleUnload on open), reopen after the window reloads fresh. LEFT_PANEL_IDLE_MS = 2 * 60 * 1000. Right-side sidebar view (webapp tabs — Telegram, X, WhatsApp, AI chat) is longer- lived by design and untouched here. Startpage layout: - Game.X takes SilentMode.X's slot in the Silent Mode cards (stub description + a built-in gamepad brand mark until game.x goes live). SilentMode.X moves to the quick-links strip as the 5th slot. Still TODO: push the swap into the remote home-cards.json for existing profiles. - Light-theme palette flip under body.light. The @media (prefers-color-scheme: light) block only triggered on OS-level light preference; picking the "light" background preset left --ink white against a white page, so hero titles, card titles, slot labels and the ".bch" extension read as pale ghosts. Added a full body.light { --ink; --mut; --card; --line; ... } block plus overrides for the hero + card translucent panels (dark-glass → light-glass on light theme) and the ctx-menu / modal. Dark theme untouched.
2026-10-30 00:38:08 +02:00
Last updated: 2026-10-29 (post-0.3.130 batch).
Theseus: download tracker, search split, discover-more tier, UX polish Bundle of UX + feature work. Split from packaging by intent so the diff is reviewable; the next Theseus rebuild ships it. Features - Download tracker (new): session.on("will-download") → per-item state {id, filename, url, mime, total, received, state, savePath, startedAt} with updated/done event handlers. New downloadsPop WebContentsView loads downloads.html (new file) + downloads-preload.js (new file); panel positioned under a new #downloads toolbar button between search and Tor. Full IPC: downloads-get, toggle/close/resize-downloads, download-open/show/cancel/clear, downloads-clear-all. In-memory only — cross-session persistence is a future addition. Button badge shows active count + spin/done/err color. - Search engines split by kind + tier: * kind: "search" | "llm" — separate headers in picker + settings ("Search with" / "Ask an AI"). Empty sections hidden. * tier: "catalog" | "extra" — Settings now has THREE panes behind the "+ Add search engine" button: curated catalog, wider discoverable bank filtered by a live search input, custom URL form. * DEFAULT_ENABLED unchanged (5 major engines). * Custom user-added engines carry tier="custom" (never in catalog/extra panes). - 9 tier="extra" engines added (all non-login ?q=): Marginalia, Stract, Yep, Presearch, MetaGer, Qwant, Swisscows, Naver, Baidu. Same rot rule as LLMs: if one starts bouncing to a login gate, drop it. Bug fixes - Loadbar collapses to 0px when idle (was reserving a permanent 2px strip below the address bar). .loadbar {height:0} + .loadbar.on {height:2px} + 120ms transition. - Native <select> popup theme sync via :root { color-scheme: dark } + @media(prefers-color-scheme: light). nativeTheme.themeSource already drives prefers-color-scheme, so the OS popup color follows the app theme automatically (fixed light popup on dark app / vice versa). - .ctl layout flipped to flex-direction: row with flex-wrap so anti-fingerprint mode + value fields fit side-by-side. Settings restructure - General section: Startup group at the top ("Open previous windows and tabs" toggle), then Appearance below with three visual THEME CARDS (System / Light / Dark) — small mock-browser previews per theme, Firefox-style, active card gets a blue ring. System pipes through to nativeTheme.themeSource = "system". - Search promoted to a top-level sidebar item between General and Naming. Search-engine controls moved out of General into Search. - Search section: enabled list shows only enabled engines, grouped by kind, drag-reorder within a kind. "+ Add search engine" opens the catalog/extras/custom-URL panel. Search engine catalog trims (already flagged in prior work) - Removed ChatGPT / Claude / You.com (login-gated ?q=). - Removed SearXNG (federated; every single-instance default rots). Docs - TheseusNavigator/PENDING.md and GOTCHAS.md born with this work (see the HANDOFF.md commit for the convention). - PENDING.md's own "session: 2026-08-02:theseus-ux-polish" group will be emptied after this ship lands. Preview harness - _preview.html + _settings-preview.html stubs updated with kind + tier + downloads seed + tier="extra" samples so the preview reflects reality. Both files are gitignored — local only. Coordination - Parallel session's collision-policy work (chrome.html registry chips, popover switcher, Naming section, in-tab collision prompt) already landed in commits 256079d/42b340f/b0d6375/78dddda. This commit adds cleanly on top.
2026-08-02 15:31:47 +02:00
---
Releases are no longer recorded here: the live version and hashes are in
`../site/releases-manifest.json` and `https://dl.silentmode.st/releases-manifest.json`,
and each release commit is `Theseus 0.3.x: ...` in git history.
Theseus: download tracker, search split, discover-more tier, UX polish Bundle of UX + feature work. Split from packaging by intent so the diff is reviewable; the next Theseus rebuild ships it. Features - Download tracker (new): session.on("will-download") → per-item state {id, filename, url, mime, total, received, state, savePath, startedAt} with updated/done event handlers. New downloadsPop WebContentsView loads downloads.html (new file) + downloads-preload.js (new file); panel positioned under a new #downloads toolbar button between search and Tor. Full IPC: downloads-get, toggle/close/resize-downloads, download-open/show/cancel/clear, downloads-clear-all. In-memory only — cross-session persistence is a future addition. Button badge shows active count + spin/done/err color. - Search engines split by kind + tier: * kind: "search" | "llm" — separate headers in picker + settings ("Search with" / "Ask an AI"). Empty sections hidden. * tier: "catalog" | "extra" — Settings now has THREE panes behind the "+ Add search engine" button: curated catalog, wider discoverable bank filtered by a live search input, custom URL form. * DEFAULT_ENABLED unchanged (5 major engines). * Custom user-added engines carry tier="custom" (never in catalog/extra panes). - 9 tier="extra" engines added (all non-login ?q=): Marginalia, Stract, Yep, Presearch, MetaGer, Qwant, Swisscows, Naver, Baidu. Same rot rule as LLMs: if one starts bouncing to a login gate, drop it. Bug fixes - Loadbar collapses to 0px when idle (was reserving a permanent 2px strip below the address bar). .loadbar {height:0} + .loadbar.on {height:2px} + 120ms transition. - Native <select> popup theme sync via :root { color-scheme: dark } + @media(prefers-color-scheme: light). nativeTheme.themeSource already drives prefers-color-scheme, so the OS popup color follows the app theme automatically (fixed light popup on dark app / vice versa). - .ctl layout flipped to flex-direction: row with flex-wrap so anti-fingerprint mode + value fields fit side-by-side. Settings restructure - General section: Startup group at the top ("Open previous windows and tabs" toggle), then Appearance below with three visual THEME CARDS (System / Light / Dark) — small mock-browser previews per theme, Firefox-style, active card gets a blue ring. System pipes through to nativeTheme.themeSource = "system". - Search promoted to a top-level sidebar item between General and Naming. Search-engine controls moved out of General into Search. - Search section: enabled list shows only enabled engines, grouped by kind, drag-reorder within a kind. "+ Add search engine" opens the catalog/extras/custom-URL panel. Search engine catalog trims (already flagged in prior work) - Removed ChatGPT / Claude / You.com (login-gated ?q=). - Removed SearXNG (federated; every single-instance default rots). Docs - TheseusNavigator/PENDING.md and GOTCHAS.md born with this work (see the HANDOFF.md commit for the convention). - PENDING.md's own "session: 2026-08-02:theseus-ux-polish" group will be emptied after this ship lands. Preview harness - _preview.html + _settings-preview.html stubs updated with kind + tier + downloads seed + tier="extra" samples so the preview reflects reality. Both files are gitignored — local only. Coordination - Parallel session's collision-policy work (chrome.html registry chips, popover switcher, Naming section, in-tab collision prompt) already landed in commits 256079d/42b340f/b0d6375/78dddda. This commit adds cleanly on top.
2026-08-02 15:31:47 +02:00
Theseus 0.3.132: layout revert, Nostr per-site identities, Mail as sidebar quicklink, connector token stays persistent Startpage layout reverted to the pre-0.3.131 shape. 0.3.131's full-page- height sidebar was a mistake — slots in a short strip under a hero at the top, cards and slots sharing one row of panels at the same height, is what matches the design. .page/.main-col/.sidebar structure dropped, hero back as a body sibling of .homepage, slots-list back to repeat(3, 72px) with minSlots=9. Two of the user's own tweaks baked into the defaults: .section.chromeless on the left column so slot icons float on the page background instead of sitting in a boxed panel, and defaultState().iconSize = "large" (60 px tiles). Game.X in the SM cards (replaces SilentMode.X in its slot, stub description + a built-in gamepad brand mark until game.x goes live). SilentMode.X moved to the quick-links strip as the 5th slot. moveItem now strips the pinned-slot anchor when a q item moves to sm — a link dragged onto the cards used to flip back on the next render because its slot number was still set. Nostr NIP-07 signer grows per-site identities (0.1.0 → 0.1.1). First approval modal picks between the Hermes identity (one npub for DMs and public notes, the one published as the np record on your BNS name) and a site-specific HKDF-derived npub (unique per origin, so Nostr clients can't cross-correlate your activity). The chooser shows both npubs so the user sees what each button reveals. Grants without a stored profileId (migrated from 0.3.131) default to the Hermes identity so existing approvals keep behaving the same. lib/hermes.js:nostrKeyFromRootForOrigin HKDFs with info silentmode/nostr-origin/v1/<origin> over the existing 32-byte messengerRoot. main.js _nostrAPI methods take {profileId, origin}; signer cache per profile. Silent Mode Mail retired as an extension — now a Sidebar quicklink (id: silentmail). Its 0.1.0 panel iframed mail.silentmode.st, which sends X-Frame-Options: DENY; the browser rendered the block page and STILL fired the iframe's load event, so the 5 s "did it embed?" watchdog saw it as loaded and the panel stayed black. The whole extension was just a landing page with an Open Mail button — exactly what a sidebar quicklink does, without taking a panel slot or an Extensions row. migrateAegisRename auto-retires any existing extensions/mail/ to addons-backups/mail-migrated-<stamp>/ on first boot of this Theseus; "mail" added to the first-party reserved-ids list so a community add-on can't claim the id. Claude connector 0.2.1 → 0.2.2: the bearer token no longer rotates on every server stop. The old stop() generated a fresh token every time Theseus quit, the panel toggled off, or a 0.3.X install replaced the app — the Connect button wrote the new token to ~/.claude.json but any already-running Claude Code or Claude Desktop process held the previous token in memory and only re-reads config on launch, so /mcp reconnect kept sending the stale bearer and the server rejected it forever. Infinite loop: install Theseus upgrade, click Connect, MCP still 401, close Claude, open Claude, install another upgrade a day later, repeat. The explicit Revoke token button still rotates for users who want fresh keys; everything else is persistent. Sidebar panel apps blank to about:blank after 2 min of being closed to free their render tree (iframes, media, listeners). Fast reopen within the window still reuses the loaded page. Light theme palette flip under body.light — the full set of --ink / --mut / --card / --line tokens flip plus hero + card translucent panels switch to light-glass, so hero titles, SM card text, slot labels and the ".bch" tld read correctly on the light background preset instead of as pale ghosts.
2026-10-30 03:45:32 +02:00
## Staged for the next release (post-0.3.131)
- **LANDED: Startpage layout reverted to the pre-0.3.131 default,
plus the user's two preferred tweaks baked into the defaults — the
slot column is chromeless (floats on the page background, no panel
box around it) and default `iconSize` is "large" (60 px tiles).**
Changes in [home.html](home.html):
- HTML: `<div class="hero">` and `<div class="homepage">` back as
body siblings (not nested in a `.page` grid with a sidebar aside).
`.homepage` is the 2-col grid `minmax(260, 300) 1fr`, hero padded
`5vh 1rem 0` as the top of the page again.
- CSS: `.sidebar` renamed back to `.left-column`, `.cards-wrap` back
to `.right-column`, the `.page` + `.main-col` grid dropped.
`.section.chromeless` kept (brought back) — the left column uses it
so slots float on the page background like the user had it; the SM
cards keep the soft panel surface.
- `defaultState().iconSize` is `"large"` (60 px slot tiles) —
matches the sizing in the user's screenshot; existing profiles
with their own `iconSize` keep that choice.
- `.slots-list { grid-template-columns: repeat(3, 72px); width:
max-content; margin: 0 auto }` — fixed-cell 232 px grid, centered
in its panel. `layoutSlots` back to `minSlots = 9` (3 × 3 rows,
matches the SM cards grid height). `minSlotsForFill()` and its
`ResizeObserver` are gone.
- `.hero .ver-line` CSS + its `body.light` override removed; the
`<p class="ver-line" id="verLine">` markup gone; the init-script
block that wired `getVersion()` → `navigate("silentmode.st/releases")`
gone. The user asked for "What's new" to be dropped again after I
restored it for 0.3.131; `window.home.getVersion` exposure in
[home-preload.js](home-preload.js) also removed since nothing calls
it any more.
- `moveItem()` now strips the `slot` property when a q item moves to
sm (link → card). Pin-to-slot is q-only, so leaving the anchor on
an sm card re-pinned it back to a slot cell on the next revert.
This fixes the user-reported "moving a link to card doesn't work"
(actually it moved, but the stale slot anchor flipped it back on
the next render).
- **Live user state reset.** Backed up `%APPDATA%\Theseus\home-cards.json`
to `.bak-before-reset`, rewrote it to the restored defaults — SM
cards list contains Game.X (replacing SilentMode.X in its slot),
quicklinks strip holds hello.bch / sia.coin / Pithos.sia /
Bergamot.X / SilentMode.X, plus any user-added extras preserved.
Preserved: `background` (indigo preset) and `iconSize` (large).
User must reload the open home tab (Ctrl+R or close/reopen) to pick
up the new file.
- **LANDED: Claude connector no longer rotates its bearer on every
stop (0.2.2).** The old `stop()` generated a fresh token on every
server stop, so a Theseus quit, a panel toggle-off, or even a 0.3.X
→ 0.3.X+1 install silently invalidated every registered Claude. The
Connect button wrote the new token to `~/.claude.json`, but any
already-running Claude Code or Claude Desktop process holds the
previous token in memory and only re-reads config on launch, so
`/mcp` reconnect kept sending the stale bearer and the server
rejected it. Observed symptom from the connector log: after
installing 0.3.131 and clicking Connect, `.claude.json` was
updated (correct new token written at 01:02:53) but the running
Claude Code session's MCP calls stayed 401 forever. Fix in
[bundled-addons/claude-connector/index.js](bundled-addons/claude-connector/index.js):
`stop()` keeps the stored token; only the panel's "Revoke token"
button rotates. Addon version bumped 0.2.1 → 0.2.2 so
`seedBundledAddons` picks up the fix on the first boot of 0.3.132.
- **LANDED: Nostr per-site identities (0.1.1).** The 0.3.131 Nostr add-on
always signed with Hermes's one `npub`, which gives sites a single
identity they can correlate across the Nostr network. 0.3.132 adds a
per-origin profile picked on first approval:
- `lib/hermes.js` gains `nostrKeyFromRootForOrigin(messengerRoot, origin)`
— HKDF with info `silentmode/nostr-origin/v1/<origin>` over the
existing 32-byte messengerRoot, so every site that chooses "site-
specific identity" sees a different `npub` and clients can't cross-
correlate. Deterministic from the mnemonic, no new vault field
needed.
- [main.js](main.js): `_nostrAPI` methods take `{ profileId, origin }`.
`profileId` is `"hermes"` or `"origin"`; the signer cache keys on
both. Per-origin secret keys are hot-cached under
`nostrOriginSkCache` so the async HKDF only runs once per
(vault, origin). Backward-compatible: callers that omit `profileId`
get the Hermes identity (what 0.3.131 did).
- [bundled-addons/nostr/index.js](bundled-addons/nostr/index.js): grant
schema gains `profileId`. First-time approval modal shows BOTH npubs
side-by-side and two Allow buttons ("Use site-specific identity" is
primary, "Use my Hermes identity" is the opt-in to the shared key).
Subsequent calls reuse the stored profile silently. Pre-upgrade
grants (no `profileId` field) default to `"hermes"` so existing
approvals keep behaving the same.
- [bundled-addons/nostr/panel.html](bundled-addons/nostr/panel.html):
each grant row shows which identity the site sees — "Shared Hermes
identity" or "Site-specific identity" with the derived npub under
it.
- Addon version bumped 0.1.0 → 0.1.1 so `seedBundledAddons` reseeds
the fresh-from-0.3.131 copy on the next Theseus start.
Theseus 0.3.131: Mail promoted to Sidebar quicklink, Nostr signer ships, panels free RAM when idle, Game.X in SM cards Silent Mode Mail is no longer an extension. The 0.1.0 panel was a black screen (iframe to mail.silentmode.st which sends X-Frame-Options: DENY; the browser rendered the block page and still fired the iframe's load event, so the 5-second "did it embed?" watchdog saw it as loaded and the fallback never swapped in). The whole extension existed to put one "Open Mail" button in a panel — that is exactly what a sidebar quicklink does, without taking a panel slot or an Extensions row. So: - settings.quickLinks default list gains silentmail at the top (Silent Mode Mail → https://mail.silentmode.st/). - migrateAegisRename grew a mail retirement block: any existing extensions/mail/ folder on the user's box moves to addons-backups/mail-migrated-<stamp>/ on first boot of this Theseus, so the old extension vanishes from Settings instead of sitting there with a broken panel. - "mail" added to the first-party reserved-ids list so no community add-on can claim the id after retirement. Nostr NIP-07 signer finally ships. The bundled-addons/nostr/ folder was sitting untracked in the main checkout, so the detached-HEAD build worktree 0.3.130 used never saw it (same reason build/, tor/, snapshots/ have to be hand-copied into the worktree). This build committed the folder and copied it in. Puts window.nostr on https + localhost pages; identity is Hermes's key (one npub for DMs and public notes). Per-origin read/sign grants; kinds 0/3/5/10002 re-prompt every time with no remember option. Sidebar panel apps free their render tree after idle. closeLeftPanel used to keep the loaded page warm forever — great for fast reopen, bad for RAM when the user docks a heavy panel (Hermes, Pithos, Aegis) once and never comes back. A 2-minute idle timer now blanks the panel to about:blank after close; reopen within the window still reuses the loaded page (cancelLeftPanelIdleUnload on open), reopen after the window reloads fresh. LEFT_PANEL_IDLE_MS = 2 * 60 * 1000. Right-side sidebar view (webapp tabs — Telegram, X, WhatsApp, AI chat) is longer- lived by design and untouched here. Startpage layout: - Game.X takes SilentMode.X's slot in the Silent Mode cards (stub description + a built-in gamepad brand mark until game.x goes live). SilentMode.X moves to the quick-links strip as the 5th slot. Still TODO: push the swap into the remote home-cards.json for existing profiles. - Light-theme palette flip under body.light. The @media (prefers-color-scheme: light) block only triggered on OS-level light preference; picking the "light" background preset left --ink white against a white page, so hero titles, card titles, slot labels and the ".bch" extension read as pale ghosts. Added a full body.light { --ink; --mut; --card; --line; ... } block plus overrides for the hero + card translucent panels (dark-glass → light-glass on light theme) and the ctx-menu / modal. Dark theme untouched.
2026-10-30 00:38:08 +02:00
## Staged for the next release (post-0.3.130)
Queue of asks for the next cut. Items marked LANDED are edited in the
working tree waiting for a bump + build. Items marked TODO still need the
code change.
Theseus 0.3.131: Mail promoted to Sidebar quicklink, Nostr signer ships, panels free RAM when idle, Game.X in SM cards Silent Mode Mail is no longer an extension. The 0.1.0 panel was a black screen (iframe to mail.silentmode.st which sends X-Frame-Options: DENY; the browser rendered the block page and still fired the iframe's load event, so the 5-second "did it embed?" watchdog saw it as loaded and the fallback never swapped in). The whole extension existed to put one "Open Mail" button in a panel — that is exactly what a sidebar quicklink does, without taking a panel slot or an Extensions row. So: - settings.quickLinks default list gains silentmail at the top (Silent Mode Mail → https://mail.silentmode.st/). - migrateAegisRename grew a mail retirement block: any existing extensions/mail/ folder on the user's box moves to addons-backups/mail-migrated-<stamp>/ on first boot of this Theseus, so the old extension vanishes from Settings instead of sitting there with a broken panel. - "mail" added to the first-party reserved-ids list so no community add-on can claim the id after retirement. Nostr NIP-07 signer finally ships. The bundled-addons/nostr/ folder was sitting untracked in the main checkout, so the detached-HEAD build worktree 0.3.130 used never saw it (same reason build/, tor/, snapshots/ have to be hand-copied into the worktree). This build committed the folder and copied it in. Puts window.nostr on https + localhost pages; identity is Hermes's key (one npub for DMs and public notes). Per-origin read/sign grants; kinds 0/3/5/10002 re-prompt every time with no remember option. Sidebar panel apps free their render tree after idle. closeLeftPanel used to keep the loaded page warm forever — great for fast reopen, bad for RAM when the user docks a heavy panel (Hermes, Pithos, Aegis) once and never comes back. A 2-minute idle timer now blanks the panel to about:blank after close; reopen within the window still reuses the loaded page (cancelLeftPanelIdleUnload on open), reopen after the window reloads fresh. LEFT_PANEL_IDLE_MS = 2 * 60 * 1000. Right-side sidebar view (webapp tabs — Telegram, X, WhatsApp, AI chat) is longer- lived by design and untouched here. Startpage layout: - Game.X takes SilentMode.X's slot in the Silent Mode cards (stub description + a built-in gamepad brand mark until game.x goes live). SilentMode.X moves to the quick-links strip as the 5th slot. Still TODO: push the swap into the remote home-cards.json for existing profiles. - Light-theme palette flip under body.light. The @media (prefers-color-scheme: light) block only triggered on OS-level light preference; picking the "light" background preset left --ink white against a white page, so hero titles, card titles, slot labels and the ".bch" extension read as pale ghosts. Added a full body.light { --ink; --mut; --card; --line; ... } block plus overrides for the hero + card translucent panels (dark-glass → light-glass on light theme) and the ctx-menu / modal. Dark theme untouched.
2026-10-30 00:38:08 +02:00
- **LANDED: Nostr NIP-07 signer** — new bundled add-on `bundled-addons/nostr/`
(0.1.0) plus host support. Puts `window.nostr` on https + localhost pages so
any Nostr client (Primal, Coracle, Snort, nostrudel) can sign with the
identity Theseus already holds. **Needs a Theseus release**: it changes
`main.js` and bundles a new add-on, so the extension OTA alone cannot
deliver it. **MISSED 0.3.130** — the folder is untracked (`??` in git
status), so the detached-HEAD build worktree never saw it. For 0.3.131
the ship script must either `git add` the folder first or `cp -r` it
into the build worktree the same way `build/`, `tor/`, `snapshots/`
are copied.
- [lib/nostr-signer.js](lib/nostr-signer.js) — new. Crypto half:
`getPublicKey`, `signEvent` (BIP340 via nostr-tools `finalizeEvent`),
nip04 + nip44 encrypt/decrypt. Recomputes `pubkey`/`id` rather than
trusting the page.
- [main.js](main.js) — `global._nostrAPI` next to `_hermesAPI`.
- Identity is Hermes's key (`nostrKeyFromRoot(messengerRoot)`); vault
with no mnemonic reports no identity instead of failing obscurely.
- Policy per-origin (read vs sign), kinds 0/3/5/10002 re-prompt every
time with no remember option.
- Tests: `scratchpad/signer-test.mjs`, `nostr-policy-test.mjs`,
`nostr-e2e.mjs`.
- **LANDED: Home — SilentMode.X moved to the quick-links strip, Game.X
takes its place in the Silent Mode cards.** [home.html](home.html)
`defaultState().sections.sm` and `.q`. Game.X entry uses a built-in
`game` brand mark (new SVG in `BRAND`); the real description and
favicon will come from the live site once game.x is up (currently a
stub). SilentMode.X moves into the slots strip as the 5th quick-link.
**Still TODO:** update the remote cache at
`https://dl.silentmode.st/home-cards.json` so existing profiles pick
the swap up without resetting (local `sections.sm` isn't reseeded by
`migrateCards` — only the remote fetch rewrites it for installed
users).
- **LANDED: Mail is now a Sidebar quicklink, not an extension.** The
user flagged two things in one: the Mail add-on's 0.1.0 panel was a
black screen (iframe + XFO: DENY), AND Mail conceptually belongs
under Settings → Sidebar (webapp quicklinks) rather than Settings →
Extensions. Both resolved by dropping the extension form entirely:
- `settings.quickLinks` default list in [main.js](main.js) gains
`{ id: "silentmail", url: "https://mail.silentmode.st/", title:
"Silent Mode Mail" }` as the first entry.
- `migrateAegisRename()` grew a mail retirement block: on first boot
of this Theseus, any installed `extensions/mail/` folder moves to
`addons-backups/mail-migrated-<stamp>/`. The one-off `mail/`
directory I added under `bundled-addons/` earlier in this session
is removed again (the quicklink + retire is the right path).
- `"mail"` added to the first-party reserved-ids list so a community
add-on can't claim the id after retirement.
- The quicklink does exactly what the old extension's "Open Mail"
button did (new tab at `mail.silentmode.st`), without taking a
panel slot or an Extensions row.
- **LANDED: Left-side sidebar panels free their render tree after idle.**
[main.js](main.js) `closeLeftPanel`: closed panels used to keep their
loaded page (`leftPanelLoadedId` kept, webContents warm) forever —
great for fast reopen, bad for RAM when the user docks a heavy
app-like panel (Hermes, Pithos, mail) once and never comes back.
Now a 2-minute idle timer blanks the panel to `about:blank` after
close, dropping iframes/media/listeners; reopen inside the window
still reuses the loaded page (`cancelLeftPanelIdleUnload` on open).
`LEFT_PANEL_IDLE_MS = 2 * 60 * 1000`. Does NOT touch the right-side
`sidebar` view (webapp tabs — Telegram, X, WhatsApp, AI chat) — those
are longer-lived by design; follow-up decision whether to apply the
same idle unload there.
- **LANDED: Startpage light theme palette flip under `body.light`.**
[home.html](home.html): the existing `@media (prefers-color-scheme:
light)` block only flipped tokens when the OS preferred light. Picking
the "light" background preset (`body.light`, set by `applyBg()`) left
`--ink` white against a white page, so hero title, SM card titles,
slot labels and the ".bch" extension read as pale ghosts. Added a
full `body.light { --ink; --mut; --card; --line; ... }` block plus
overrides for the hero/card translucent panels (dark-glass → light-
glass on light theme so the dark text inside reads), the ctx-menu
and modal (white surfaces, dark text). Dark theme untouched.
Theseus: download tracker, search split, discover-more tier, UX polish Bundle of UX + feature work. Split from packaging by intent so the diff is reviewable; the next Theseus rebuild ships it. Features - Download tracker (new): session.on("will-download") → per-item state {id, filename, url, mime, total, received, state, savePath, startedAt} with updated/done event handlers. New downloadsPop WebContentsView loads downloads.html (new file) + downloads-preload.js (new file); panel positioned under a new #downloads toolbar button between search and Tor. Full IPC: downloads-get, toggle/close/resize-downloads, download-open/show/cancel/clear, downloads-clear-all. In-memory only — cross-session persistence is a future addition. Button badge shows active count + spin/done/err color. - Search engines split by kind + tier: * kind: "search" | "llm" — separate headers in picker + settings ("Search with" / "Ask an AI"). Empty sections hidden. * tier: "catalog" | "extra" — Settings now has THREE panes behind the "+ Add search engine" button: curated catalog, wider discoverable bank filtered by a live search input, custom URL form. * DEFAULT_ENABLED unchanged (5 major engines). * Custom user-added engines carry tier="custom" (never in catalog/extra panes). - 9 tier="extra" engines added (all non-login ?q=): Marginalia, Stract, Yep, Presearch, MetaGer, Qwant, Swisscows, Naver, Baidu. Same rot rule as LLMs: if one starts bouncing to a login gate, drop it. Bug fixes - Loadbar collapses to 0px when idle (was reserving a permanent 2px strip below the address bar). .loadbar {height:0} + .loadbar.on {height:2px} + 120ms transition. - Native <select> popup theme sync via :root { color-scheme: dark } + @media(prefers-color-scheme: light). nativeTheme.themeSource already drives prefers-color-scheme, so the OS popup color follows the app theme automatically (fixed light popup on dark app / vice versa). - .ctl layout flipped to flex-direction: row with flex-wrap so anti-fingerprint mode + value fields fit side-by-side. Settings restructure - General section: Startup group at the top ("Open previous windows and tabs" toggle), then Appearance below with three visual THEME CARDS (System / Light / Dark) — small mock-browser previews per theme, Firefox-style, active card gets a blue ring. System pipes through to nativeTheme.themeSource = "system". - Search promoted to a top-level sidebar item between General and Naming. Search-engine controls moved out of General into Search. - Search section: enabled list shows only enabled engines, grouped by kind, drag-reorder within a kind. "+ Add search engine" opens the catalog/extras/custom-URL panel. Search engine catalog trims (already flagged in prior work) - Removed ChatGPT / Claude / You.com (login-gated ?q=). - Removed SearXNG (federated; every single-instance default rots). Docs - TheseusNavigator/PENDING.md and GOTCHAS.md born with this work (see the HANDOFF.md commit for the convention). - PENDING.md's own "session: 2026-08-02:theseus-ux-polish" group will be emptied after this ship lands. Preview harness - _preview.html + _settings-preview.html stubs updated with kind + tier + downloads seed + tier="extra" samples so the preview reflects reality. Both files are gitignored — local only. Coordination - Parallel session's collision-policy work (chrome.html registry chips, popover switcher, Naming section, in-tab collision prompt) already landed in commits 256079d/42b340f/b0d6375/78dddda. This commit adds cleanly on top.
2026-08-02 15:31:47 +02:00
## session: `parallel:collision-policy`
Owner's focus: BCNR ↔ ICANN name collision handling. Not mine — leave for
that session to land or bundle by explicit ask.
Theseus: download tracker, search split, discover-more tier, UX polish Bundle of UX + feature work. Split from packaging by intent so the diff is reviewable; the next Theseus rebuild ships it. Features - Download tracker (new): session.on("will-download") → per-item state {id, filename, url, mime, total, received, state, savePath, startedAt} with updated/done event handlers. New downloadsPop WebContentsView loads downloads.html (new file) + downloads-preload.js (new file); panel positioned under a new #downloads toolbar button between search and Tor. Full IPC: downloads-get, toggle/close/resize-downloads, download-open/show/cancel/clear, downloads-clear-all. In-memory only — cross-session persistence is a future addition. Button badge shows active count + spin/done/err color. - Search engines split by kind + tier: * kind: "search" | "llm" — separate headers in picker + settings ("Search with" / "Ask an AI"). Empty sections hidden. * tier: "catalog" | "extra" — Settings now has THREE panes behind the "+ Add search engine" button: curated catalog, wider discoverable bank filtered by a live search input, custom URL form. * DEFAULT_ENABLED unchanged (5 major engines). * Custom user-added engines carry tier="custom" (never in catalog/extra panes). - 9 tier="extra" engines added (all non-login ?q=): Marginalia, Stract, Yep, Presearch, MetaGer, Qwant, Swisscows, Naver, Baidu. Same rot rule as LLMs: if one starts bouncing to a login gate, drop it. Bug fixes - Loadbar collapses to 0px when idle (was reserving a permanent 2px strip below the address bar). .loadbar {height:0} + .loadbar.on {height:2px} + 120ms transition. - Native <select> popup theme sync via :root { color-scheme: dark } + @media(prefers-color-scheme: light). nativeTheme.themeSource already drives prefers-color-scheme, so the OS popup color follows the app theme automatically (fixed light popup on dark app / vice versa). - .ctl layout flipped to flex-direction: row with flex-wrap so anti-fingerprint mode + value fields fit side-by-side. Settings restructure - General section: Startup group at the top ("Open previous windows and tabs" toggle), then Appearance below with three visual THEME CARDS (System / Light / Dark) — small mock-browser previews per theme, Firefox-style, active card gets a blue ring. System pipes through to nativeTheme.themeSource = "system". - Search promoted to a top-level sidebar item between General and Naming. Search-engine controls moved out of General into Search. - Search section: enabled list shows only enabled engines, grouped by kind, drag-reorder within a kind. "+ Add search engine" opens the catalog/extras/custom-URL panel. Search engine catalog trims (already flagged in prior work) - Removed ChatGPT / Claude / You.com (login-gated ?q=). - Removed SearXNG (federated; every single-instance default rots). Docs - TheseusNavigator/PENDING.md and GOTCHAS.md born with this work (see the HANDOFF.md commit for the convention). - PENDING.md's own "session: 2026-08-02:theseus-ux-polish" group will be emptied after this ship lands. Preview harness - _preview.html + _settings-preview.html stubs updated with kind + tier + downloads seed + tier="extra" samples so the preview reflects reality. Both files are gitignored — local only. Coordination - Parallel session's collision-policy work (chrome.html registry chips, popover switcher, Naming section, in-tab collision prompt) already landed in commits 256079d/42b340f/b0d6375/78dddda. This commit adds cleanly on top.
2026-08-02 15:31:47 +02:00
- Android / mobile: [../AriadneResolver/mobile/app/AndroidManifest.xml](../AriadneResolver/mobile/app/AndroidManifest.xml),
[BchFetcher.java](../AriadneResolver/mobile/app/src/com/silentmode/ariadne/BchFetcher.java),
[Bns.java](../AriadneResolver/mobile/app/src/com/silentmode/ariadne/Bns.java),
[build.ps1](../AriadneResolver/mobile/build.ps1) — mobile-side collision changes.
- Repo-wide: `.gitignore` gained a `/.keys/` line (harmless).
Theseus: download tracker, search split, discover-more tier, UX polish Bundle of UX + feature work. Split from packaging by intent so the diff is reviewable; the next Theseus rebuild ships it. Features - Download tracker (new): session.on("will-download") → per-item state {id, filename, url, mime, total, received, state, savePath, startedAt} with updated/done event handlers. New downloadsPop WebContentsView loads downloads.html (new file) + downloads-preload.js (new file); panel positioned under a new #downloads toolbar button between search and Tor. Full IPC: downloads-get, toggle/close/resize-downloads, download-open/show/cancel/clear, downloads-clear-all. In-memory only — cross-session persistence is a future addition. Button badge shows active count + spin/done/err color. - Search engines split by kind + tier: * kind: "search" | "llm" — separate headers in picker + settings ("Search with" / "Ask an AI"). Empty sections hidden. * tier: "catalog" | "extra" — Settings now has THREE panes behind the "+ Add search engine" button: curated catalog, wider discoverable bank filtered by a live search input, custom URL form. * DEFAULT_ENABLED unchanged (5 major engines). * Custom user-added engines carry tier="custom" (never in catalog/extra panes). - 9 tier="extra" engines added (all non-login ?q=): Marginalia, Stract, Yep, Presearch, MetaGer, Qwant, Swisscows, Naver, Baidu. Same rot rule as LLMs: if one starts bouncing to a login gate, drop it. Bug fixes - Loadbar collapses to 0px when idle (was reserving a permanent 2px strip below the address bar). .loadbar {height:0} + .loadbar.on {height:2px} + 120ms transition. - Native <select> popup theme sync via :root { color-scheme: dark } + @media(prefers-color-scheme: light). nativeTheme.themeSource already drives prefers-color-scheme, so the OS popup color follows the app theme automatically (fixed light popup on dark app / vice versa). - .ctl layout flipped to flex-direction: row with flex-wrap so anti-fingerprint mode + value fields fit side-by-side. Settings restructure - General section: Startup group at the top ("Open previous windows and tabs" toggle), then Appearance below with three visual THEME CARDS (System / Light / Dark) — small mock-browser previews per theme, Firefox-style, active card gets a blue ring. System pipes through to nativeTheme.themeSource = "system". - Search promoted to a top-level sidebar item between General and Naming. Search-engine controls moved out of General into Search. - Search section: enabled list shows only enabled engines, grouped by kind, drag-reorder within a kind. "+ Add search engine" opens the catalog/extras/custom-URL panel. Search engine catalog trims (already flagged in prior work) - Removed ChatGPT / Claude / You.com (login-gated ?q=). - Removed SearXNG (federated; every single-instance default rots). Docs - TheseusNavigator/PENDING.md and GOTCHAS.md born with this work (see the HANDOFF.md commit for the convention). - PENDING.md's own "session: 2026-08-02:theseus-ux-polish" group will be emptied after this ship lands. Preview harness - _preview.html + _settings-preview.html stubs updated with kind + tier + downloads seed + tier="extra" samples so the preview reflects reality. Both files are gitignored — local only. Coordination - Parallel session's collision-policy work (chrome.html registry chips, popover switcher, Naming section, in-tab collision prompt) already landed in commits 256079d/42b340f/b0d6375/78dddda. This commit adds cleanly on top.
2026-08-02 15:31:47 +02:00
## Live state
Shipped hashes live at `../site/releases-manifest.json` and
`https://dl.silentmode.st/releases-manifest.json`. On-chain pointer at
`releases.silentmode.bch`. See [GOTCHAS.md](GOTCHAS.md) for the release
gotchas.