Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
7a0d9f6
chore(lint): make clippy pass on main
dorukozgen Nov 16, 2026
e32761a
fix(auth): pin production issuer and audience in release builds
dorukozgen Nov 16, 2026
5699555
fix(backend): release builds ignore .env files
dorukozgen Nov 16, 2026
a95c559
fix(keychain): keep Linux sign-in and API keys across reboots
dorukozgen Nov 16, 2026
213426d
fix(wipe): clear Linux credentials from the Secret Service
dorukozgen Nov 16, 2026
514b847
fix(auth): warn when the sign-in cannot be saved to the keychain
dorukozgen Nov 16, 2026
fae2d8e
ci(release): add a secret scanner for build artefacts
dorukozgen Nov 16, 2026
e7c3493
feat(git): let users turn off Fleetify attribution in commits and PRs
dorukozgen Nov 16, 2026
5300490
fix: stop crashing on non-ASCII text when shortening commit messages …
dorukozgen Nov 16, 2026
e8a0980
fix(shortcuts): abort-all works while Settings or Library is open
dorukozgen Nov 16, 2026
383b974
fix(telemetry): make the cloud sync switch work and stop sending acti…
dorukozgen Nov 17, 2026
f5e5fed
fix(reveng): stop crashing on unquoted non-ASCII attribute values
dorukozgen Nov 17, 2026
a8a72d3
fix(github): find the device code after non-ASCII text in gh output
dorukozgen Nov 17, 2026
1a2701a
fix(shortcuts): keep the stop-all shortcut working with Caps Lock and…
dorukozgen Nov 17, 2026
267e43d
fix(telemetry): purge events queued by older builds and report failed…
dorukozgen Nov 17, 2026
d0ba91b
fix(wipe): stop printing keychain usernames
dorukozgen Nov 17, 2026
7730fda
fix(shortcuts): toggle the right panel on Turkish Q without hijacking…
dorukozgen Nov 17, 2026
c894791
fix(config): keep settings when the config file is corrupt and report…
dorukozgen Nov 17, 2026
f47642b
fix(plugins): pin vetted addresses for icon fetches and stop retry st…
dorukozgen Nov 17, 2026
6f98f6e
fix(config): back up a corrupt config by content and accept a UTF-8 BOM
dorukozgen Nov 17, 2026
e5dfcd5
chore(license): relicense under Apache-2.0
dorukozgen Nov 17, 2026
902df51
docs(readme): state the Apache-2.0 licence
dorukozgen Nov 17, 2026
fc42a68
fix(plugins): treat only global unicast IPv6 as public for icon fetches
dorukozgen Nov 17, 2026
79af0f8
fix(chat): Escape stops a stream once and never through overlays or p…
dorukozgen Nov 17, 2026
a5ff2db
chore(license): quote the upstream tauri-runtime-wry notices verbatim…
dorukozgen Nov 17, 2026
89d18fa
fix(workflows): run transcripts no longer blank after 20 seconds
dorukozgen Nov 17, 2026
ec36256
fix(chat): stop only the focused pane's stream and let overlays own E…
dorukozgen Nov 17, 2026
d765e77
fix(workspace): the Agent pane keeps a finished worker's full transcript
dorukozgen Nov 17, 2026
b5a390b
fix(workspace): the Agent pane fetches a worker transcript that isn't…
dorukozgen Nov 17, 2026
f36decf
test(plugins): serialise the rule_merge env test with home_lock
dorukozgen Nov 17, 2026
89ac61a
perf(plugins): fetch each icon once, in parallel, within a time budget
dorukozgen Nov 17, 2026
5b8b136
fix(workspace): parse fetched transcripts before storing them
dorukozgen Nov 17, 2026
9f7f0aa
fix(plugins): drop icons the SSRF guard refuses instead of passing th…
dorukozgen Nov 17, 2026
4f243d0
fix(chat): popovers and permission cards own Escape per pane, and inp…
dorukozgen Nov 17, 2026
bc89c96
fix(plugins): never hand an un-inlined icon URL to the WebView
dorukozgen Nov 17, 2026
e2b3916
fix(app): Escape outside the chat never stops the agent, and claimed …
dorukozgen Nov 17, 2026
84202f9
fix(privacy): describe telemetry accurately and ask before syncing se…
dorukozgen Nov 17, 2026
326a898
fix(chat): permission cards ignore fields and modals outside the chat…
dorukozgen Nov 17, 2026
3bb450c
fix(telemetry): send the home folder as ~ instead of the OS user name
dorukozgen Nov 17, 2026
5e565e5
fix(privacy): make every privacy statement true of the code
dorukozgen Nov 17, 2026
fe59425
fix(telemetry): send a home-folder title as ~ and keep a failed opt-o…
dorukozgen Nov 17, 2026
d1bf428
fix(privacy): identify returning users, pin posthog-js and harden the…
dorukozgen Nov 17, 2026
d7e3e08
fix(settings): report failed saves on the General settings cards
dorukozgen Nov 17, 2026
71391d8
docs(analytics): state exactly what PostHog receives
dorukozgen Nov 17, 2026
3bcfbbc
fix(shortcuts): back-to-fleet follows the focused pane and yields to …
dorukozgen Nov 17, 2026
446b709
fix(config): unique temp files, a write lock and fsync for config saves
dorukozgen Nov 17, 2026
d12be1b
fix(telemetry): stop logging the WebSocket ticket
dorukozgen Nov 17, 2026
6651c98
fix(privacy): reset product analytics identity on sign-out
dorukozgen Nov 17, 2026
5b1d0cf
feat(app): show a recovery screen instead of a blank window on render…
dorukozgen Nov 17, 2026
42dc0b2
fix(plugins): load README and changelog images from unknown hosts onl…
dorukozgen Nov 17, 2026
2ab89b5
fix(chat): Ctrl+Enter answers permission cards on Windows and Linux, …
dorukozgen Nov 17, 2026
5bb2a0f
fix(shell): wait for the backend's real health endpoint at startup
dorukozgen Nov 17, 2026
a717ea3
fix(telemetry): an unreadable settings file never turns dashboard syn…
dorukozgen Nov 17, 2026
25964a3
feat(privacy): turn dashboard sync on by default with a clear switch
dorukozgen Nov 17, 2026
784a8d0
fix(shell): load the app only after the embedded backend answers
dorukozgen Nov 17, 2026
bef8fba
fix(shell): allow IPC from the configured backend port
dorukozgen Nov 17, 2026
f20c126
fix(telemetry): start dashboard sync only after the onboarding notice…
dorukozgen Nov 17, 2026
d866f37
fix(onboarding): give consent choices equal weight
dorukozgen Nov 17, 2026
3289cf4
fix(shell): let the release UI call the app's commands
dorukozgen Nov 17, 2026
ac3c1a2
fix(shell): show an error instead of waiting forever when the backend…
dorukozgen Nov 17, 2026
908cc60
fix(shell): grant app commands only to the app's own origin
dorukozgen Nov 17, 2026
d68fff3
fix(app): links to other sites open in the browser instead of replaci…
dorukozgen Nov 17, 2026
818fad7
fix(shell): send provider keys only to the app's own backend
dorukozgen Nov 17, 2026
972f5ad
fix(shell): clearer startup failure handling
dorukozgen Nov 17, 2026
f779554
fix(shell): ship the UI with the app and serve it only from the insta…
dorukozgen Nov 17, 2026
d3b376b
fix(shell): open links without going through the Windows command shell
dorukozgen Nov 17, 2026
4918b14
fix(shell): stop with an error when the interface can't get its permi…
dorukozgen Nov 17, 2026
20e7d9d
fix(app): chat links open in the browser and app drags keep their cursor
dorukozgen Nov 17, 2026
dce2aa9
fix(app): open local files and folders again
dorukozgen Nov 17, 2026
1d9297e
fix(shell): harden link opening for WSL, mail links and embedded cred…
dorukozgen Nov 17, 2026
8a3d29b
fix(app): onboarding links open in the browser and foreign drags can'…
dorukozgen Nov 17, 2026
6808169
fix(shell): frames inside the app can't use its permissions on Linux
dorukozgen Nov 17, 2026
4c67bed
fix(shell): internal calls to the app's backend skip system proxies
dorukozgen Nov 17, 2026
7e084f5
fix(shell): refuse network paths and smuggled mail fields when openin…
dorukozgen Nov 18, 2026
ed85e1f
fix(app): tighten the drop guard and keep remote credentials out of t…
dorukozgen Nov 18, 2026
cd27eab
refactor(shell): name the bound-port helper for what it returns
dorukozgen Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Fleetify local dev secrets. Copy to `.env` (gitignored) and fill in.
#
# `dotenvy` loads this into the backend's process env at the top of
# `serve_with_routing_setup` so the Rust side picks it up via
# `std::env::var`. Vite reads `.env`/`.env.local` natively for the
# renderer. Existing shell env wins — set values here are a fallback.
# Only debug builds read `.env` at runtime. In a debug build
# (`npm run dev:tauri`), `dotenvy` loads it into the backend's process env
# at the top of `serve_with_routing_setup` so the Rust side picks it up via
# `std::env::var`. Release builds never read it: a project's `.env` in the
# directory Fleetify is launched from must not configure the app. Existing
# shell env wins — set values here are a fallback.
#
# Vite reads `.env`/`.env.local` natively for the renderer: the dev server
# exposes the `VITE_*` values, and `vite build` inlines them into the bundle.

# PostHog product analytics. Both halves should match so backend + frontend
# events flow into the same PostHog project. Keys are `phc_*` public keys
Expand All @@ -17,7 +22,8 @@ VITE_POSTHOG_HOST=https://us.i.posthog.com
# Not Diamond — Fleet-owned routing key for the "Auto" model picker. Read at
# runtime by the backend (std::env::var). Fleet's own key, independent of any
# Not Diamond a user connects in Settings → Routers. Unset ⇒ Auto falls back to
# the offline built-in router.
# the offline built-in router. Development only: never set it in CI or in
# release builds.
NOTDIAMOND_API_KEY=

# Model catalog API — the published provider/model catalog the picker fetches at
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ fleet.db-wal
fleet.db-shm
*.premerge-bak
src-tauri/gen
# tauri-build rewrites these on every build, from src-tauri/src/app_commands.rs.
src-tauri/permissions/autogenerated
src-tauri/binaries
.env
.env.*
Expand Down
15 changes: 8 additions & 7 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,22 +241,23 @@ Pre-1.0 this still triggers only a minor bump (we're 0.x — semver lets us brea

## Telemetry & analytics

Fleetify ships two independent telemetry channels. Both default to user
choice; neither leaks prompt content, API keys, or file paths.
Fleetify ships two independent telemetry channels. Dashboard sync is on by
default and can be turned off in Settings → Privacy; product analytics is
off until the user turns it on. `docs/ANALYTICS.md` lists what each one
sends.

| Channel | Vendor | Default | Toggle | Outbox |
|---|---|---|---|---|
| Anonymous usage analytics | Fleetify cloud (`fleetify.dev`, WebSocket) | **ON** | Settings → Privacy → "Anonymous usage analytics" | `~/.fleetify/telemetry-outbox.sqlite` |
| Crash reports | Fleetify cloud | **ON** | Settings → Privacy → "Crash reports" | (same outbox) |
| Product analytics | PostHog Cloud (US, HTTP `/batch`) | **OFF** | Settings → Privacy → "Product analytics (PostHog)" | `~/.fleetify/posthog-outbox.sqlite` |
| Dashboard sync | Fleetify cloud (`fleetify.dev`, WebSocket) | **ON** | Settings → Privacy → "Dashboard sync" | `~/.fleetify/telemetry-outbox.sqlite` |
| Product analytics | PostHog Cloud (US, HTTP `/batch`) | **OFF** | Settings → Privacy → "Product analytics" | `~/.fleetify/posthog-outbox.sqlite` |

### PostHog integration

- **Code:** backend module at `crates/fleetify-backend/src/services/telemetry/posthog/`; frontend wrapper at `src/lib/posthog.ts`.
- **Fan-out:** the existing `services/telemetry/emitters.rs::enqueue_payload` writes to both the Fleetify cloud outbox AND the PostHog outbox (the latter via `posthog::enqueue_if_enabled`, gated on a runtime `AtomicBool`).
- **distinct_id:** the persisted `device_id` from `device.json` is reused on both sides. Frontend `posthog.identify(user_id)` after OAuth merges the anonymous person into the authenticated one via `$anon_distinct_id`.
- **distinct_id:** the persisted `device_id` from `device.json` is reused on both sides. Frontend `posthog.identify(user_id)` runs at sign-in, at each launch while signed in, and at opt-in, and only while product analytics is on; it merges the anonymous person into the authenticated one via `$anon_distinct_id`, with the id only (`before_send` strips `$set` / `$set_once`).
- **Env keys:** `POSTHOG_API_KEY` (Rust, runtime `std::env::var`) and `VITE_POSTHOG_KEY` (Vite, `import.meta.env`). Unset → backend `init` short-circuits and the renderer wrapper no-ops. `POSTHOG_HOST` / `VITE_POSTHOG_HOST` default to `https://us.i.posthog.com`.
- **Runtime gate:** `telemetry_set_posthog_enabled` Tauri command persists the flag in `fleet.config.json::telemetry.posthog_enabled` AND flips the backend's `ENABLED` atomic live. Live opt-out stops new sends within ~10 s; renderer's `optOut()` stops autocapture immediately.
- **Runtime gate:** `telemetry_set_posthog_enabled` Tauri command persists the flag in `fleet.config.json::telemetry.posthog_enabled` AND flips the backend's `ENABLED` atomic live. Live opt-out stops new sends within ~10 s; the renderer's `optOut()` opts posthog-js out at once and drops every request it would still make, queued events and retries included.

### Local dev

Expand Down
Loading
Loading