mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
feat(walkthrough): open the change walkthrough from an agent tool call
This commit is contained in:
1 parent
3eb0b02203
commit
aa1da8d608
26 files changed
+1367
-175
No files matched your search
@@ -4,6 +4,7 @@ import { TextPart } from './TextPart'
|
||||
import { ToolCallPart } from './ToolCallPart'
|
||||
import { useSettings } from '@/hooks/useSettings'
|
||||
import type { ShellNoticeOutcome } from '@/lib/backgroundWork'
|
||||
import type { WalkthroughSource } from '@opencode-manager/shared/schemas'
|
||||
|
||||
type AssistantContentPart = SessionMessageAssistant['content'][number]
|
||||
|
||||
@@ -14,9 +15,10 @@ interface MessagePartProps {
|
||||
shellOutcome?: ShellNoticeOutcome
|
||||
onFileClick?: (filePath: string, lineNumber?: number) => void
|
||||
onChildSessionClick?: (sessionId: string) => void
|
||||
onOpenWalkthrough?: (source?: WalkthroughSource) => void
|
||||
}
|
||||
|
||||
export const MessagePart = memo(function MessagePart({ part, messageID, directory, shellOutcome, onFileClick, onChildSessionClick }: MessagePartProps) {
|
||||
export const MessagePart = memo(function MessagePart({ part, messageID, directory, shellOutcome, onFileClick, onChildSessionClick, onOpenWalkthrough }: MessagePartProps) {
|
||||
const { preferences } = useSettings()
|
||||
const simpleChatMode = preferences?.simpleChatMode ?? false
|
||||
const showReasoning = preferences?.showReasoning ?? false
|
||||
@@ -47,6 +49,7 @@ export const MessagePart = memo(function MessagePart({ part, messageID, director
|
||||
shellOutcome={shellOutcome}
|
||||
onFileClick={onFileClick}
|
||||
onChildSessionClick={onChildSessionClick}
|
||||
onOpenWalkthrough={onOpenWalkthrough}
|
||||
/>
|
||||
)
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user