mirror of
https://github.com/yigitkonur/cli-continues.git
synced 2026-04-26 00:36:02 +03:00
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cli-continues#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/yigitkonur/cli-continues/pull/32
State: closed
Merged: Yes
addresses all 7 review comments from #27
ascasts (#27 review by greptile)all 694 tests pass, build clean.
cc @karatechopping @copilot-pull-request-reviewer
Review all of them with eye of John Carmack-like simplicity with elegeance approach and apply the one only if required
Greptile Summary
This PR addresses 5 of 7 review comments from #27: moves Qwen Code interface definitions into Zod schemas in
src/types/schemas.ts, wires upsafeParsevalidation throughout the parser, adds a defensiveparseTimestamphelper, deduplicatestool_resultvsfunctionCalldouble-counting via a UUID set, reconstructs the main conversation path from theuuid/parentUuidtree, and renames the Antigravity fixture to.jsonl.Changes:
src/types/schemas.ts— NewQwenPartSchema,QwenContentSchema,QwenFileDiffSchema,QwenToolCallResultSchema,QwenUsageMetadataSchema,QwenChatRecordSchemawith correct.passthrough()on all schemas.src/parsers/qwen-code.ts— Removes all inlineinterfacedefinitions and replaces unsafeascasts withQwenChatRecordSchema.safeParse(); addsreconstructMainPath()for proper branching conversation support; addsprocessedCallUuidsdedup set.src/__tests__/fixtures/index.ts— Fixture file renamed fromsession.json→session.jsonl(safe — test and parser both already accept both extensions).Issues found:
reconstructMainPath()has no cycle detection in itswhileloop. A corrupted JSONL file with a circularparentUuidreference will hang the CLI indefinitely. Fix: track visited UUIDs in aSet.QwenToolCallResultSchema'sresultDisplayunion (z.record(z.string(), z.unknown())) is unreachable dead code becauseQwenFileDiffSchema(all-optional passthrough) matches every object first.Confidence Score: 3/5
Important Files Changed
Flowchart
Last reviewed commit:
c533789