TUI/Gateway: fix pi streaming + tool routing + model display + msg updating (#8432)

* TUI/Gateway: fix pi streaming + tool routing

* Tests: clarify verbose tool output expectation

* fix: avoid seq gaps for targeted tool events (#8432) (thanks @gumadeiras)
This commit is contained in:
Gustavo Madeira Santana
2026-02-04 17:12:16 -05:00
committed by GitHub
parent a42e3cb78a
commit 38e6da1fe0
32 changed files with 1227 additions and 208 deletions

50
pnpm-lock.yaml generated
View File

@@ -49,17 +49,17 @@ importers:
specifier: 1.2.0-beta.3
version: 1.2.0-beta.3
'@mariozechner/pi-agent-core':
specifier: 0.51.1
version: 0.51.1(ws@8.19.0)(zod@4.3.6)
specifier: 0.51.3
version: 0.51.3(ws@8.19.0)(zod@4.3.6)
'@mariozechner/pi-ai':
specifier: 0.51.1
version: 0.51.1(ws@8.19.0)(zod@4.3.6)
specifier: 0.51.3
version: 0.51.3(ws@8.19.0)(zod@4.3.6)
'@mariozechner/pi-coding-agent':
specifier: 0.51.1
version: 0.51.1(ws@8.19.0)(zod@4.3.6)
specifier: 0.51.3
version: 0.51.3(ws@8.19.0)(zod@4.3.6)
'@mariozechner/pi-tui':
specifier: 0.51.1
version: 0.51.1
specifier: 0.51.3
version: 0.51.3
'@mozilla/readability':
specifier: ^0.6.0
version: 0.6.0
@@ -1457,22 +1457,22 @@ packages:
resolution: {integrity: sha512-faGUlTcXka5l7rv0lP3K3vGW/ejRuOS24RR2aSFWREUQqzjgdsuWNo/IiPqL3kWRGt6Ahl2+qcDAwtdeWeuGUw==}
hasBin: true
'@mariozechner/pi-agent-core@0.51.1':
resolution: {integrity: sha512-Ssy7ipyYl2mg99T3W5maA1DKrFCYrWeM6kq5awyd+e34Bd6njK5bsi1keqtlbCIsTCtF9NngUwUJ2lWEi9kHhA==}
'@mariozechner/pi-agent-core@0.51.3':
resolution: {integrity: sha512-pO5ScRuf7F5GCqS02vuB3gIV/MHR2cskEEUnbVbkSf0RHJb3vTICy/ACQyeI+UYk7yjFmdvQgbSUtVrYJ3q8Ag==}
engines: {node: '>=20.0.0'}
'@mariozechner/pi-ai@0.51.1':
resolution: {integrity: sha512-QJgiVwxvUJx6QECSqOQi1NNhOdzzFYDoX3C21aPgYH9DQQpvg4thzhSK9eZoxD+HsQGfcq8u/DkPdPyl0tl8Bg==}
'@mariozechner/pi-ai@0.51.3':
resolution: {integrity: sha512-NocfuwUPCGeNhWyfzSGKbsTqUvFmP+VihU8+xtzX9FoHvQQVJHQ49Sz8sfLK04BbEWYI9s/gZ7a9xnJ0O4cz8g==}
engines: {node: '>=20.0.0'}
hasBin: true
'@mariozechner/pi-coding-agent@0.51.1':
resolution: {integrity: sha512-vZCQ1gOQKC5kJOUQLMZb55OySIG27NxcMTKbJUQ0f1Ncn5uvV/Z4I/U5Ok217tm60EDC4JRv5GC1YMwpVRQFyg==}
'@mariozechner/pi-coding-agent@0.51.3':
resolution: {integrity: sha512-pu/4IxeMZMapYiSO3LWvNRztOXXKLlLNL+drjMvtgWbp9MJ8azP+5Zwsp3/vzrPvM54wCkaSa0voUEThm4Ba/Q==}
engines: {node: '>=20.0.0'}
hasBin: true
'@mariozechner/pi-tui@0.51.1':
resolution: {integrity: sha512-1g6Z4WBvWcQf3bMM85fsHyQHv4mOcqKoH1AB8+G2lBHO49707gqHc3y6LbXuBSNn8uINGoAk2LpUoAUFnxLExg==}
'@mariozechner/pi-tui@0.51.3':
resolution: {integrity: sha512-1B9C3oVsAcBSO0rvk4qC3Iq655LveLQDSnlseypCo/KiR5eY39Hw1XRtvq5N05mtxNuo3mRw8FMcYCwIl1BbDg==}
engines: {node: '>=20.0.0'}
'@matrix-org/matrix-sdk-crypto-nodejs@0.4.0':
@@ -3766,6 +3766,7 @@ packages:
glob@11.1.0:
resolution: {integrity: sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw==}
engines: {node: 20 || >=22}
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
hasBin: true
google-auth-library@10.5.0:
@@ -6783,10 +6784,9 @@ snapshots:
std-env: 3.10.0
yoctocolors: 2.1.2
'@mariozechner/pi-agent-core@0.51.1(ws@8.19.0)(zod@4.3.6)':
'@mariozechner/pi-agent-core@0.51.3(ws@8.19.0)(zod@4.3.6)':
dependencies:
'@mariozechner/pi-ai': 0.51.1(ws@8.19.0)(zod@4.3.6)
'@mariozechner/pi-tui': 0.51.1
'@mariozechner/pi-ai': 0.51.3(ws@8.19.0)(zod@4.3.6)
transitivePeerDependencies:
- '@modelcontextprotocol/sdk'
- aws-crt
@@ -6796,7 +6796,7 @@ snapshots:
- ws
- zod
'@mariozechner/pi-ai@0.51.1(ws@8.19.0)(zod@4.3.6)':
'@mariozechner/pi-ai@0.51.3(ws@8.19.0)(zod@4.3.6)':
dependencies:
'@anthropic-ai/sdk': 0.71.2(zod@4.3.6)
'@aws-sdk/client-bedrock-runtime': 3.981.0
@@ -6820,12 +6820,12 @@ snapshots:
- ws
- zod
'@mariozechner/pi-coding-agent@0.51.1(ws@8.19.0)(zod@4.3.6)':
'@mariozechner/pi-coding-agent@0.51.3(ws@8.19.0)(zod@4.3.6)':
dependencies:
'@mariozechner/jiti': 2.6.5
'@mariozechner/pi-agent-core': 0.51.1(ws@8.19.0)(zod@4.3.6)
'@mariozechner/pi-ai': 0.51.1(ws@8.19.0)(zod@4.3.6)
'@mariozechner/pi-tui': 0.51.1
'@mariozechner/pi-agent-core': 0.51.3(ws@8.19.0)(zod@4.3.6)
'@mariozechner/pi-ai': 0.51.3(ws@8.19.0)(zod@4.3.6)
'@mariozechner/pi-tui': 0.51.3
'@silvia-odwyer/photon-node': 0.3.4
chalk: 5.6.2
cli-highlight: 2.1.11
@@ -6848,7 +6848,7 @@ snapshots:
- ws
- zod
'@mariozechner/pi-tui@0.51.1':
'@mariozechner/pi-tui@0.51.3':
dependencies:
'@types/mime-types': 2.1.4
chalk: 5.6.2