Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/msgfmt/message_box.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func findGreaterThanMessageBox(lines []string) int {
func findGenericSlimMessageBox(lines []string) int {
for i := len(lines) - 3; i >= max(len(lines)-9, 0); i-- {
if strings.Contains(lines[i], "───────────────") &&
(strings.Contains(lines[i+1], "|") || strings.Contains(lines[i+1], "│")) &&
(strings.Contains(lines[i+1], "|") || strings.Contains(lines[i+1], "│") || strings.Contains(lines[i+1], "❯")) &&
strings.Contains(lines[i+2], "───────────────") {
return i
}
Expand Down
6 changes: 3 additions & 3 deletions lib/msgfmt/testdata/format/claude/auto-accept-edits/msg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
3. Use Claude to help with file analysis, editing, bash commands and git
4. Be as specific as you would with another engineer for the best results

──────────────────────────────────────────────────────────────────────────────╮
│ > │
──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
⏵⏵ auto-accept edits on (shift+tab to ✓ Update installed • Restart to
toggle) apply
6 changes: 3 additions & 3 deletions lib/msgfmt/testdata/format/claude/first_message/msg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
3. Use Claude to help with file analysis, editing, bash commands and git
4. Be as specific as you would with another engineer for the best results

──────────────────────────────────────────────────────────────────────────────╮
│ > Try "refactor handler.go" │
──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
? for shortcuts
5 changes: 3 additions & 2 deletions lib/msgfmt/testdata/format/claude/multi-line-input/msg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
⏺ This code is from
/Users/hugodutka/dev/agentapi/chat/src/components/ChatInterface.tsx

╭──────────────────────────────────────────────────────────────────────────────╮
│ > │
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
}


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
? for shortcuts ⧉ In message_box.go

6 changes: 3 additions & 3 deletions lib/msgfmt/testdata/format/claude/second_message/msg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

⏺ I'm doing well! How can I help you with your coding project today?

──────────────────────────────────────────────────────────────────────────────╮
│ >  │
──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
? for shortcuts