feat: prompt returns answer to caller + commit on own header line
This commit is contained in:
parent
c5ef006414
commit
996f74b24f
5 changed files with 15 additions and 9 deletions
|
|
@ -390,8 +390,12 @@ def cmd_prompt(args):
|
|||
body = {"message": args.message}
|
||||
if args.title:
|
||||
body["title"] = args.title
|
||||
_req("POST", f"/sessions/{sid}/prompt", json=body)
|
||||
print(f"User confirmed prompt on session {sid!r}.")
|
||||
resp = _req("POST", f"/sessions/{sid}/prompt", json=body)
|
||||
answer = resp.get("answer", "")
|
||||
if answer:
|
||||
print(answer)
|
||||
else:
|
||||
print(f"Prompt confirmed (no answer returned).")
|
||||
|
||||
|
||||
def cmd_wait_for_window(args):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue