From 9191f591466aafa6de972e8266bd2b64aebeac30 Mon Sep 17 00:00:00 2001 From: Federico Jaramillo Martinez Date: Mon, 27 Jul 2026 01:17:48 +0200 Subject: [PATCH] docs: document ask_user question forms --- .changeset/ask-user-question-forms.md | 5 +++ docs/config.html | 47 +++++++++++++++++++++++++-- docs/config.md | 18 ++++++++-- 3 files changed, 65 insertions(+), 5 deletions(-) create mode 100644 .changeset/ask-user-question-forms.md diff --git a/.changeset/ask-user-question-forms.md b/.changeset/ask-user-question-forms.md new file mode 100644 index 0000000..9ba1f9e --- /dev/null +++ b/.changeset/ask-user-question-forms.md @@ -0,0 +1,5 @@ +--- +"@jmfederico/pi-web": patch +--- + +Add an `ask_user` session tool that lets agents post structured question sets as one browser form. Agents end their run while the form waits; users can submit full or partial answers, unanswered questions are reported explicitly, pending forms survive browser and web/API reconnects, and closed forms remain readable in the transcript. Disable the tool with `askUser: false` or `PI_WEB_ASK_USER=false`. diff --git a/docs/config.html b/docs/config.html index cb53e8a..fd57961 100644 --- a/docs/config.html +++ b/docs/config.html @@ -167,13 +167,13 @@ Environment overrides include PI_WEB_HOST, PI_WEB_PORT / PORT, PI_WEB_ALLOWED_HOSTS, PI_WEB_MAX_UPLOAD_BYTES, PI_WEB_AGENT_COMMAND, PI_WEB_AGENT_DIR, PI_WEB_AGENT_SESSION_DIR, PI_CODING_AGENT_DIR / - PI_CODING_AGENT_SESSION_DIR for Pi compatibility, PI_WEB_SPAWN_SESSIONS, and - PI_WEB_SUBSESSIONS. + PI_CODING_AGENT_SESSION_DIR for Pi compatibility, PI_WEB_SPAWN_SESSIONS, + PI_WEB_SUBSESSIONS, and PI_WEB_ASK_USER.