mirror of
https://github.com/yigitkonur/cli-continues.git
synced 2026-04-26 00:36:02 +03:00
[PR #27] [MERGED] feat: add qwen code support #27
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#27
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?
📋 Pull Request Information
Original PR: https://github.com/yigitkonur/cli-continues/pull/27
Author: @yigitkonur
Created: 3/2/2026
Status: ✅ Merged
Merged: 3/2/2026
Merged by: @yigitkonur
Base:
main← Head:feat/qwen-code-parser📝 Commits (1)
0239af8feat: add qwen code (qwen-code) as supported tool📊 Changes
9 files changed (+611 additions, -27 deletions)
View changed files
📝
src/__tests__/e2e-conversions.test.ts(+6 -1)📝
src/__tests__/extract-handoffs.ts(+5 -1)📝
src/__tests__/fixtures/index.ts(+93 -8)📝
src/__tests__/schemas.test.ts(+3 -3)📝
src/__tests__/unit-conversions.test.ts(+79 -14)📝
src/parsers/index.ts(+1 -0)➕
src/parsers/qwen-code.ts(+406 -0)📝
src/parsers/registry.ts(+17 -0)📝
src/types/tool-names.ts(+1 -0)📄 Description
adds qwen code (
qwencli from QwenLM/qwen-code) as the 16th supported tool.what changed:
src/parsers/qwen-code.ts— reads~/.qwen/tmp/<hash>/chats/*.jsonl(ChatRecord JSONL format, forked from gemini cli)qwen, resume via--continue, storage path~/.qwen/tmp/*/chats/technical notes:
message.parts[].textfunctionCallparts + enrichedtoolCallResultmetadatacloses #12
Review all of them with eye of John Carmack-like simplicity with elegeance approach and apply the one only if required
Greptile Summary
Adds qwen-code (16th tool) - follows 4-step registration checklist, includes fixture and 30 new test paths. Parser correctly streams JSONL, uses SummaryCollector, and reuses gemini's flag mapper since qwen-code is forked from gemini CLI.
Critical issue:
ascasts instead of Zod validation - violateszod-schema-validationrule. Must createQwenChatRecordSchemainsrc/types/schemas.tsand use.safeParse()like gemini.ts does.Minor issues:
trimMessages()helper (though gemini.ts also does this)trimMessagesFix the Zod validation before merging - malformed session files will crash the CLI instead of being skipped.
Confidence Score: 2/5
Important Files Changed
qwen-codeto TOOL_NAMES array - clean, correctLast reviewed commit:
0239af8🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.