feat: implement process cleanup for OpenCode server and enhance internal function handling
This commit is contained in:
@@ -131,7 +131,6 @@ export const PierreDiffViewer: React.FC<PierreDiffViewerProps> = ({
|
||||
wrapLines = false,
|
||||
layout = 'fill',
|
||||
}) => {
|
||||
const isInlineLayout = layout === 'inline';
|
||||
const { isMobile } = useDeviceInfo();
|
||||
const { inputBarOffset, isKeyboardOpen } = useUIStore();
|
||||
|
||||
|
||||
@@ -1746,6 +1746,7 @@ export const useEventStream = () => {
|
||||
messageCache.clear();
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps -- Intentionally accessing current ref value at cleanup time
|
||||
notifiedMessagesRef.current.clear();
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps -- Intentionally accessing current ref value at cleanup time
|
||||
notifiedQuestionsRef.current.clear();
|
||||
|
||||
pendingResumeRef.current = false;
|
||||
|
||||
Reference in New Issue
Block a user