Skip to content

fix: standardize API port to 11441 - #30

Merged
dahai80 merged 1 commit into
mainfrom
port-standardization
Aug 2, 2026
Merged

dahai80 merged 1 commit into
mainfrom
port-standardization

Conversation

@dahai80

@dahai80 dahai80 commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Closes #29

Changes

Port migration per Fusion port registry (114xx segment):

File Old New
src/server/projectApiServer.ts 4827 11441
src/entrypoints/cli.tsx 4827 11441
start.sh 4827 11441
README.md 4827 11441
tests/server/projectApiServer.test.ts 14827 11442

Verification

  • bun run build ✅
  • bun run tsc --noEmit ✅
  • bun test ✅ 319/319 pass

🤖 Generated with Claude Code

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
dahai80 merged commit c8d7056 into main Aug 2, 2026
1 check passed
@dahai80
dahai80 deleted the port-standardization branch August 2, 2026 07:16
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

端口规范化:统一归入 114xx 段

1 participant