Skip to content

Conversation

ulivz
Copy link
Member

@ulivz ulivz commented Oct 11, 2025

Summary

Fixed a TypeError: Cannot read properties of null (reading 'arguments') error that occurred when clicking the Raw button in Workspace Tool Renderer. The error was caused by accessing toolCall.arguments without null checking when the toolCall object was null or undefined.

Changes made:

  • Added null safety check for toolCall before accessing its properties
  • Added error state UI when tool call data is missing or corrupted
  • Used optional chaining (?.) for safer property access
  • Prevents runtime errors when clicking Raw button on invalid tool data

Error fixed:

VM8:2 Uncaught TypeError: Cannot read properties of null (reading 'arguments')
    at as (VM11:7:9317)
    at ad (VM8:2:58518)
    at i (VM8:2:119386)
    at oO (VM8:2:99063)
    at oF (VM8:2:98933)
    at ox (VM8:2:95704)
    at oC (VM8:2:96093)
    at r8 (VM8:2:44924)
    at VM8:2:93618

Checklist

  • Added or updated necessary tests (Optional).
  • Updated documentation to align with changes (Optional).
  • Verified no breaking changes, or prepared solutions for any occurring breaking changes (Optional).
  • My change does not involve the above items.

…derer

- Add null check for toolCall before accessing properties
- Show error state when toolCall data is missing or corrupted
- Use optional chaining for safer property access
- Prevents TypeError when clicking Raw button on invalid tool data
Copy link

netlify bot commented Oct 11, 2025

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit 071de1f
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/68ea1754297cf500091eabd5
😎 Deploy Preview https://deploy-preview-1715--agent-tars-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Oct 11, 2025

Deploy Preview for tarko ready!

Name Link
🔨 Latest commit 071de1f
🔍 Latest deploy log https://app.netlify.com/projects/tarko/deploys/68ea1754681394000829e42b
😎 Deploy Preview https://deploy-preview-1715--tarko.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ulivz ulivz changed the title fix(tarko-agent-ui): add null safety check for toolCall in RawModeRenderer WIP: fix(tarko-agent-ui): add null safety check for toolCall in RawModeRenderer Oct 13, 2025
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.

1 participant