Repository navigation
refactor(screens): extract agent-transcript bootstrap effect (audit 1.1.1 slice #36) - #209
Merged
Merged
Conversation
….1.1 slice #36) REPL.tsx agent-transcript disk-load bootstrap useEffect body (26 LOC, PURE-ASYNC-HELPER class, 2nd — like slice #23 onInit / #31 initialMessage) extracted to src/screens/agentTranscriptBootstrap.ts applyAgentTranscriptBootstrap(ctx). 3 closure deps (viewingAgentTaskId, needsBootstrap, setAppState); guard stays in REPL thin shell. 2 now-dead imports removed from REPL (getAgentTranscript sole-user, asAgentId sole-user; isLocalAgentTask kept — 2 residual uses). Byte-identical behavior; gates 0/921/new-file-clean/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.
Audit §1.1.1 god-module split — slice #36 of REPL.tsx (#170).
Change
Extract REPL.tsx agent-transcript disk-load bootstrap
useEffectbody (26 LOC) tosrc/screens/agentTranscriptBootstrap.tsapplyAgentTranscriptBootstrap(ctx).onInit/ feat: integrate fusion-plugins-ecosystem as MCP tool provider #31initialMessage)viewingAgentTaskId,needsBootstrapguard stays in REPL thin shell,setAppState)getAgentTranscript/asAgentId/isLocalAgentTaskimported directly in new file (not via ctx)getAgentTranscript(sole-user) +asAgentId(sole-user) removed from REPL;isLocalAgentTaskkept (2 residual uses)Verification
bun run typecheck— 0 errorsbun test src/__tests__/— 921 pass / 0 failbunx biome checkon new file only (REPL untouched by formatter) — cleanbun run build:dev— passesREPL 5682 → 5658 (−24 this slice, −1438 cumulative 7096→5658).
Co-Authored-By: Claude Fable 5 [email protected]