@dreki-gg/pi-questionnaire 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @dreki-gg/pi-questionnaire
|
|
2
2
|
|
|
3
|
+
## 0.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2a08c1d`](https://github.com/dreki-gg/pi-extensions/commit/2a08c1d0b10a1ca74dfab74f93dd200570537e0f) Thanks [@jalbarrang](https://github.com/jalbarrang)! - fix(questionnaire): remove `terminate: true` from successful tool result
|
|
8
|
+
|
|
9
|
+
The questionnaire tool was returning `terminate: true` on successful completion, which caused the agent's turn to end immediately after the user submitted answers. The agent never got to process the responses and continue working. Now the agent receives the answers and continues its turn normally.
|
|
10
|
+
|
|
11
|
+
## 0.2.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`54e5fd9`](https://github.com/dreki-gg/pi-extensions/commit/54e5fd9b15573fd4729f89ed85e31cd4648cb6c8) Thanks [@jalbarrang](https://github.com/jalbarrang)! - fix(questionnaire): prevent navigation keys from interrupting "Other" text input
|
|
16
|
+
|
|
17
|
+
When typing custom text in the "Other" input field, keys like Space, Left/Right arrows, and 'r' were intercepted by tab navigation handlers instead of being sent to the text editor. This caused accidental tab switches that cleared the input mode and lost any typed text.
|
|
18
|
+
|
|
3
19
|
## 0.2.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -221,8 +221,13 @@ export async function runQuestionnaireUI(
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
function handleInput(data: string) {
|
|
224
|
-
if (uiState.inputMode === 'otherInput'
|
|
225
|
-
|
|
224
|
+
if (uiState.inputMode === 'otherInput') {
|
|
225
|
+
if (matchesKey(data, Key.escape)) {
|
|
226
|
+
clearInputMode();
|
|
227
|
+
invalidate();
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
editor.handleInput(data);
|
|
226
231
|
invalidate();
|
|
227
232
|
return;
|
|
228
233
|
}
|
|
@@ -242,12 +247,6 @@ export async function runQuestionnaireUI(
|
|
|
242
247
|
return;
|
|
243
248
|
}
|
|
244
249
|
|
|
245
|
-
if (uiState.inputMode === 'otherInput') {
|
|
246
|
-
editor.handleInput(data);
|
|
247
|
-
invalidate();
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
250
|
if (uiState.activeTabIndex === reviewTabIndex) {
|
|
252
251
|
if (matchesKey(data, Key.up)) {
|
|
253
252
|
uiState.reviewCursor = clamp(
|