You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: tidy conversation tool after simplify review
Post-implementation simplify pass (reuse + efficiency + comment cleanup),
no behavior change:
- Reuse the existing buildTurnUserContent helper for both lapUserMessage
constructions (sync + async) instead of re-inlining the identical
context-or-prompt branch.
- Compute the lap transcript once per path and reuse it for the assistant
message, persisted state, and response content (was building the same
string twice in each of the sync and async paths).
- Collapse `x ? x : y` framing ternaries to `x || y`.
- Drop spec-narration/WHAT comments; keep the genuine constraint comments
(SDK last-user-message, numeric async progress, abort rethrow, and the
formatStatus result.content requirement).
25/25 conversation unit tests, eslint, and typecheck pass.
0 commit comments