CJACK.
2bbf603148
fix: address PR #97 review findings
2026-03-18 00:52:24 +08:00
CJACK.
f16e0b579e
Merge pull request #92 from valkryhx/main
...
fix(toolcall): fix deepseek function calling bug and add json repair
2026-03-18 00:15:47 +08:00
huangxun
cf569f4749
docs: add testing documentation for tool call debugging
...
- Add targeted test commands to TESTING.md for debugging tool call issues
- Add quick test commands reference in README.md
- Document specific test cases for DeepSeek tool call parsing
2026-03-17 16:41:16 +08:00
huangxun
c9c59f2490
refactor(toolcall): enhance tool call extraction with multiple keywords and safety limits
...
- Add support for multiple keywords: tool_calls, function.name:, [tool_call_history]
- Add OOM protection with search limits in extractToolCallObjects
- Add max scan length limit in extractJSONObject to prevent OOM on unclosed objects
- Update tool_sieve to handle more tool call patterns
- Add loose JSON repair in parseToolCallPayload for better error recovery
This improves DeepSeek tool call parsing robustness.
2026-03-17 16:28:27 +08:00
huangxun
16216cc2ca
fix(toolcalls): support nested objects in missing array brackets repair
...
- Upgrade missingArrayBracketsPattern regex to support single-level nested {} objects
- This fixes DeepSeek's list hallucination where tool call JSON objects contain nested fields like {"input": {"q": "value"}}
- Add comprehensive test cases covering 2-5 nested objects, mixed nested/primitive fields, and real DeepSeek 8-queen output patterns
- Add RepairLooseJSON function to repair unquoted keys and missing array brackets
Fixes: DeepSeek tool call parsing with nested JSON objects
2026-03-17 16:24:16 +08:00
CJACK.
de50fd3954
Merge pull request #96 from CJackHwang/codex/update-ci-line-count-limits-cihke3
...
ci: ignore test files in line gate and raise frontend limit to 500
v2.3.4_beta
2026-03-16 23:16:22 +08:00
CJACK.
7648d5f192
ci: keep entry line cap precedence over frontend cap
2026-03-16 23:06:58 +08:00
CJACK.
d35e5eab25
ci: ignore tests in line gate and raise frontend limit
2026-03-16 22:58:13 +08:00
CJACK.
90610a52ce
Merge pull request #93 from latticeon/feature/session-management
...
feat: 添加会话管理功能
2026-03-16 22:12:00 +08:00
latticeon
f6296d506f
fix: 修改批量删除会话方式
...
- 从逐条单个删除改为官方的批量删除接口
- 单个删除函数保留备用
2026-03-16 16:23:39 +08:00
latticeon
dfea092583
fix: 更新测试 mock 结构体以实现新增的接口方法
...
会话管理功能新增接口方法后,同步更新测试 mock 结构体:
- mockOpenAIConfig: 添加 AutoDeleteSessions() 方法
- streamStatusDSStub: 添加 DeleteAllSessionsForToken() 方法
- testingDSMock: 添加 DeleteAllSessionsForToken() 和 GetSessionCountForToken() 方法
同时修复 client_session_delete.go 中 fmt.Errorf 使用非常量格式字符串的编译错误,改用 errors.New()
2026-03-16 11:58:07 +08:00
latticeon
af7dc134bb
fix: 修复会话管理相关问题并拆分文件
...
1. 修复无限循环问题
- DeleteAllSessions/DeleteAllSessionsForToken 添加无进度检测
- 连续 3 轮删除失败则退出循环
- DeleteAllSessionsForToken 添加 cursor 推进逻辑
2. 修复字段语义不准确
- TotalCount 重命名为 FirstPageCount
- 明确该值仅统计第一页,多页账户需关注 HasMore
3. 修复 defer 执行顺序问题
- 合并两个 defer,确保先删除会话再释放账号
- 使用同步删除避免并发截断风险
4. 文件拆分
- 新建 client_session_delete.go 处理会话删除
- client_session.go 专注于会话查询
2026-03-16 01:44:21 +08:00
latticeon
2657d37f76
添加会话数量显示与清除功能
...
添加会话清除功能,增强安全性,避免账号被盗等情况泄露源代码
账号列表点击测试后显示账号的会话数量
设置页添加自动清除开关,每次调用后清除被调用账号的所有会话
2026-03-16 00:50:31 +08:00
huangxun
7318d1f4a8
fix(toolcall): fix deepseek function calling bug and add json repair
...
- Fix: Expand stream sieve keywords to support function.name: and [TOOL_CALL_HISTORY]
- Fix: Add repairInvalidJSONBackslashes to handle unescaped backslashes in Windows paths
- Sync: Update JS stream sieve to match Go implementation
- Test: Add unit tests for backslash repair and deepseek format parsing
- Tool: Move repair json test tool to tests/repair_json_tool.go
2026-03-13 13:47:40 +08:00
CJACK.
f2674487c7
Merge pull request #90 from CJackHwang/dev
...
Merge pull request #89 from CJackHwang/codex/review-changes-in-pull-request-#88
Support text-kv `function.name`/`function.arguments` fallback and looser name matching
v2.3.3
2026-03-09 21:42:28 +08:00
CJACK.
71cdcb43e8
Merge pull request #89 from CJackHwang/codex/review-changes-in-pull-request-#88
...
Support text-kv `function.name`/`function.arguments` fallback and looser name matching
2026-03-09 19:21:24 +08:00
CJACK.
9c46c3a874
Merge branch 'dev' into codex/review-changes-in-pull-request-#88
2026-03-09 19:20:32 +08:00
CJACK.
12d5f136d5
fix(toolcall): pass gates and align go/js multi-layer parser
2026-03-09 19:16:28 +08:00
CJACK.
00c37d8d2f
Merge pull request #88 from valkryhx/main
...
update openai function calling 成功率高 是因为chat内容和tool内容分开保存,而ds则混合了
2026-03-09 19:04:41 +08:00
huangxun
0f1985af4a
feat(util): 增加对混杂文本中 Tool Call 的 fallback 解析支持
...
- 引入 parseTextKVToolCalls 解析器以处理混杂文本或带历史记录套壳(如 [TOOL_CALL_HISTORY])输出的函数调用提取。
- 将其作为 JSON 和 XML 的 fallback 解析手段集成到主流程。
- 添加单元测试用例且更新相关语义说明文档。
2026-03-09 15:00:16 +08:00
huangxun
fa8affe1b7
Merge remote-tracking branch 'upstream/main'
2026-03-09 14:29:09 +08:00
CJACK.
c59a0b7799
Merge pull request #87 from CJackHwang/dev
...
Merge pull request #82 from CJackHwang/codex/linear-mention-cja-10-ds2api-go-runtime-js
Align Go/JS tool-call parsing semantics and expand compat fixtures
v2.3.2
2026-03-08 13:21:22 +08:00
CJACK.
bd72b91f27
Merge pull request #82 from CJackHwang/codex/linear-mention-cja-10-ds2api-go-runtime-js
...
Align Go/JS tool-call parsing semantics and expand compat fixtures
2026-03-08 13:19:09 +08:00
CJACK.
9240f85246
Merge pull request #86 from CJackHwang/codex/fix
...
fix: parse invoke/tool_call arguments in xml compatibility paths
2026-03-08 13:17:29 +08:00
CJACK.
ea4bd1e483
fix: parse invoke/tool_call arguments in xml compatibility paths
2026-03-08 13:16:12 +08:00
CJACK.
9e0de62707
Merge branch 'dev' into codex/linear-mention-cja-10-ds2api-go-runtime-js
2026-03-08 02:40:35 +08:00
CJACK.
128de290db
Merge pull request #85 from CJackHwang/revert-84-codex/fix-code-conflicts-in-pr-#82
...
Revert "Resolve PR #82 merge conflicts and restore tool-call parsing (invoke/argument and XML arguments)"
2026-03-08 02:38:57 +08:00
CJACK.
286d266723
Revert "Resolve PR #82 merge conflicts and restore tool-call parsing (invoke/argument and XML arguments)"
2026-03-08 02:38:29 +08:00
CJACK.
8aad1005b2
Merge pull request #84 from CJackHwang/codex/fix-code-conflicts-in-pr-#82
...
Resolve PR #82 merge conflicts and restore tool-call parsing (invoke/argument and XML arguments)
2026-03-08 02:31:21 +08:00
CJACK.
11b2f24fc2
Merge origin/dev into PR branch and resolve toolcall parser conflicts
2026-03-08 02:30:12 +08:00
CJACK.
d1f08cbb89
Merge pull request #83 from CJackHwang/dev
...
Merge pull request #81 from CJackHwang/codex/linear-mention-cja-8
Drop nameless assistant tool_calls and emit parsed tool_calls atomically in sieve
2026-03-08 01:36:38 +08:00
CJACK.
60e9d707d4
Merge origin/dev into PR branch and resolve toolcall test conflicts
2026-03-08 01:10:53 +08:00
CJACK.
9b93badb57
Harden markup tag parsing to avoid mismatched-tag false positives
2026-03-08 00:55:32 +08:00
CJACK.
892213071a
Align Go/JS tool-call parsing semantics and compat fixtures
2026-03-08 00:12:43 +08:00
CJACK.
5484d6e59d
Merge pull request #81 from CJackHwang/codex/linear-mention-cja-8
...
Drop nameless assistant tool_calls and emit parsed tool_calls atomically in sieve
2026-03-07 23:15:54 +08:00
CJACK.
0ce3fd22a7
Address PR review: fenced-stream guard and multi ANTML calls
2026-03-07 17:45:43 +08:00
CJACK.
25e40cc3a6
Fix quality gate and expand Claude tool-call format compatibility
2026-03-07 17:27:29 +08:00
CJACK.
af68d21095
Improve Claude Code tool-call compatibility across mixed formats
2026-03-07 16:53:05 +08:00
CJACK.
1fafd25e86
add output_text.done event and remove transient stability report
2026-03-07 16:00:53 +08:00
CJACK.
5f8f28a943
add codex and claude-cli ds2api stability test report
2026-03-07 16:00:36 +08:00
CJACK.
94cf1bfcc7
drop nameless assistant tool history entries
2026-03-07 14:45:10 +08:00
CJACK.
13562cf521
Merge pull request #80 from CJackHwang/dev
...
Merge pull request #79 from CJackHwang/codex/analyze-and-optimize-issue-#77
fix: 避免 assistant.content=nil 注入 "null" 导致工具历史混杂
v2.3.1
2026-03-07 02:13:46 +08:00
valkryhx
d27e700c4f
update openai function calling 成功率高 是因为chat内容和tool内容分开保存,而ds则混合了
2026-03-06 23:22:11 +08:00
valkryhx
d6bce5af93
Merge branch 'dev'
2026-03-06 22:49:56 +08:00
CJACK.
75969e710d
Merge pull request #79 from CJackHwang/codex/analyze-and-optimize-issue-#77
...
fix: 避免 assistant.content=nil 注入 "null" 导致工具历史混杂
2026-03-06 22:20:47 +08:00
CJACK.
6c39c8e191
fix: 修复 text 为空时 content 回退丢失问题
2026-03-06 21:24:26 +08:00
CJACK.
0e261ff0a0
refactor: 统一内容归一化逻辑并补充 nil 回归测试
2026-03-06 18:25:27 +08:00
CJACK.
fab326eca1
fix: 修复工具历史注入 null 导致调用格式混乱
2026-03-05 18:20:42 +08:00
CJACK.
c033eceee7
Merge pull request #75 from CJackHwang/dev
...
Merge pull request #74 from CJackHwang/codex/fix-toolcall-whitelist-issue
Recognize and emit executable tool_calls in mixed prose streams; normalize roles and loosen tool-name matching
2026-03-03 01:30:44 +08:00
CJACK.
a10e03ebe0
Merge pull request #74 from CJackHwang/codex/fix-toolcall-whitelist-issue
...
Recognize and emit executable tool_calls in mixed prose streams; normalize roles and loosen tool-name matching
v2.3.0_Beta
2026-03-03 00:40:41 +08:00