Fix #252: header pill follows viewed ref #261
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!261
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-252"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #252. The header ref pill was built from the shared summary Head (ref-blind by design), so it always showed the default branch. The pill is now client composition over a
viewedsignal in the Repo shell context: Tree/Blob/Commits/Commit/CheckDetail publish their resolved {name, sha} (zero new fetches, resolve reuse) and clear on unmount, so non-ref tabs keep the default head. Sha-addressed views show the short sha honestly. Pure derivation in web/src/lib/ref-pill.js (headless-tested); no backend/SDK change, no new deps. Decision appended to docs/go/12_web_ui.md. Tests: node --test 516/516 green, vite+esbuild green. Browser check (branch nav, deep-link, both themes, zero console errors) is OPEN: shared daemon blocks loopback, no private daemon per workspace rules.