Remove timeline --watch - #646
Merged
Merged
Conversation
`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. The shipped agent instructions pointed at it, so an agent following the skill hung. Remove the feature rather than gate it. A live-polling TUI does not belong in a CLI whose 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 bubbletea launcher instead of adding a fourth thing that must remember to check. This is a user-visible removal: `--watch`/`-w` and `--interval` are gone and now produce an unknown-flag usage error. Both flags are recorded in `.surface-breaking` as acknowledged surface removals (release-scoped; that file is cleared after each release). `formatEvent`, `watchLabel`, `watchModel` and their tests went with them — all were reachable only from watch mode.
There was a problem hiding this comment.
Pull request overview
Removes the unsafe, non-interactive timeline watch TUI while preserving one-shot timeline output.
Changes:
- Removes
--watch,-w,--interval, and watch-only code/tests. - Updates CLI surface snapshots and agent documentation.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.surface |
Removes timeline watch flags from the public surface. |
.surface-breaking |
Acknowledges the intentional breaking removals. |
internal/commands/timeline.go |
Removes watch flags, TUI implementation, and dependencies. |
internal/commands/timeline_test.go |
Deletes watch-only tests. |
skills/basecamp/SKILL.md |
Removes agent guidance referencing watch mode. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Removes
basecamp timeline --watch(and its-wshorthand and--intervalcompanion) along with everything reachable only from it:
watchModeland itsbubbletea
Init/Update/View,formatEvent,watchLabel,runTimelineWatch, and the tests that covered only those two helpers.This is a user-visible removal.
--watch,-wand--intervalnow producean unknown-flag usage error. Both long flags are recorded in
.surface-breakingas acknowledged surface removals — release-scoped, since that file is cleared
after each release. Shorthands aren't recorded in
.surface, so-wneeds noentry.
Why
runTimelineWatchreachedtea.NewProgramwith no interactivity check of anykind — no
app.IsInteractive(), noIsMachineOutput(), nostdinarg.InteractiveStdio(). The view setAltScreen = true, sobasecamp timeline --watch --json,--agent, or any piped invocation entered afull-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 throughisInteractiveTTY, andbasecamp tuiis dev-build plus experimental-flaggated. Worse, the shipped agent instructions pointed straight at it —
skills/basecamp/SKILL.mdlistedbasecamp timeline --watchunqualified inboth 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 checkpasses (viabin/ci) — including the surface snapshot vs.surface-breakinggate and skill drift on both skillsSmoke:
timeline --helpno longer lists--watch/--intervaland the Long help nolonger mentions polling.
basecamp timeline --jsonis unaffected.Audited every remaining
tea.NewProgram—internal/commands/tui.go:115(devbuild +
experimental.tui),internal/tui/picker.go:505,527(resolver-gated),internal/tui/paginated_picker.go:393andinternal/tui/spinner.go:159(bothdead code, zero callers). No ungated launcher remains.
Summary by cubic
Removes
basecamp timeline --watch(and-w/--interval) to eliminate an ungatedbubbleteaTUI 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.runTimelineWatch,watchModeland itsInit/Update/View,formatEvent,watchLabel, and their tests..surface-breakingand drops flags from.surface; updates help andskills/basecamp/SKILL.mdto remove watch references.tea.NewProgrampaths; all are gated via resolver or dev/experimental controls.--watch,-w, and--intervalfrom scripts and docs. Usebasecamp timelinewith--limit,--all, or--pageas needed.Written for commit 4dded08. Summary will update on new commits.