Skip to content

Commit 7b68520

Browse files
committed
fix and release v0.0.4
1 parent b59a343 commit 7b68520

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "love.forte.tools"
8-
version = "0.0.3"
8+
version = "0.0.4"
99

1010
allprojects {
1111
repositories {

codex-kkp-cli/src/commonTest/kotlin/codex/CodexCommandBuilderTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class CodexCommandBuilderTest {
121121
val config = CodexExecConfig(workingDirectory = testDir, session = "abc-123")
122122
val command = CodexCommandBuilder.build("继续任务", config)
123123

124-
assertTrue(command.contains("--session abc-123"))
124+
assertTrue(command.contains("resume abc-123"))
125125
}
126126

127127
@Test
@@ -133,7 +133,7 @@ class CodexCommandBuilderTest {
133133
)
134134
val command = CodexCommandBuilder.build("继续修复", config)
135135

136-
assertTrue(command.contains("--session abc-123"))
136+
assertTrue(command.contains("resume abc-123"))
137137
assertTrue(command.contains("--full-auto"))
138138
}
139139

@@ -207,7 +207,7 @@ class CodexCommandBuilderTest {
207207
assertTrue(command.contains("--skip-git-repo-check"))
208208
assertTrue(command.contains("--image ./img1.png"))
209209
assertTrue(command.contains("--image ./img2.png"))
210-
assertTrue(command.contains("--session session-123"))
210+
assertTrue(command.contains("resume session-123"))
211211
assertTrue(command.endsWith("完整任务"))
212212
}
213213

codex-kkp-sdk/src/commonMain/kotlin/love/forte/tools/codexkkp/sdk/CodexCommandBuilder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ object CodexCommandBuilder {
5555
add(escapeArg(image))
5656
}
5757

58-
// --session=<id>
58+
// --session=<id> -> resume <id>
5959
config.session?.let {
60-
add("--session")
60+
add("resume")
6161
add(escapeArg(it))
6262
}
6363

0 commit comments

Comments
 (0)