Repository navigation
feat(native): settings Secrets, Maintenance and Diagnostics pages - #67
Merged
Merged
Conversation
Owner
Author
|
Review round 1: all four findings were real and are fixed in 8b2cfe5 on top of
Gates rerun: clippy (workspace, and app with |
rynfar
force-pushed
the
nw/65-settings
branch
from
November 2, 2026 19:50
6c570a8 to
8b2cfe5
Compare
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.
Problem
The native client had no Settings → Secrets, Maintenance or Diagnostics pages, so secret providers, provider update checks, restart continuation, background activity, artifact and log retention, manual storage cleanup, process signals, trace diagnostics and OTLP export could only be managed on the web. Closes #65 (ledger rows ST-SECRETS, ST-MAINT, ST-DIAG).
Approach
Ported
SecretsSettings.tsxwithSecretProviderDialog.tsx/.logic.ts,MaintenanceSettingsPanel(SettingsPanels.tsx) withBackgroundActivitySettings.tsxandStorageCleanupSections/DatabaseStorageNotice(StorageSettings.tsx), andDiagnosticsSettings.tsxwithTelemetryExportSettings.tsx.settings/secrets.rs:secretProvidersdecode (bad ids and envelopes dropped),classifySecretProvider,secretProviderIdFromName,secretProviderFromDraftwith the web's messages in its order, add/replace/remove payloads, the page states (disconnected, update required, editable only withproviders:manage), andredactedPlaceholderbit for bit.settings/maintenance.rs: update and retention payloads,resolveBackgroundActivityProfileOption,backgroundActivitySharedPolicySettings,backgroundActivityOverrideSettings, the reset rule, the advanced dialog's interval fields (normalizeIntervalSeconds),hasRules(including custom project rules), the cleanup report decode and its row names, sizes and last-run copy, the database compaction notice,formatBytesand atoFixedthat rounds exact ties like JS.settings/diagnostics.rs: process, resource history and trace decode (EffectOptions),visibleProcessTree, process names and types, chart bars and depths,formatDuration/formatCpuTime, last-checked and relative labels, signal replies → toasts, and the telemetry form's overrides, endpoint status, running line and save payload.storageCleanupnow decodes artifact and log retention beside the worktree rules;ServerConfigreadsobservabilityandsecretProviderSettings; capabilities readdatabaseStorageandotlpEndpointCheck.T3CODE_FEATURE_SECRETSset, as on the web; Diagnostics is a detail page whose nav highlights Maintenance.settings/secrets.rs: list with the 1Password mark and the account redacted until clicked, Add provider / Edit dialog (errors after the first submit, Enter submits), Remove with the web's confirmation.settings/maintenance.rs: Updates, Background activity (select + advanced dialog), Database notice, Artifacts and logs, Cleanup (Delete now, last run folded with its results, virtualized past 20), and the link to Diagnostics. Rows this connection cannot write are inert and say why.settings/diagnostics.rs: Live Processes (virtualized tree, collapse, INT, KILL after confirmation), Resource History (window toggle, chart, virtualized table), Trace Diagnostics (open logs folder), Latest Failures, Most Common Failures, Slowest Spans (copy trace ID), Span Logs, Top Span Names, and OpenTelemetry export (Test, Save, Discard).controls.rs:Row::unavailable/title_icon/title_tooltip/description_content,InlineButton, and a shared settings dialog frame.Not ported
partial: the resource monitor (ResourceTelemetryDiagnostics.tsx: resource monitor, host and collection, resource timeline, live process tree, instrumented I/O).Ledger
ST-SECRETS→done,ST-MAINT→done,ST-DIAG→partial, Native =crates/{app,core}/src/settings/{secrets,maintenance,diagnostics}.rs, Issue #65. Web sources now also listSecretProviderDialog*,StorageSettings.tsx,BackgroundActivitySettings.tsx,DatabaseStorageNotice.tsx,ResourceTelemetryDiagnostics.tsxandProcessSignalActions.tsx, so upstream changes to them are triaged.Evidence
settings::secrets::tests::*(8),settings::maintenance::tests::*(12),settings::diagnostics::tests::*(10), includingdraft_validation_matches_the_web,redacted_placeholder_matches_the_web,shared_policy_keeps_custom_intervals_and_drops_preset_ones,an_override_pins_every_resolved_value,has_rules_counts_retention_worktree_rules_and_custom_projects,format_bytes_matches_the_web,durations_match_the_web,collapsing_a_process_hides_its_subtree_onlyandtelemetry_status_follows_overrides_and_checks. Newsecrets_shows_only_behind_its_feature_flag; updatednav_keeps_the_web_order_and_drops_unported_sectionsand the worktree decode test.cargo run -p t3-client --example maintenance_probe -- --allow-write --secrets --maintenance --run-cleanup --telemetry. It adds, renames and removes a 1Password provider; flips provider update checks; picks Battery saver, then custom intervals; sets log retention to its 3650-day maximum and runs Delete now (0 removed); tests an unreachable OTLP endpoint and saves then clears it. Each step is checked restored. Transcript:/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/3ca997f3-68be-482e-8fff-7893917dbe2a/scratchpad/nw65/probe-transcript.txt. Read-only decode:-- --read./private/tmp/claude-501/-Volumes-DevSSD-t3code-native/3ca997f3-68be-482e-8fff-7893917dbe2a/scratchpad/nw65/:maint.png,background-dialog.png,secrets.png,secrets-list.png,secrets-dialog.png,secrets-errors.png,diag.png,diag-tables.png(trace tables, errors clamped to three lines),telemetry.png.--settingsalso takes a settings search id (telemetry-export) and lands on that row;test-t3-nativedocuments it.cargo clippy --workspace --all-targets -- -D warnings✓ (and-p t3-native --features snapshot),cargo test --workspace✓,node scripts/gen-theme.ts --check✓,node --test parity/sync.test.ts✓,node ../../apps/native/conformance/generate.ts --check✓,node apps/native/scripts/vendor-icons.ts --check✓.