Skip to content

Conversation

uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Sep 11, 2025

Description

Fix the edit file tool.

  • remove the filepath in the tool call
  • remove args for the edit tool
  • remove padding around the codeblock

resolves CON-2405

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-general-review or @continue-detailed-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

before

image

after

Screenshot 2025-09-11 at 5 59 08 PM

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Streamlined the Edit File tool UI and added a way for tools to hide noisy args. Also removed padding around Create/Edit file code blocks for a tighter look. Resolves CON-2405.

  • New Features

    • Added Tool.skippedToolArgsDisplay to omit specified args from the UI.
    • ToolCallDisplay now filters parsedArgs using that list.
  • Bug Fixes

    • Edit File no longer shows the filepath or verbose status; uses generic “editing a file” text.
    • Removed left/right padding in CreateFile/EditFile markdown previews.

@uinstinct uinstinct requested a review from a team as a code owner September 11, 2025 12:23
@uinstinct uinstinct requested review from tomasz-stefaniak and removed request for a team September 11, 2025 12:23
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 11, 2025
@@ -1103,6 +1103,7 @@ export interface Tool {
basePolicy: ToolPolicy,
parsedArgs: Record<string, unknown>,
) => ToolPolicy;
skipToolArgsDisplay?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd usually advise negative names such as 'skip', 'doNot', 'shouldNot' etc. Instead, how about 'displayToolArgs' that defaults to true? Otherwise, this may result in expressions such as !!skipToolArgsDisplay which are difficult to reason about.

@@ -135,6 +136,7 @@ interface StyledMarkdownPreviewProps {
toolCallId?: string;
expandCodeblocks?: boolean;
collapsible?: boolean;
removePadding?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto - instead of removedPadding, you can name this padded and default it to true.

Copy link
Collaborator

@tomasz-stefaniak tomasz-stefaniak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments about naming

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants