Repository navigation
Commit a7d6f8e
fix(server): keep sensitive values out of settings reads, startup logs and preview snapshots
Settings: the OpenCode server password is now marked as a secret setting.
It is stored in the secret store instead of settings.json (existing
plain-text values migrate on the next load), and settings reads, updates,
config snapshots and settingsUpdated events return the redaction marker.
isSecretSetting also treats any password-control form field as secret.
Settings forms get a clear button for saved secret fields, and the
Antigravity guide no longer says its API key is stored in plain text.
Startup logs: the web-mode pairing URL, which carries a one-time admin
token, is printed straight to stdout instead of going through the
structured logger, so it no longer reaches the trace file or OTLP log
export. The browser auto-open for that URL runs with tracing disabled so
failed-launch spans do not record it, and the fallback hint points at the
printed URL instead of repeating it.
Preview snapshots: preview_snapshot reads the values of password fields
(and text fields drawn as dots by CSS) from an isolated world in each
frame, and masks those values wherever the accessibility tree and
visibleText print them, keeping roles and refs intact. The capture fails
rather than returning a tree it cannot vouch for, and finishes within 10s
including one retry.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent f5cb328 commit a7d6f8e
11 files changed
Lines changed: 523 additions & 43 deletions
File tree
- apps
- server/src
- preview
- web/src/components/settings
- docs/user
- packages
- contracts/src
- provider-opencode/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
127 | 159 | | |
128 | 160 | | |
129 | 161 | | |
| |||
0 commit comments