mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
Revert "chore: 切换到 bun publish,修复 husky 路径问题,调整 diff 折叠距离,导出 VoiceContext"
This reverts commit c80a6d062b.
This commit is contained in:
@@ -798,9 +798,7 @@ const MessagesImpl = ({
|
||||
|
||||
// Collapse diffs for messages beyond the latest N messages.
|
||||
// verbose (ctrl+o) overrides and always shows full diffs.
|
||||
// 0 was too aggressive — tool results are never the last message (assistant
|
||||
// text follows), so diffs were always collapsed. 3 keeps recent edits visible.
|
||||
const DIFF_COLLAPSE_DISTANCE = 3;
|
||||
const DIFF_COLLAPSE_DISTANCE = 0;
|
||||
const shouldCollapseDiffs = renderableMessages.length - 1 - index > DIFF_COLLAPSE_DISTANCE;
|
||||
|
||||
const k = messageKey(msg);
|
||||
|
||||
@@ -19,7 +19,7 @@ const DEFAULT_STATE: VoiceState = {
|
||||
|
||||
type VoiceStore = Store<VoiceState>;
|
||||
|
||||
export const VoiceContext = createContext<VoiceStore | null>(null);
|
||||
const VoiceContext = createContext<VoiceStore | null>(null);
|
||||
|
||||
type Props = {
|
||||
children: React.ReactNode;
|
||||
|
||||
Reference in New Issue
Block a user