Skip to content

Conversation

@nancyjlau
Copy link
Contributor

@nancyjlau nancyjlau commented Aug 27, 2025

Description

Fixes the vf-tui viewer to properly handle tool_calls when they are stored as JSON strings instead of dictionary objects. This issue was preventing vf-tui from displaying tool calls for certain environments that serialize tool_calls as JSON strings in their output. I encountered this issue when testing viewing results on the ARC-AGI 1 + 2 with tool calling environment, more info about runs at my env PR

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Test improvement

Testing

  • All existing tests pass
  • Tests have been run locally with python -m pytest tests/

Test Coverage

  • Current coverage: 100%
  • Coverage after changes: 100%

Additional Notes

Screenshot 2025-08-26 at 6 17 33 PM image

After fix

image

@CLAassistant
Copy link

CLAassistant commented Aug 27, 2025

CLA assistant check
All committers have signed the CLA.

@nancyjlau nancyjlau changed the title TUI parsing crashes when tool_calls contains JSON strings instead of dicts vf-tui parsing crashes when tool_calls contains JSON strings instead of dicts Aug 27, 2025
@willccbb
Copy link
Member

awesome! thanks

@willccbb willccbb merged commit 85ae8e4 into PrimeIntellect-ai:main Aug 27, 2025
1 check passed
@nancyjlau nancyjlau deleted the vf-tui-parsing branch August 27, 2025 04:37
@nancyjlau nancyjlau restored the vf-tui-parsing branch August 28, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants