Skip to content

[bugfix] agent: pass Pi visual inspection instructions at startup - #573

Merged
FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
FayeSpica:fix/pi-runtime-instructions
Nov 29, 2026
Merged

FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
FayeSpica:fix/pi-runtime-instructions

Conversation

@FayeSpica

Copy link
Copy Markdown
Collaborator

Summary

  • Pass Pi-specific visual inspection instructions through the runtime prompt builder when launching the Pi CLI.
  • Instruct Pi to use its native read tool and use a local PNG copy when it cannot recognize an extensionless image. Preserve the original asset.
  • Assert the actual --append-system-prompt argument in the Pi streamed-turn test.

The two startup exceptions were reproduced when integrating #555 with the Pi runtime. Current upstream main still uses the shared SYSTEM constant and starts Pi successfully. This patch puts the Pi side of that prompt integration on main ahead of #555.

Validation

The updated streamed-turn assertion failed on upstream main before the patch. After the patch, all 20 tests in tests/test_pi_runtime.py passed using the fake Pi executable. No live model call was made.

Signed-off-by: Weiming Liao <liaowm5@gmail.com>
@github-actions github-actions Bot added area:agent Agent runtime, assistant chat and tools type:bug Something is broken labels Nov 29, 2026
@github-actions
github-actions Bot requested a review from wuzhf9 November 29, 2026 04:56
@FayeSpica
FayeSpica merged commit 43cdcfd into ThinkFlowLab:main Nov 29, 2026
18 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent runtime, assistant chat and tools type:bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant