Skip to content

Commit 2c2f71b

Browse files
committed
fix: update tests
1 parent b4cbdcf commit 2c2f71b

File tree

7 files changed

+1
-71
lines changed

7 files changed

+1
-71
lines changed

lib/msgfmt/message_box.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
// ───────────────
99
// >
1010
// ───────────────
11-
// Used by Goose, and Aider.
11+
// Used by Claude Code, Goose, and Aider.
1212
func findGreaterThanMessageBox(lines []string) int {
1313
for i := len(lines) - 1; i >= max(len(lines)-6, 0); i-- {
1414
if strings.Contains(lines[i], ">") {

lib/msgfmt/testdata/format/codex/multi-line-input/expected.txt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
>_ You are using OpenAI Codex in ~/Documents/work/agentapi
2-
3-
To get started, describe a task or try one of these commands:
4-
5-
/init - create an AGENTS.md file with instructions for Codex
6-
/status - show current session configuration and token usage
7-
/diff - show git diff (including untracked files)
8-
/prompts - show example prompts
9-
10-
user
11-
Which file has this snippet
12-
func formatCodexMessage(message string, userInput string) string {
13-
message = RemoveUserInput(message, userInput)
14-
message = removeCodexInputBox(message)
15-
message = trimEmptyLines(message)
16-
return message
17-
}
18-
191
⚡ Ran command grep -R formatCodexMessage -n .
202
⎿ ./lib/msgfmt/testdata/format/codex/multi-line-input/user.txt:3:func formatCodexMessage(message string, userInput string) string {}
213
./lib/msgfmt/testdata/format/codex/multi-line-input/msg.txt:2:│$ bash -lc 'rg -n "func formatCodexMessage"' │

lib/msgfmt/testdata/format/codex/multi-line-input/msg.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
>_ You are using OpenAI Codex in ~/Documents/work/agentapi
2-
3-
To get started, describe a task or try one of these commands:
4-
5-
/init - create an AGENTS.md file with instructions for Codex
6-
/status - show current session configuration and token usage
7-
/diff - show git diff (including untracked files)
8-
/prompts - show example prompts
9-
101
user
112
Which file has this snippet
123
func formatCodexMessage(message string, userInput string) string {

lib/msgfmt/testdata/format/codex/second_message/expected.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
>_ You are using OpenAI Codex in ~/Documents/work/agentapi
2-
3-
To get started, describe a task or try one of these commands:
4-
5-
/init - create an AGENTS.md file with instructions for Codex
6-
/status - show current session configuration and token usage
7-
/diff - show git diff (including untracked files)
8-
/prompts - show example prompts
9-
10-
user
11-
How many untracked files are there?
12-
131
⚡ Ran command git status --porcelain
142
⎿ M cmd/server/server.go
153
M lib/msgfmt/message_box.go

lib/msgfmt/testdata/format/codex/second_message/msg.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
2-
>_ You are using OpenAI Codex in ~/Documents/work/agentapi
3-
4-
To get started, describe a task or try one of these commands:
5-
6-
/init - create an AGENTS.md file with instructions for Codex
7-
/status - show current session configuration and token usage
8-
/diff - show git diff (including untracked files)
9-
/prompts - show example prompts
10-
111
user
122
How many untracked files are there?
133

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
>_ You are using OpenAI Codex in ~/Documents/work/agentapi
2-
3-
To get started, describe a task or try one of these commands:
4-
5-
/init - create an AGENTS.md file with instructions for Codex
6-
/status - show current session configuration and token usage
7-
/diff - show git diff (including untracked files)
8-
/prompts - show example prompts
9-
10-
user
11-
Think for a very long time and tell me all about Theory of Relativity.
12-
131
▌ • Working (3s • Ctrl C to interrupt)

lib/msgfmt/testdata/format/codex/thinking/msg.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
>_ You are using OpenAI Codex in ~/Documents/work/agentapi
2-
3-
To get started, describe a task or try one of these commands:
4-
5-
/init - create an AGENTS.md file with instructions for Codex
6-
/status - show current session configuration and token usage
7-
/diff - show git diff (including untracked files)
8-
/prompts - show example prompts
9-
101
user
112
Think for a very long time and tell me all about Theory of Relativity.
123

0 commit comments

Comments
 (0)