fix(walkthrough): address review of agent-opened walkthrough

- Wait for the model catalog once per walkthrough generation instead of before every model call
- Report open_walkthrough as requested, not opened, and drop its unused metadata
- Share the ocm tool and action names through @opencode-manager/shared
- Remove the unused source-request nonce and duplicate session check
- Scan only new messages when auto-opening the walkthrough
- Assert the request action cannot reach the internal change-walkthroughs route
This commit is contained in:
Chris Scott committed 2026-10-09 11:25:26 -04:00
1 parent aa1da8d608
commit c497df5161
14 files changed
+146 -122

No files matched your search

+2 -3
View File
@@ -304,11 +304,10 @@ export function SessionDetail() {
const handleShowMcpDialog = useCallback(() => setMcpDialogOpen(true), [setMcpDialogOpen]);
const handleShowSkillsDialog = useCallback(() => setSkillsDialogOpen(true), [setSkillsDialogOpen]);
const handleShowWalkthrough = useCallback((source?: WalkthroughSource) => {
setRequestedWalkthroughSource((current) => ({
setRequestedWalkthroughSource({
sessionId: sessionId ?? '',
source,
nonce: (current?.nonce ?? 0) + 1,
}));
});
setWalkthroughOpen(true);
}, [sessionId, setWalkthroughOpen]);
const handleShowWalkthroughCommand = useCallback(() => handleShowWalkthrough(), [handleShowWalkthrough]);