diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-08 17:33:04 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-08 17:33:04 +0200 |
| commit | 944838bb0f753a0920ddb2f506758c410ed7ca43 (patch) | |
| tree | 12d6ae9e2de8878891159e363134a3f07686ed7a /docs/coverage/_internal_logging.out | |
| parent | c802ba5803de1a53749bb5c4ecbc0159fceb385f (diff) | |
Fix amp agent prompt extraction to use TUI box pattern
Amp CLI runs in TUI mode with box-drawing UI (│ text │) similar to
Cursor, not shell-style (> prompt). Updated prompt pattern from
`(?m)>\s*(.+)$` to `(?m)│\s*(.+?)\s*│\s*$` to correctly extract
text from amp's box UI.
Changes:
- internal/tmuxedit/config_agent.go: Update amp promptPat to box pattern
- internal/tmuxedit/config_agent_test.go: Update test to use box format
- docs/usage.md: Document detection order and clear methods for all agents
- docs/tmux.md: Clarify input mode handling (Vim vs Emacs/readline)
- config.toml.example: Add detailed agent descriptions and patterns
- prompts/tmux-edit-integration-tests.md: Add test status, mock editor best practices
Integration tests verified:
- Amp detection: amp/sourcegraph keywords
- Prompt extraction: "hello world test" correctly captured
- End-to-end workflow: text modification and sending works
- Multi-line support: all lines delivered correctly
- All unit tests pass (67/67)
- Coverage: 80.9% (meets requirement)
- Cursor and Claude implementations unchanged
Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'docs/coverage/_internal_logging.out')
| -rw-r--r-- | docs/coverage/_internal_logging.out | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/coverage/_internal_logging.out b/docs/coverage/_internal_logging.out new file mode 100644 index 0000000..1f11658 --- /dev/null +++ b/docs/coverage/_internal_logging.out @@ -0,0 +1,16 @@ +mode: count +codeberg.org/snonux/hexai/internal/logging/chatlogger.go:9.48,11.2 1 1 +codeberg.org/snonux/hexai/internal/logging/chatlogger.go:18.3,20.12 2 1 +codeberg.org/snonux/hexai/internal/logging/chatlogger.go:20.12,22.3 1 1 +codeberg.org/snonux/hexai/internal/logging/chatlogger.go:23.2,25.29 2 1 +codeberg.org/snonux/hexai/internal/logging/chatlogger.go:25.29,28.3 1 1 +codeberg.org/snonux/hexai/internal/logging/logging.go:27.26,27.37 1 1 +codeberg.org/snonux/hexai/internal/logging/logging.go:30.47,31.16 1 3 +codeberg.org/snonux/hexai/internal/logging/logging.go:31.16,33.3 1 0 +codeberg.org/snonux/hexai/internal/logging/logging.go:34.2,35.48 2 3 +codeberg.org/snonux/hexai/internal/logging/logging.go:43.32,43.55 1 1 +codeberg.org/snonux/hexai/internal/logging/logging.go:46.37,47.25 1 2 +codeberg.org/snonux/hexai/internal/logging/logging.go:47.25,48.32 1 2 +codeberg.org/snonux/hexai/internal/logging/logging.go:48.32,50.4 1 0 +codeberg.org/snonux/hexai/internal/logging/logging.go:51.3,51.37 1 2 +codeberg.org/snonux/hexai/internal/logging/logging.go:53.2,53.10 1 0 |
