Skip to content

fix(tarko-agent-ui): render error in tool raw mode renderer#1659

Merged
ulivz merged 3 commits intomainfrom
fix/workspace-raw-mode-null-timestamp
Sep 26, 2025
Merged

fix(tarko-agent-ui): render error in tool raw mode renderer#1659
ulivz merged 3 commits intomainfrom
fix/workspace-raw-mode-null-timestamp

Conversation

@ulivz
Copy link
Member

@ulivz ulivz commented Sep 26, 2025

Summary

Fixed TypeError: Cannot read properties of null (reading 'timestamp') error in RawModeRenderer by adding null checks before calling formatTimestamp(). The component now properly handles cases where toolCall.timestamp or toolResult.timestamp may be null/undefined, displaying 'Unknown time' as fallback text while maintaining proper separation of concerns.

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.

@netlify
Copy link

netlify bot commented Sep 26, 2025

Deploy Preview for tarko ready!

Name Link
🔨 Latest commit 5f54af1
🔍 Latest deploy log https://app.netlify.com/projects/tarko/deploys/68d6b556b0de28000731696d
😎 Deploy Preview https://deploy-preview-1659--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.

@netlify
Copy link

netlify bot commented Sep 26, 2025

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit 5f54af1
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/68d6b55618656800087f5739
😎 Deploy Preview https://deploy-preview-1659--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.

…rotection

- Modified formatTimestamp to handle null/undefined timestamps at the type level
- Removed fallback logic from RawModeRenderer components
- Added proper type safety instead of runtime workarounds
…enderer

- Restored formatTimestamp to original implementation
- Added null checks in RawModeRenderer before calling formatTimestamp
- Shows 'Unknown time' when timestamp is null/undefined
- Prevents TypeError while maintaining proper separation of concerns
@ulivz ulivz changed the title fix(tarko-agent-ui): handle null timestamp in raw mode renderer fix(tarko-agent-ui): white screen in tool raw mode renderer Sep 26, 2025
@ulivz ulivz changed the title fix(tarko-agent-ui): white screen in tool raw mode renderer fix(tarko-agent-ui): render error in tool raw mode renderer Sep 26, 2025
@ulivz ulivz merged commit 57e4606 into main Sep 26, 2025
9 of 10 checks passed
@ulivz ulivz deleted the fix/workspace-raw-mode-null-timestamp branch September 26, 2025 15:48
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

Comments