mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +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
@@ -10,6 +10,7 @@ import {
|
||||
ChangesWalkthroughRegenerate,
|
||||
ChangesWalkthroughSourcePicker,
|
||||
ChangesWalkthroughView,
|
||||
type WalkthroughSourceRequest,
|
||||
} from '@/components/session/ChangesWalkthroughSheet'
|
||||
import { PreviewWorkspace } from '@/components/preview/PreviewPanel'
|
||||
import { RepoMcpContent } from '@/components/repo/RepoMcpDialog'
|
||||
@@ -36,6 +37,7 @@ interface ToolSidePanelProps {
|
||||
currentBranch?: string
|
||||
selectedFilePath?: string
|
||||
onSkillLoaded?: (skill: SkillFileInfo) => void
|
||||
walkthroughSourceRequest?: WalkthroughSourceRequest
|
||||
}
|
||||
|
||||
interface RailButtonProps {
|
||||
@@ -89,6 +91,7 @@ export function ToolSidePanel({
|
||||
currentBranch = 'main',
|
||||
selectedFilePath,
|
||||
onSkillLoaded,
|
||||
walkthroughSourceRequest,
|
||||
}: ToolSidePanelProps) {
|
||||
const { activeTool, toggleTool, closePanel } = panel
|
||||
const location = useLocation()
|
||||
@@ -190,7 +193,12 @@ export function ToolSidePanel({
|
||||
<>
|
||||
{panelContent ? (
|
||||
activeTool === 'walkthrough' && sessionId ? (
|
||||
<ChangesWalkthroughProvider key={sessionId} sessionId={sessionId} active>
|
||||
<ChangesWalkthroughProvider
|
||||
key={sessionId}
|
||||
sessionId={sessionId}
|
||||
active
|
||||
sourceRequest={walkthroughSourceRequest}
|
||||
>
|
||||
{panelContent}
|
||||
</ChangesWalkthroughProvider>
|
||||
) : (
|
||||
|
||||
Reference in new issue
Block a user