CJACK.
990cdcf02d
refactor config: keep account test status runtime-only
2026-03-22 00:49:53 +08:00
CJACK.
67787d9c99
Merge pull request #132 from CJackHwang/codex/toolcallhistory-6t7271
...
Preserve code fences around standalone tool JSON and add marker-output guards
2026-03-21 17:44:05 +08:00
CJACK.
7061094964
Fix fence-strip regression for closed code blocks before tool JSON
2026-03-21 17:39:08 +08:00
CJACK.
43a6e6712f
Show UI drift marker for env draft vs Vercel config
2026-03-21 17:08:43 +08:00
CJACK.
1bf059396f
Fix file-backed token reuse at startup
2026-03-21 15:19:41 +08:00
CJACK.
ee88a74dcf
Drop legacy token-only accounts when loading config
2026-03-21 15:01:16 +08:00
CJACK.
ca08bb66b9
Add HTTP token-runtime coverage and fix gate tests for tokenless config
2026-03-21 14:27:12 +08:00
CJACK.
b56a211da9
Merge pull request #115 from CJackHwang/codex/fix-version-detection-for-ds2api
...
Expose version endpoint, add version package, and inject build version into artifacts/Docker images
2026-03-21 00:47:57 +08:00
CJACK.
d27b19cc53
fix: show vercel preview commit version instead of dev
2026-03-21 00:43:09 +08:00
CJACK.
b8ff678f24
Align Vercel JS toolcall filtering with Go semantics
2026-03-21 00:23:22 +08:00
CJACK.
0c2743a48c
fix: align build version source with tags and VERSION fallback
2026-03-20 23:55:10 +08:00
CJACK.
dc73e8a6da
Gate biz_code refresh attempts to auth-indicative failures
2026-03-20 23:54:13 +08:00
CJACK.
b8495eeeb3
surface account test config writeability and save failures
2026-03-20 23:34:29 +08:00
CJACK.
17405be300
shrink vercel stream module under line gate limit
2026-03-20 09:47:22 +08:00
CJACK.
5bc03e5de6
align vercel js stream toolcall delta behavior with go runtime
2026-03-20 09:36:45 +08:00
CJACK.
88a79f212d
Fix path control-char repair on JSON fallback parses
2026-03-20 02:52:27 +08:00
CJACK.
acfb3b225d
Split toolcall input parsing to satisfy line gate
2026-03-20 02:37:23 +08:00
CJACK.
99a6164000
Fix path corruption when parsing tool call JSON strings
2026-03-20 02:31:37 +08:00
CJACK.
184a3d1e4e
Sync Node tool-call parsing with aggressive fenced/mixed policy
2026-03-20 02:16:37 +08:00
CJACK.
c4ec14f49a
Fix refactor line gate for toolcalls_parse
2026-03-20 02:12:34 +08:00
CJACK.
fb5fc0e885
Default to aggressive tool-call interception in mixed/fenced text
2026-03-20 02:03:46 +08:00
CJACK.
20b603666d
Allow standalone parser to detect mixed prose tool JSON
2026-03-20 02:03:32 +08:00
CJACK.
4d549b7102
Revert "Merge branch 'dev' into codex/fix-issues-found-in-review"
...
This reverts commit 33b0d1d144 , reversing
changes made to efb484ba4f .
2026-03-20 01:38:11 +08:00
CJACK.
33b0d1d144
Merge branch 'dev' into codex/fix-issues-found-in-review
2026-03-20 01:23:00 +08:00
CJACK.
145501d4a5
fix(tool-sieve): allow mixed prose + tool json interception
2026-03-20 01:15:32 +08:00
CJACK.
2d5103997b
fix(tool-sieve): keep mixed prose tool json in strict text mode
2026-03-20 01:15:15 +08:00
CJACK.
52e7e7aae8
fix: unblock line gate and harden pow token recovery
2026-03-20 00:50:05 +08:00
CJACK.
2bbf603148
fix: address PR #97 review findings
2026-03-18 00:52:24 +08:00
CJACK.
d14b8a0664
Stabilize tool-call parsing and pass refactor gate
2026-03-18 00:45:28 +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
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
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.
12d5f136d5
fix(toolcall): pass gates and align go/js multi-layer parser
2026-03-09 19:16:28 +08:00
CJACK.
ea4bd1e483
fix: parse invoke/tool_call arguments in xml compatibility paths
2026-03-08 13:16:12 +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.
11b2f24fc2
Merge origin/dev into PR branch and resolve toolcall parser conflicts
2026-03-08 02:30:12 +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.
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.
a6aa4a1839
补充工具调用行为说明并修正测试文档过时命令
2026-03-03 00:39:02 +08:00
CJACK.
3ae5b57ebe
fix(deepseek): normalize mobile before login token refresh
2026-03-02 23:48:54 +08:00
CJACK
d731a1fd4f
门禁
2026-03-01 07:20:24 +08:00