In the clone dropdown it uses the wrong protocol #124
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub#124
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
It shows "https" in the menu pill, but the actual text says http. It should say https.
Remove the "git" and the little container below that too. Those are artifacts of the first attempt.
Fixed by #131 — pill label now derives from the advertised clone_url scheme (HTTP vs HTTPS) so pill and text agree, URL shown verbatim so the command works; dead git block removed. Verified in real Chromium (both toggles, dark+light, zero console errors) and node --test 295/295.
PR #131 review (fix/issue-124,
e3cf334) — APPROVED, ready to merge.Honesty rule sound: pill derives from the advertised scheme (web/src/lib/clone.js:28-30 httpProtoLabel: HTTPS only for /^https:/i, else HTTP) and the text shows summary.clone_url verbatim (web/src/pages/Repo.jsx:74-77). Pill and text agree by construction in both modes (http->label+verbatim URL; ssh->SSH+ssh://, derivation unchanged). Command works because the verbatim URL is what the server advertised. Proxy case: http-behind-TLS-proxy still shows HTTP + http:// URL, which works via the proxy 301 — honest, not misleading; X-Forwarded-Proto follow-up is noted in the doc entry, correctly scoped out.
No upgrade-to-https breakage: nothing upgrades http->https for display; LAN plain-http stays working.
Dead block fully removed: trailing
SSH toggle unaffected and correct: sshCloneUrl unchanged (host reuse, HTTP port dropped); existing ssh tests untouched and passing.
Tests pin agreement: web/test/unit/clone.test.js:21-29 covers https/HTTPS->HTTPS, http/LAN/garbage/null/undefined->HTTP. No new deps (4 files: clone.js, Repo.jsx, clone.test.js, 12_web_ui.md). Dark+light: no theme classes changed; solid panel + dark: variants intact. Doc note accurate (decision (a), rejection rationale with live verification, follow-up scoped).
Verify (scratch worktree /tmp/opencode/pr131 @
e3cf334): node --test web/test/unit/*.test.js 295/295 pass (first run showed 2 fails from missing node_modules in the fresh worktree — env gap, resolved by symlinking main web/node_modules, unrelated to PR); clone.test.js 9/9; vite build clean (116 modules). No browser per task instructions (node tests + reasoning). BEFORE screenshot confirms the reported mismatch (HTTPS pill vs http:// text + duplicated git block).No fixes pushed — nothing to fix. MERGE RECOMMENDATION: ready to merge.
Fixed by PR #131 (review: honesty-by-construction verified, dead block gone; 295/295 node tests), merged. Closing.