Skip to content

Conversation

@JoeColeman95
Copy link
Contributor

@JoeColeman95 JoeColeman95 commented Dec 23, 2025

Description

At the moment this is in draft, but in essence it aims to remove bubbletea deps and align text output for table views. It adds a pager as it's one of the same, and adds a progress bar. At the moment, this refactors stop.go entirely, and makes some substantial changes to list and view for the new functionality to be put in place (and bubbletea stripped).

Removed internal/agent as it was no longer required

Adds global --no-pager flag

Will respect NO_COLOR and TERM=dumb

Quite a substantial amount of work to go, but the groundwork is done, it's just a case of blanket changing now

Changes

Testing

  • Tests have run locally (with go test ./...)
  • Code is formatted (with go fmt ./...)

Disclosures / Credits

Used Claude for the progress bar test and to sanity check no-TTY/NO_COLOR/TERM=dumb behaviour as wasn't 100% based off the docs. Also the occasional minor suggestions for optimisation such as a loop being changed to a min/slice. Have tested all changed loops and validated they still work. Test passes, too.

Adding table.go to handle output to a table format (adds dep runewidth to properly scale)
Adding pager.go to handle paging
Adding color.go to respect NO_COLOR
Slightly reworked metadata here to be able to output the queue cleanly in the table view
- Replaced Bubble Tea bulk stop with fmt progress bar (using shared progress bar helper)
- Added ASCII-only output, delaying error printing, with a limit clamp
- Removed Bubble Tea import
- Removed all bubble tea deps from internal/agent
- Moved the single use functions in view.go internal to just be in view.go itself as they don't need to be exported
- Removed internal/agent entirely as it was empty :~)
- Uses output.Table and pager for --output text
- Refactored output once through the pager as was trying to write data on the fly
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.

2 participants