You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(config): widen heuristic scan to all config texts, stabilize fingerprints
Two review findings on the template-derived fetch fallback:
The heuristic scanned only the unanalyzable segment's own templates and
options, but unanalyzability can be caused by a text OUTSIDE the
segment - another segment laundering a cross-reference through a
variable, or a global template. In that shape the field name that
defeated the analysis was never scanned, the probe stayed off, and
with the fetch options gone there was no user-side fix. ResolveFieldSets
now assembles the whole-config text corpus (every segment's templates
and templated options plus the global nil-context strings) once and
stamps it on each unanalyzable segment; the fallback scan covers it
all. The stamp gained a field, so fieldSetAnalysisVersion bumps.
templatedOptionValues iterated option maps in Go's randomized order,
and the collected sources feed the unanalyzable cache-key fingerprint:
any segment with two or more templated option values got a fresh key
per process, so its snapshots never hit and stale entries piled up.
Collection now sorts map keys recursively, making the delivered order -
and the fingerprint - stable across parses.
Also strips the removed fetch_* keys from the src/test fixtures and
updates the segment-docs skill's worked example off the deleted
FetchStatus const.
Acknowledged default changes now stated in the git segment docs'
migration note: the default config's statusline derives the upstream
icon its old explicit fetch_upstream_icon: false suppressed; the svn,
mercurial and jujutsu default templates fetch status by default; and
jujutsu's default rendering requires the jj binary.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M4RA9ZrP7vuqVSR7nddNiQ
0 commit comments