Remove timeline --watch

Merged
JE
3mo ago
+4-436

What

Removes basecamp timeline --watch (and its -w shorthand and --interval
companion) along with everything reachable only from it: watchModel and its
bubbletea Init/Update/View, formatEvent, watchLabel,
runTimelineWatch, and the tests that covered only those two helpers.

This is a user-visible removal. --watch, -w and --interval now produce
an unknown-flag usage error. Both long flags are recorded in .surface-breaking
as acknowledged surface removals — release-scoped, since that file is cleared
after each release. Shorthands aren't recorded in .surface, so -w needs no
entry.

Why

runTimelineWatch reached tea.NewProgram with no interactivity check of any
kind
— no app.IsInteractive(), no IsMachineOutput(), no
stdinarg.InteractiveStdio(). The view set AltScreen = true, so
basecamp timeline --watch --json, --agent, or any piped invocation entered a
full-screen program that exited only on a key event or SIGINT.

It was the only reachable ungated bubbletea launcher in the repo. Every picker
path goes through resolve.Resolver.IsInteractive, the profile picker through
isInteractiveTTY, and basecamp tui is dev-build plus experimental-flag
gated. Worse, the shipped agent instructions pointed straight at it —
skills/basecamp/SKILL.md listed basecamp timeline --watch unqualified in
both the quick-reference table and the examples block, so an agent following the
skill hung.

Removing it rather than gating it: a live-polling TUI does not belong in a CLI
whose whole contract is one-shot machine-readable output. It can come back with
the actual TUI workspace, where it has somewhere to live. This also deletes the
last ungated launcher instead of adding a fourth thing that has to remember to
check.

Same family as #641/#645 — an agent invocation that hangs.

Testing

  • make check passes (via bin/ci) — including the surface snapshot vs
    .surface-breaking gate and skill drift on both skills

Smoke:

$ basecamp timeline --watch --json
{"ok": false, "error": "Unknown option: --watch", "code": "usage"}   exit=1
$ basecamp timeline -w --json
{"ok": false, "error": "Unknown option: -w", "code": "usage"}        exit=1

timeline --help no longer lists --watch/--interval and the Long help no
longer mentions polling. basecamp timeline --json is unaffected.

Audited every remaining tea.NewProgram — internal/commands/tui.go:115 (dev
build + experimental.tui), internal/tui/picker.go:505,527 (resolver-gated),
internal/tui/paginated_picker.go:393 and internal/tui/spinner.go:159 (both
dead code, zero callers). No ungated launcher remains.


Summary by cubic

Removes basecamp timeline --watch (and -w/--interval) to eliminate an ungated bubbletea TUI that entered alt-screen without interactivity checks and could hang non-interactive runs. These flags now return an unknown-option usage error; timeline remains a one-shot CLI.

  • Deletes watch-only code: runTimelineWatch, watchModel and its Init/Update/View, formatEvent, watchLabel, and their tests.
  • Records removals in .surface-breaking and drops flags from .surface; updates help and skills/basecamp/SKILL.md to remove watch references.
  • Audits remaining tea.NewProgram paths; all are gated via resolver or dev/experimental controls.
  • Migration: remove --watch, -w, and --interval from scripts and docs. Use basecamp timeline with --limit, --all, or --page as needed.