Skip to content

chore: remove dead Go symbols, JS modules, and CSS rules#61

Merged
setkyar merged 2 commits into
mainfrom
sc-condensed-cryostat-90bf
Jun 5, 2026
Merged

chore: remove dead Go symbols, JS modules, and CSS rules#61
setkyar merged 2 commits into
mainfrom
sc-condensed-cryostat-90bf

Conversation

@setkyar
Copy link
Copy Markdown
Contributor

@setkyar setkyar commented Jun 5, 2026

Summary

Pure dead-code removal across Go, JS, and CSS — no behavior change. Each
removal was verified unreferenced (deadcode for Go, import-graph and
full-repo grep for JS/CSS), with dynamically-constructed class names
explicitly preserved.

  • Go: dropped unreferenced functions — Server.SetShareRunner /
    Server.SetMetricsSampler (test-claimed setters never called; tests set
    the fields via struct literals), the orphaned serveStaticJS,
    replaceRequired, and an unused test helper.
  • JS: deleted mobile-command-panel.js (superseded by command-menu.js)
    and the dead list-sessions-palette.js re-export shim.
  • JS test: the shim's test was the only coverage for
    shared/session-list-palette.js, so it moves beside that source and
    imports the real implementation directly.
  • CSS: removed 18 unused classes left over from earlier menu and
    model-selector redesigns (e.g. model-dropdown*, command-menu-toggle,
    web-menu-separator). Dynamically-built classes (thinking-${level},
    concat-generated menu *-section classes) were kept.

Related issue

Closes #

Type of change

  • chore — build, tooling, or maintenance

Live vs. Export

  • Considered both the live app and the export snapshot
  • Kept internal/ui/live_templates/ in sync with web/src/session/ changes

The removed CSS lives in internal/ui/live_templates/styles/ (shared by both
the live app and the export snapshot); the dropped classes were dead in both
paths. No live-only chrome was involved.

Testing

  • make check passes (test + build + vet)
  • Frontend tests (vitest) cover the change — 488 passing
  • Go tests (go test ./...) cover the change
  • UI changes verified in a browser — not done (dead CSS renders nothing, so removal is visually inert)

setkyar added 2 commits June 5, 2026 20:18
Drop unreferenced Go functions (test-claimed setters never called,
orphaned export/template helpers), two dead JS modules (a superseded
mobile command panel and a re-export shim), and 18 unused CSS classes
left over from earlier menu/model-selector redesigns.

The palette shim's test was the only coverage for the shared
session-list-palette implementation, so it moves beside that source
and imports it directly. Dynamically-built classes (thinking-${level},
concat-generated menu section classes) are preserved.
@setkyar setkyar merged commit a0e66e2 into main Jun 5, 2026
2 checks passed
@setkyar setkyar deleted the sc-condensed-cryostat-90bf branch June 5, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant