agent papercuts + tool message updates - cleanup
This commit is contained in:
parent
aa962b1fa6
commit
fa1253bae5
5 changed files with 5 additions and 11 deletions
|
|
@ -18,11 +18,6 @@
|
|||
"noEmitOnError": false,
|
||||
"types": ["jest", "node"]
|
||||
},
|
||||
"include": [
|
||||
"./**/*.ts",
|
||||
"./**/*.js",
|
||||
"./**/*.d.ts",
|
||||
"../gui/src/redux/util/constructMessages.ts"
|
||||
],
|
||||
"include": ["./**/*.ts", "./**/*.js", "./**/*.d.ts"],
|
||||
"exclude": ["dist"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ export function ContextItemsPeekItem({
|
|||
data-testid="context-items-peek-item"
|
||||
>
|
||||
{getContextItemIcon()}
|
||||
<span className={`max-s-[100px] line-clamp-1 flex-shrink-0`}>
|
||||
<span className={`line-clamp-1 max-w-[130px] flex-shrink-0`}>
|
||||
{contextItem.name}
|
||||
</span>
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export function ToolCallDisplay({
|
|||
toolCallState={toolCallState}
|
||||
/>
|
||||
</div>
|
||||
<div className="gap 1.5 flex flex-row items-center">
|
||||
<div className="flex flex-row items-center gap-1.5">
|
||||
{!!toolCallState.output && (
|
||||
<ToolTruncateHistoryIcon historyIndex={historyIndex} />
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -34,9 +34,8 @@ import { findCurrentToolCall, findToolCall, findToolOutput } from "../util";
|
|||
|
||||
// We need this to handle reorderings (e.g. a mid-array deletion) of the messages array.
|
||||
// The proper fix is adding a UUID to all chat messages, but this is the temp workaround.
|
||||
export type ChatMessageWithId = ChatMessage & { id: string };
|
||||
export type ChatHistoryItemWithMessageId = ChatHistoryItem & {
|
||||
message: ChatMessageWithId;
|
||||
message: ChatMessage & { id: string };
|
||||
};
|
||||
|
||||
type SessionState = {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export const streamResponseAfterToolCall = createAsyncThunk<
|
|||
|
||||
await new Promise((resolve) => setTimeout(resolve, 0));
|
||||
|
||||
// TODO paralell tool calls - dispatch one tool message per tool call
|
||||
// TODO parallel tool calls - dispatch one tool message per tool call
|
||||
const newMessage: ChatMessage = {
|
||||
role: "tool",
|
||||
content: renderContextItems(toolOutput),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue