Skip to content

Remove broken capture format options#60

Merged
willibrandon merged 2 commits into
mainfrom
fix/capture-format-cleanup
Mar 11, 2026
Merged

Remove broken capture format options#60
willibrandon merged 2 commits into
mainfrom
fix/capture-format-cleanup

Conversation

@willibrandon

Copy link
Copy Markdown
Owner

Summary

  • Remove --format option from sessions capture CLI command — only text produces usable output
  • Remove format parameter from MCP CaptureScreen tool
  • Update agent command help text to reflect the change
  • Update tests: verify --format is now rejected

The ansi, html, and svg formats all produced unusable output: raw cell-by-cell positioning, a 35K-line debugging inspector, and a 1.4MB cell grid respectively.

Fixes #59

Test plan

  • All 15 session CLI tests pass
  • New test verifies --format is rejected with an error
  • sessions capture <pid> returns plain text against a live instance
  • sessions capture --help no longer shows --format

The --format option exposed formats that produced unusable output:
ansi dumped raw cell-by-cell positioning, html returned a 35K-line
debugging inspector, and svg generated a 1.4MB cell grid. Only text
produces practical output for scripting.

Remove --format entirely and hardcode text format in the CLI,
MCP server, and agent help text.

Fixes #59
@willibrandon willibrandon added bug Something isn't working cli CLI subcommands and argument parsing labels Mar 11, 2026
@willibrandon willibrandon self-assigned this Mar 11, 2026
@willibrandon willibrandon added bug Something isn't working cli CLI subcommands and argument parsing labels Mar 11, 2026
@willibrandon willibrandon merged commit a57a2e8 into main Mar 11, 2026
7 of 8 checks passed
@willibrandon willibrandon deleted the fix/capture-format-cleanup branch March 11, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cli CLI subcommands and argument parsing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unsupported capture formats (ansi, html, svg)

1 participant