Skip to content

Add sequant dashboard CLI command #116

Closed

Description

@admarble

Summary

Add a CLI command to start the local dashboard web server.

Usage

sequant dashboard
# → Starts server on localhost:3000
# → Auto-opens browser
# → Watches .sequant/state.json for changes

sequant dashboard --port 8080  # Custom port
sequant dashboard --no-open    # Don't auto-open browser

Implementation

  • Add src/commands/dashboard.ts
  • Wire up in CLI entry point
  • Start Hono server from dashboard/server.ts
  • Use open package to launch browser

Acceptance Criteria

  • sequant dashboard starts local server
  • Auto-opens browser by default
  • --port flag for custom port
  • --no-open flag to skip browser launch
  • Graceful shutdown on Ctrl+C
  • Clear console output showing URL

Dependencies

Activity

  1. added
    cli
    enhancement
    on Jan 18, 2026
  2. admarble commented on Jan 19, 2026

    @admarble
    ContributorAuthor

    Plan Review: #116 - Add sequant dashboard CLI command

    Status: Superseded by #114

    After analysis, Issue #114 (Explore dashboard visualization options) has already implemented the complete functionality requested in this issue.

    Acceptance Criteria Verification

    AC Requirement Status Implementation
    AC-1 sequant dashboard starts local server ✅ Done src/commands/dashboard.ts calls startDashboard()
    AC-2 Auto-opens browser by default ✅ Done Uses open package, openBrowser: true by default
    AC-3 --port flag for custom port ✅ Done -p, --port <port> option, default 3456
    AC-4 --no-open flag to skip browser ⚠️ Naming Implemented as --no-browser
    AC-5 Graceful shutdown on Ctrl+C ✅ Done SIGINT handler with watcher cleanup
    AC-6 Clear console output showing URL ✅ Done Shows ⚗️ Sequant Dashboard starting on http://localhost:PORT

    Minor Gaps

    1. Flag naming: --no-open (specified) vs --no-browser (implemented)

      • Recommendation: Keep --no-browser - it's more descriptive
    2. Default port: Example shows 3000, implementation uses 3456

      • Recommendation: Keep 3456 - avoids common dev server conflicts

    Verification Criteria

    When #114 merges, verify:

    • sequant dashboard starts server and opens browser
    • sequant dashboard --port 8080 uses custom port
    • sequant dashboard --no-browser skips browser open
    • Ctrl+C shuts down gracefully

    Recommendation

    Close this issue as complete once #114 is merged. All AC are satisfied by the existing implementation.


    Plan generated by /spec 116

  3. added
    planned
    on Jan 19, 2026
  4. added 3 commits that reference this issue on Jan 19, 2026
  5. admarble commented on Jan 19, 2026

    @admarble
    ContributorAuthor

    Plan Update: #116 - Superseded by #114

    Status: ✅ All AC Satisfied by #114

    After verification, Issue #114 (Explore dashboard visualization options) implements all acceptance criteria for this issue.

    Acceptance Criteria Verification

    AC Requirement Status Implementation
    AC-1 sequant dashboard starts local server ✅ Done src/commands/dashboard.ts:42-46 calls startDashboard()
    AC-2 Auto-opens browser by default ✅ Done dashboard/server.ts:668-671 uses open package
    AC-3 --port flag for custom port ✅ Done bin/cli.ts: -p, --port <port> option
    AC-4 --no-open flag to skip browser ✅ Done bin/cli.ts: --no-open option
    AC-5 Graceful shutdown on Ctrl+C ✅ Done dashboard.ts:49-55 handles SIGINT/SIGTERM
    AC-6 Clear console output showing URL ✅ Done Shows 📊 Sequant Dashboard + server URL

    Verification Criteria (Post-#114 Merge)

    # AC-1 & AC-6: Start server, verify console output
    sequant dashboard --no-open
    # Expected: "📊 Sequant Dashboard" + "http://localhost:3456"
    
    # AC-3: Custom port
    sequant dashboard --port 8080 --no-open
    # Expected: Server on port 8080
    
    # AC-2 & AC-4: Browser behavior (manual)
    sequant dashboard          # Should open browser
    sequant dashboard --no-open # Should NOT open browser
    
    # AC-5: Graceful shutdown
    # Press Ctrl+C while server running
    # Expected: Clean exit with "Dashboard server stopped"

    Recommendation

    Close this issue as superseded once #114 merges. All functionality is already implemented.

    Cleanup Steps

    1. Merge Explore dashboard visualization options #114 PR
    2. Close this issue with reference to Explore dashboard visualization options #114
    3. Remove stale worktree: git worktree remove worktrees/feature/116-add-sequant-dashboard-cli-command

    Plan updated by /spec 116

  6. added a commit that references this issue on Jan 20, 2026
  7. admarble commented on Jan 20, 2026

    @admarble
    ContributorAuthor

    /fullsolve Complete

    Status: READY_FOR_MERGE

    AC Coverage

    Criterion Status
    sequant dashboard starts local server ✅ MET
    Auto-opens browser by default ✅ MET
    --port flag for custom port ✅ MET
    --no-open flag to skip browser launch ✅ MET
    Graceful shutdown on Ctrl+C ✅ MET
    Clear console output showing URL ✅ MET

    Quality Metrics

    • Tests: 439/439 passed
    • Build: Succeeded
    • Files Changed: 6

    Implementation

    • src/commands/dashboard.ts - CLI command wrapper
    • dashboard/server.ts - Hono server with htmx + SSE (from Explore dashboard visualization options #114)
    • bin/cli.ts - Command registration
    • Dependencies: hono, @hono/node-server, chokidar, open

    PR: #130


    Ready for human review and merge.

  8. admarble commented on Jan 20, 2026

    @admarble
    ContributorAuthor

    ✅ Superseded by #114

    All acceptance criteria for this issue are satisfied by the feature/dashboard branch (originally from #114).

    Why PR #130 was closed

    PR #130 had an SSE bug that prevented live updates from working. The fix was applied to feature/dashboard branch instead.

    New PR

    PR #131 (feature/dashboard → main) contains:

    • Complete dashboard implementation
    • SSE fix for reliable live updates
    • Smoke tested with real data
    • All 6 acceptance criteria met

    Verification

    All AC verified working:

    • ✅ sequant dashboard starts local server
    • ✅ Auto-opens browser by default
    • ✅ --port flag for custom port
    • ✅ --no-open flag to skip browser launch
    • ✅ Graceful shutdown on Ctrl+C
    • ✅ Clear console output showing URL
    • ✅ SSE live updates working (bonus!)
  9. added a commit that references this issue on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clienhancementplanned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions