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
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ nonisolated enum CloudSessionActionCatalog: ActionCatalogGroup {

/// `--prompt-id`: the caller's id for the prompt; acpmux runs one id once.
static var promptID: ActionArgument {
ActionArgument(name: "prompt-id", title: String(localized: "argument.cloudRelayChat.promptID", defaultValue: "Prompt ID", table: "CloudSessionActions", bundle: .module),
ActionArgument(name: "promptId", title: String(localized: "argument.cloudRelayChat.promptID", defaultValue: "Prompt ID", table: "CloudSessionActions", bundle: .module),
kind: .string, isRequired: false)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ extension CloudStartSession {
let code = isAgent(invocation) ? "cloud.relay.agent_run" : "cloud.relay.refused"
return CloudHandlers.result("cloud relay chat", context) { notSent(code, refusal.message) }
}
let promptID = (invocation["prompt-id"]?.stringValue?.trimmingCharacters(in: .whitespaces)).flatMap { $0.isEmpty ? nil : $0 }
let promptID = (invocation["promptId"]?.stringValue?.trimmingCharacters(in: .whitespaces)).flatMap { $0.isEmpty ? nil : $0 }
// A person's run waits for the whole turn and shows the reply, or why there is none.
guard CloudHandlers.origin(of: invocation) != .user else {
return CloudHandlers.runTracked("cloud relay chat", context) {
Expand Down
Loading