fix: refactored linter errors
This commit is contained in:
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Updated OpenCode SDK to 1.0.185 across all app versions.
|
||||
- VS Code extension: fixed startup, more reliable OpenCode CLI/API management, and stabilized API proxying/streaming.
|
||||
- VS Code extension: added an animated loading screen and introduced command for status/debug output.
|
||||
- Fixed session activity tracking so it correctly handles transitions through states (including worktree sessions).
|
||||
- Fixed directory path handling (including `~` expansion) to prevent invalid paths and related Git/worktree errors.
|
||||
- Chat UI: improved turn grouping/activity rendering and fixed message metadata/agent selection propagation.
|
||||
- Chat UI: improved agent activity status behavior and reduced image thumbnail sizes for better readability.
|
||||
|
||||
|
||||
## [1.3.2] - 2025-12-22
|
||||
|
||||
|
||||
@@ -456,7 +456,7 @@ export const useTurnGrouping = (messages: ChatMessageEntry[]): UseTurnGroupingRe
|
||||
next.set(turnId, { ...state, previewedPartIds: newPreviewed });
|
||||
return next;
|
||||
});
|
||||
}, []);
|
||||
}, [defaultActivityExpanded]);
|
||||
|
||||
const getTurnForMessage = React.useCallback(
|
||||
(messageId: string): Turn | undefined => {
|
||||
|
||||
@@ -304,15 +304,12 @@ const AssistantMessageBody: React.FC<Omit<MessageBodyProps, 'isUser'>> = ({
|
||||
syntaxTheme,
|
||||
isMobile,
|
||||
hasTouchInput,
|
||||
copiedCode,
|
||||
onCopyCode,
|
||||
expandedTools,
|
||||
onToggleTool,
|
||||
onShowPopup,
|
||||
streamPhase: _streamPhase,
|
||||
allowAnimation: _allowAnimation,
|
||||
onContentChange,
|
||||
shouldShowHeader = true,
|
||||
hasTextContent = false,
|
||||
onCopyMessage,
|
||||
copiedMessage = false,
|
||||
@@ -1013,17 +1010,12 @@ const AssistantMessageBody: React.FC<Omit<MessageBodyProps, 'isUser'>> = ({
|
||||
}, [
|
||||
activityPartsByPart,
|
||||
activityGroupSegmentsForMessage,
|
||||
copiedCode,
|
||||
copiedMessage,
|
||||
expandedTools,
|
||||
hasTextContent,
|
||||
isMessageAnimating,
|
||||
isMobile,
|
||||
isToolFinalized,
|
||||
messageId,
|
||||
onContentChange,
|
||||
onCopyCode,
|
||||
onCopyMessage,
|
||||
onShowPopup,
|
||||
onToggleTool,
|
||||
previewableActivityPartIds,
|
||||
@@ -1031,14 +1023,11 @@ const AssistantMessageBody: React.FC<Omit<MessageBodyProps, 'isUser'>> = ({
|
||||
shouldHoldReasoning,
|
||||
shouldHoldTools,
|
||||
shouldShowActivityGroup,
|
||||
shouldShowHeader,
|
||||
showReasoningTraces,
|
||||
syntaxTheme,
|
||||
toolConnections,
|
||||
turnGroupingContext,
|
||||
visibleActivityPartsForTurn,
|
||||
visibleParts,
|
||||
toolParts,
|
||||
standaloneToolParts,
|
||||
shouldRenderActivityGroup,
|
||||
]);
|
||||
|
||||
@@ -176,7 +176,7 @@ export function WorkingPlaceholder({
|
||||
// IMPORTANT: When statusText becomes null, we do NOT clear the display
|
||||
// Only done/abort signals clear the display
|
||||
|
||||
}, [statusText, isWaitingForPermission, wasAborted, isComplete, state, displayedText, displayedPermission, showStatus, showResult, scheduleQueueProcess]);
|
||||
}, [statusText, isWaitingForPermission, wasAborted, isComplete, state, displayedText, displayedPermission, showStatus, showResult, scheduleQueueProcess, isGenericStatus]);
|
||||
|
||||
// Cleanup on unmount
|
||||
useEffect(() => {
|
||||
|
||||
@@ -259,7 +259,7 @@ const DiffViewerEntry = React.memo<DiffViewerEntryProps>(({
|
||||
const diffData = React.useMemo(() => {
|
||||
if (!cachedDiff) return null;
|
||||
return { original: cachedDiff.original, modified: cachedDiff.modified };
|
||||
}, [cachedDiff?.original, cachedDiff?.modified]);
|
||||
}, [cachedDiff]);
|
||||
|
||||
if (!diffData) return null;
|
||||
|
||||
|
||||
@@ -1165,11 +1165,8 @@ export const useEventStream = () => {
|
||||
checkConnection,
|
||||
resyncMessages,
|
||||
requestSessionMetadataRefresh,
|
||||
requestSessionListRefresh,
|
||||
completeStreamingMessage,
|
||||
handleEvent,
|
||||
effectiveDirectory,
|
||||
updateSessionActivityPhase,
|
||||
refreshSessionActivityStatus,
|
||||
waitForDesktopBridge,
|
||||
debugConnectionState,
|
||||
@@ -1209,6 +1206,7 @@ export const useEventStream = () => {
|
||||
}, [shouldHoldConnection, stopStream, publishStatus, startStream]);
|
||||
|
||||
React.useEffect(() => {
|
||||
const cooldownTimers = sessionCooldownTimersRef.current;
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
window.__messageTracker = trackMessage;
|
||||
@@ -1387,8 +1385,6 @@ export const useEventStream = () => {
|
||||
staleCheckIntervalRef.current = null;
|
||||
}
|
||||
|
||||
const cooldownTimers = sessionCooldownTimersRef.current;
|
||||
|
||||
cooldownTimers.forEach((timer) => clearTimeout(timer));
|
||||
cooldownTimers.clear();
|
||||
messageCache.clear();
|
||||
@@ -1416,8 +1412,12 @@ export const useEventStream = () => {
|
||||
scheduleReconnect,
|
||||
loadMessages,
|
||||
requestSessionMetadataRefresh,
|
||||
requestSessionListRefresh,
|
||||
updateSessionActivityPhase,
|
||||
refreshSessionActivityStatus,
|
||||
shouldHoldConnection
|
||||
shouldHoldConnection,
|
||||
loadSessions,
|
||||
maybeBootstrapIfStale,
|
||||
resyncMessages
|
||||
]);
|
||||
};
|
||||
|
||||
@@ -167,6 +167,7 @@ export const useSessionAutoCleanup = (options?: CleanupOptions) => {
|
||||
autoDeleteLastRunAt,
|
||||
autoRun,
|
||||
isLoading,
|
||||
sessions.length,
|
||||
runCleanup,
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user