mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2026-01-04 22:24:22 +01:00
feat: add support for file history snapshots in conversation components
- Introduced a new `FileHistorySnapshotConversationContent` component to handle rendering of file history snapshots. - Updated `ConversationItem` and `ConversationList` to accommodate the new conversation type. - Modified the conversation schema to include `FileHistorySnapshotEntrySchema` and related types. - Enhanced the `useSidechain` hook to filter out file history snapshots from sidechain conversations. - Adjusted the `SidechainConversationModal` to correctly handle the new conversation type.
This commit is contained in:
@@ -64,7 +64,7 @@ const LayerImpl = Effect.gen(function* () {
|
||||
response: {
|
||||
globalCommands: globalCommands,
|
||||
projectCommands: projectCommands,
|
||||
defaultCommands: ["init", "compact"],
|
||||
defaultCommands: ["init", "compact", "security-review", "review"],
|
||||
},
|
||||
status: 200,
|
||||
} as const satisfies ControllerResponse;
|
||||
|
||||
@@ -39,7 +39,8 @@ const LayerImpl = Effect.gen(function* () {
|
||||
if (
|
||||
conversation === undefined ||
|
||||
conversation.type === "summary" ||
|
||||
conversation.type === "x-error"
|
||||
conversation.type === "x-error" ||
|
||||
conversation.type === "file-history-snapshot"
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user