fix(apps): send workflowId not path from CLI; wire sandboxRoot and systemPromptPath in server; update prompts and fixtures

This commit is contained in:
2026-05-18 21:40:17 +04:00
parent 5c3a8fda63
commit d2518849d7
12 changed files with 63 additions and 18 deletions
@@ -97,6 +97,9 @@ class RunCommand : CliktCommand(name = "run") {
}
}
private fun resolveWorkflowId(path: String): String =
java.nio.file.Path.of(path).fileName.toString().removeSuffix(".toml")
private suspend fun startSession(
client: HttpClient,
host: String,
@@ -105,7 +108,7 @@ class RunCommand : CliktCommand(name = "run") {
): String? = runCatching {
val resp = client.post("http://$host:$portInt/sessions") {
contentType(ContentType.Application.Json)
setBody(StartSessionRequest(workflowId = workflow, sessionId = sessionId))
setBody(StartSessionRequest(workflowId = resolveWorkflowId(workflow), sessionId = sessionId))
}
resp.body<StartSessionResponse>().sessionId
}.getOrElse { e ->