Repository navigation
test: add regression tests for v0.3.4/v0.3.5 bug fixes - #12
Merged
Merged
Conversation
- tests/utils/tool.test.ts: 6 tests for buildTool renderToolUseMessage 0-2 arg calls, custom implementation, TOOL_DEFAULTS spread - tests/hooks/hook-specific-output.test.ts: 8 tests for hookSpecificOutput null guard (v0.3.5 SessionEnd crash regression) - tests/components/PromptInput/mode-hint-visibility.test.ts: 8 tests for shouldShowModeHint logic (v0.3.4 mode hint overlap regression) Closes #11 Co-Authored-By: Claude <[email protected]>
dahai80
added a commit
that referenced
this pull request
Jul 30, 2026
….4.1) (#16) - Add WebSocket /ws/chat to projectApiServer for streaming chat (subprocess mode: fusion-code --output-format=stream-json) - Protocol: chat.stream/chat.cancel → chat_event/chat_done NDJSON (compatible with StreamingBridge) - Add start.sh for UpstreamServiceManager auto-start - Update README with WS endpoint docs - Bump version to 0.4.1 Fusion-Studio issues filed: - #9 Layer 1: upstream service registration - #10 Layer 2: FusionCodeAPIClient - #11 Layer 3: StreamingBridge WS integration - PR #12: Layer 1+2 implementation 🤖 Generated with [Claude Code](https://claude.com/claude-code)
dahai80
added a commit
that referenced
this pull request
Jul 31, 2026
….4.1) - Add WebSocket /ws/chat to projectApiServer for streaming chat (subprocess mode: fusion-code --output-format=stream-json) - Protocol: chat.stream/chat.cancel → chat_event/chat_done NDJSON (compatible with StreamingBridge) - Add start.sh for UpstreamServiceManager auto-start - Update README with WS endpoint docs - Bump version to 0.4.1 Fusion-Studio issues filed: - #9 Layer 1: upstream service registration - #10 Layer 2: FusionCodeAPIClient - #11 Layer 3: StreamingBridge WS integration - PR #12: Layer 1+2 implementation 🤖 Generated with [Claude Code](https://claude.com/claude-code)
dahai80
added a commit
that referenced
this pull request
Aug 28, 2026
…split slice #12) (#182) audit 1.1.1 god-module split. Extract the restoreReadFileState useCallback body from REPL.tsx into a pure helper src/utils/readFileStateRestore.ts. No React, no JSX, no hooks; only side effect mutates the two passed-in refs (readFileState.current = mergeFileStateCaches, bashTools.current.add), matching the original deps=[] useCallback verbatim. REPL keeps a thin useCallback wrapper (deps unchanged); downstream reads the same const name -> byte-identical. Two now-unused imports dropped (mergeFileStateCaches, extractBashToolsFromMessages). Tests: src/__tests__/utils/readFileStateRestore.test.ts (5 cases) assert bashTools accumulation, cross-call Set union, readFileState.current ref reassignment (merge returns clone), non-bash skip, non-string-command skip. Gates: typecheck 0 / 847 tests / lint clean new files / build:dev 3769 modules. REPL 6538 -> 6529 (-9 LOC; -567 cumulative off 7096 baseline). 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.
Summary
Closes #11
Adds test coverage for the 3 bugs fixed in v0.3.4 and v0.3.5.
New test files
tests/utils/tool.test.tstests/hooks/hook-specific-output.test.tstests/components/PromptInput/mode-hint-visibility.test.tsResult
🤖 Generated with Claude Code