Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Oct 17, 2025

Trying out another approach to #8692 - not sure any of this content is actually very important to include in the UI messages, especially if it causes gray screens?

Before:
Screenshot 2025-10-17 at 1 12 22 AM

After:
Screenshot 2025-10-17 at 1 13 26 AM
Fixes #8690
Fixes #5601
Fixes #8594


Important

Remove request content from api_req_started and api_req_finished messages to prevent UI issues, updating Task.ts, Task.spec.ts, and ChatRow.tsx accordingly.

  • Behavior:
    • Removed request content from api_req_started and api_req_finished messages in Task.ts to prevent UI issues.
    • Adjusted ChatRow.tsx to handle absence of request content in UI rendering.
  • Tests:
    • Updated Task.spec.ts to remove references to request content in tests for api_req_started and api_req_finished messages.

This description was created by Ellipsis for 3afc7da. You can customize this summary. It will automatically update as commits are pushed.

@mrubens mrubens requested review from cte and jr as code owners October 17, 2025 05:13
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Oct 17, 2025
@roomote
Copy link
Contributor

roomote bot commented Oct 17, 2025

Code Review Summary

I've completed the review of this PR. The changes cleanly remove the request content from UI messages as intended.

Changes Reviewed

Backend (Task.ts): Removed request field from api_req_started messages
Tests (Task.spec.ts): Updated test expectations to match new behavior
UI (ChatRow.tsx): Removed request content display and expand/collapse functionality

Analysis

The implementation is clean and consistent across all layers:

  1. Type Safety: The ClineApiReqInfo interface retains the optional request?: string field for backward compatibility with existing task history
  2. UI Behavior: Correctly simplified from expandable content to a static icon
  3. Test Coverage: Tests properly updated to reflect the removed field
  4. Backward Compatibility: No breaking changes since the field was optional

Result

No issues found. The changes are well-implemented and achieve the stated goal of removing request content from UI messages without introducing bugs or breaking existing functionality.


Status: ✅ Approved - Ready to merge

@dosubot dosubot bot added the bug Something isn't working label Oct 17, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Oct 17, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 17, 2025
@mrubens mrubens merged commit 4405f5a into main Oct 17, 2025
46 of 51 checks passed
@mrubens mrubens deleted the remove_request_content_from_ui_messages branch October 17, 2025 11:34
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Oct 17, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Archived in project

4 participants