Repository navigation
feat(native): settings sharing & access, worktrees, source control, scheduled tasks - #52
Merged
Merged
Conversation
…ules, branch naming, cleanup
…links with QR, revoke
…ebhook filters, local start, exact intervals, policy clamp, cached QR
Owner
Author
|
Review follow-up in 6cf459b. All six findings were real and are fixed. None were dismissed.
New tests cover 2–5. Gates rerun on the latest |
This was referenced Nov 2, 2026
Open
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.
The native settings modal had no Sharing & access, Worktrees, Source control or Scheduled tasks pages, so pairing a phone, revoking a client, or changing worktree, merge and writing defaults still meant opening the web app.
What ships
Four new settings sections, registered in the web's nav order (
SETTINGS_NAV_GROUPS) with theirsettingsSearch.tsentries. Logic, wire decoding and payloads live incrates/core/src/settings/{access,worktrees,source_control,scheduled_tasks}.rsand have tests; the views are incrates/app/src/settings/.AuthorizedClientsSettings.tsx, the access parts ofConnectionsSettings.tsx). Shows the environment's version and a Permissions disclosure with this connection's grants. Pairing links and authorized clients followsubscribeAuthAccess(snapshot, upsert and remove events). Create link has a client label, the Read only and Standard presets, and the 16 scope checkboxes (using terminals turns on viewing them), with the web's notices. Created links show Share: the<server>/pair#token=…URL, Copy link, Copy code only, and a QR code. The QR is built with theqrcodecrate (ECC M, one-module margin) and drawn as quads on a canvas. A loopback server gets the code only, as on the web. Revoke works per link and per client; the current session has no Revoke. Revoke others calls/api/auth/clients/revoke-others. The server fixes link TTL at 5 minutes and has no TTL field, so the native app has no TTL control either. The expiry countdown ticks once a second, and only while a link is visible on this page.WorktreesSettings.tsx,BranchNamingSettings.tsx,WorktreeSubmodulesRow,WorktreesDirectoryRow,WorktreeCleanupSection). Worktree location (gated oncapabilities.worktreesDirectory), Start from remote, Submodules under Advanced, branch naming (static prefix, semantic with its status line, custom instructions), and cleanup. Cleanup covers deleted, merged and inactive worktrees with theRetentionControlday field. Advanced adds settled worktrees (gated onsettledWorktreeCleanup), unchanged worktrees, and keep-when (gated onstorageCleanupRun). Cleanup reads throughresolveWorktreeCleanup, so aworktreeCleanuppolicy wins overstorageCleanup.SourceControlSettings.tsx, the source-control rows ofProjectDefaultsSettings.tsx,SourceControlWritingSettings.tsx). Repositories: automatic pull, remove agent credits, and default merge method. The Version Control and Source control providers lists come fromserver.discoverSourceControl, which encodes EffectOptionfields as_tagobjects. Rows have status dots, versions, Coming Soon and Not authenticated badges, the web's summaries, the account hidden until clicked, and Rescan. Writing & review: writing style with custom instructions, review guides with their model and instructions, and under Advanced, follow templates and the writer model.ScheduledTasksSettings.tsx,scheduledTasksSettings.logic.ts,scheduledTaskWebhook.ts). The list followsscheduledTasks.subscribeand replaces itself on every item. Rows show the schedule label, state (paused, listening, next run in …, policy block), the last-run badge and error, an enable switch, and a "…" menu with Edit, Run now (not on webhook tasks) and Delete. The editor has name, destination, project, workspace (new worktree with base branch and start from remote, project checkout, or a specific checkout), prompt, model, schedule (at a time with day toggles, once, every interval, on webhook) and enabled. It validates with the web's messages and buildsScheduledTaskUpsertInputthe way the web does. Once is gated oncapabilities.oneTimeSchedules.Shared controls gained two small, generic additions:
Row::status(theSettingsRowstatus line) andSwitch::disabled. Three lucide icons are vendored: calendar-clock, shield-check and qr-code.Not ported (noted for follow-up)
SourceControlTokenSettings,SourceControlAccountSettings,SourceControlHostSettings, app sign-in) and the model traits picker. Host rows show discovery only, and secrets are never shown.YYYY-MM-DD HH:MMfield instead ofdatetime-local, and a text field for the base branch instead of a branch picker.Ledger
ST-WORKTREES and ST-SHARING are done. ST-SOURCECTL and ST-SCHEDULED are partial, with the gaps listed above.
Evidence
Offscreen snapshots (
--settings <section>) against the smoke server:/private/tmp/claude-501/-Volumes-DevSSD-t3code/31a183a0-8354-4d43-b031-d9f81d50685d/scratchpad/w16-worktrees.png/private/tmp/claude-501/-Volumes-DevSSD-t3code/31a183a0-8354-4d43-b031-d9f81d50685d/scratchpad/w16-sourcecontrol.png/private/tmp/claude-501/-Volumes-DevSSD-t3code/31a183a0-8354-4d43-b031-d9f81d50685d/scratchpad/w16-scheduledtasks.png(a disabled probe task, deleted afterwards)/private/tmp/claude-501/-Volumes-DevSSD-t3code/31a183a0-8354-4d43-b031-d9f81d50685d/scratchpad/w16-access.png(the share panel was injected for this capture only, to show the QR drawing; real links show it after Create link)Wire transcript from the new
access_probeexample against the smoke server. Every write was undone: the link was revoked, the task deleted and the setting restored.Gates:
cargo test --workspace,cargo clippy --workspace --all-targets -- -D warnings,node scripts/gen-theme.ts --check,node --test parity/sync.test.ts,node conformance/generate.ts --check.Unverified: clicks in a real window (screen recording was not used; views were captured offscreen), and scanning the QR with a phone.
Model: Claude Opus 5.5 · Harness: Claude Code (factory worker W16)