Repository navigation
fix: standardize API port to 11441 - #30
Merged
Merged
Conversation
Closes #29 Port migration per fusion-code port registry: - Default port: 4827 → 11441 - Test port: 14827 → 11442 (avoid production collision) - start.sh already used 11441 Co-Authored-By: Claude <[email protected]>
dahai80
added a commit
that referenced
this pull request
Aug 29, 2026
….1.1 slice #30) (#201) Extract REPL onQueryEvent → handleMessageFromStream first callback (L2954-3016, 62-LOC message-dispatch sub-block) into src/utils/streamMessageDispatch.ts as createStreamMessageDispatch(ctx) factory returning the (newMessage) => void callback. Routes incoming streamed message to the right setMessages mutation: - compact-boundary → replace (or append in fullscreen) + bump conversationId - ephemeral tool-progress tick → replace last same-tool tick (no array blowup) - otherwise → append Plus proactive context-block toggle on API errors / success. Pure-routing sub-block extraction class (proven via slices #19/#25-#29): reads only setters + module helpers, no React hooks, no closures over REPL state beyond the explicitly-passed ctx. ~9 deps via ctx object vs the parent onQueryEvent's 15+ — manageable, avoids the getToolUseContext factory ctx-reconstruct risk (lesson #18). REPL 6034 → 5976 (-58 net). Byte-identical behavior: factory passes the same setMessages/setConversationId/proactiveModule the inline closure captured. Removed now-unused isEphemeralToolProgress import (import-cleanup lesson #22); isCompactBoundaryMessage kept (still used at L3073). Gates: typecheck 0 / 921 tests pass / biome exit 0 / build:dev pass. Co-authored-by: Claude Fable 5 <[email protected]>
dahai80
added a commit
that referenced
this pull request
Aug 30, 2026
… slice #54) Extract idle-notification useEffect body (guards + setTimeout setup + clearTimeout cleanup, ~37 LOC) from REPL.tsx into src/screens/idleNotificationEffect.ts as maybeScheduleIdleNotification(ctx). Inner setTimeout callback (maybeSendIdleNotification) was already extracted in slice #30; this moves the outer effect body. deps (isLoading/submitCount/ lastQueryCompletionTime/toolJSX/focusedInputDialogRef/terminal) via ctx; helper returns cleanup fn or undefined (early-return guards). ctx field types derived via Parameters<typeof maybeSendIdleNotification> to avoid duplicating the unexported ToolJSX/IdleNotificationCtx. Remove REPL sole-user import maybeSendIdleNotification. REPL 5333->5309 (-24). Gates: typecheck 0 / 921 tests / biome new-file / build:dev. Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #29
Changes
Port migration per Fusion port registry (114xx segment):
Verification
bun run build✅bun run tsc --noEmit✅bun test✅ 319/319 pass🤖 Generated with Claude Code