mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
feat(chat): show images and files returned by tool calls
This commit is contained in:
1 parent
f67c3e33b2
commit
612b0e6621
6 files changed
+228
No files matched your search
@@ -8,6 +8,7 @@ import { clampDisplayText } from '@/lib/clampDisplayText'
|
||||
import { markdownRehypePlugins } from '@/lib/markdownRehypePlugins'
|
||||
import { CopyButton } from '@/components/ui/copy-button'
|
||||
import { FileReferenceText } from './FileReferenceText'
|
||||
import { ToolContentFiles } from './ToolContentFiles'
|
||||
|
||||
type ExecuteCallStatus = 'running' | 'completed' | 'error'
|
||||
|
||||
@@ -265,6 +266,8 @@ export function ExecuteToolPart({ part, isWaitingPermission, onFileClick }: Exec
|
||||
</div>
|
||||
)}
|
||||
|
||||
<ToolContentFiles part={part} className="px-4 pb-2" />
|
||||
|
||||
{!expanded && errorPreview.length > 0 && (
|
||||
<div className="px-4 pb-2 font-mono text-xs text-destructive">
|
||||
{errorPreview.map((line, index) => (
|
||||
|
||||
Reference in new issue
Block a user