-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add icon to truncate history at last tool call #6382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for continuedev canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic found 2 issues across 8 files. Review them in cubic.dev
React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai
to give specific feedback.
@@ -319,7 +319,7 @@ export function Chat() { | |||
inputId={item.message.id} | |||
/> | |||
</> | |||
) : item.message.role === "tool" ? null : item.message.role === | |||
) : item.message.role === "tool" ? null : item.message.role === // /> // toolCallId={item.message.toolCallId} // contextItems={item.contextItems} // <ToolOutput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inline comments are left in the middle of a ternary expression, which can break code parsing and readability. Comments should not be placed within expressions like this.
) : item.message.role === "tool" ? null : item.message.role === // /> // toolCallId={item.message.toolCallId} // contextItems={item.contextItems} // <ToolOutput | |
) : item.message.role === "tool" ? null : item.message.role === "assistant" && |
|
||
if (state.history.length && index < state.history.length) { | ||
state.codeBlockApplyStates.curIndex = 0; | ||
state.history = state.history.slice(0, index + 1).concat({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeBlockApplyStates.states is not cleared when history is truncated, leaving stale apply-state entries that may refer to messages that were just removed.
Builds on #6333 to add an icon for truncating chat history at a given message, to allow users to interrupt mid-long agent streams
Summary by cubic
Added an icon to tool call messages that lets users truncate chat history at that point.