Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
1f60d23
fix: 修复请求记录卡在“请求中”导致崩溃 (#854)
tesgth032 Mar 2, 2026
eb69162
fix: 修正异步写入入队语义并增强封闭安全性
tesgth032 Mar 2, 2026
b8be549
fix: 区分异步入队结果,避免无效 patch 触发同步回退
tesgth032 Mar 2, 2026
99d95a1
fix: 完善队列溢出终态判定并增强封闭参数校验
tesgth032 Mar 2, 2026
f8a9bf5
fix: 队列溢出时保护终态并同步兜底
tesgth032 Mar 2, 2026
db55c41
chore: 统一 message-write-buffer 导入并明确孤儿错误码
tesgth032 Mar 2, 2026
9ea0302
fix: cost 更新在 overflow 时不走同步写入
tesgth032 Mar 2, 2026
ab07c59
ci: 确保安装 Biome CLI 以稳定格式检查
tesgth032 Mar 2, 2026
3d285d7
chore: format code (fix-issue-854-message-request-stuck-ab07c59)
github-actions[bot] Mar 2, 2026
5e5ccf5
fix: 强化 message_request 写缓冲容错
tesgth032 Mar 2, 2026
b378f1b
chore: 恢复 usage-ledger 测试格式化
tesgth032 Mar 2, 2026
d7b927e
chore: format code (fix-issue-854-message-request-stuck-b378f1b)
github-actions[bot] Mar 2, 2026
f636bd4
chore: 触发 CI 重新运行
tesgth032 Mar 2, 2026
3d41876
fix: 扩展孤儿请求封闭条件(补 status_code)
tesgth032 Mar 2, 2026
a2dd6f0
chore: format usage-ledger integration test
tesgth032 Mar 2, 2026
e55090f
chore: format code (fix-issue-854-message-request-stuck-a2dd6f0)
github-actions[bot] Mar 2, 2026
88a1459
perf: 优化 proxy-status lastRequest 查询
tesgth032 Mar 2, 2026
aab8fff
refactor: 提取 per-item 暂态错误回队列逻辑
tesgth032 Mar 2, 2026
e048a8b
fix: 加固 #854 异步写缓冲自愈与孤儿清扫
tesgth032 Mar 2, 2026
e342b0c
chore: format code (fix-issue-854-message-request-stuck-e048a8b)
github-actions[bot] Mar 2, 2026
485275a
ci: 固定 Biome 版本以匹配 schema
tesgth032 Mar 2, 2026
63e2584
chore: 处理 AI review(移除 Biome CLI 硬编码)
tesgth032 Mar 2, 2026
cf8fa1c
chore: format code (fix-issue-854-message-request-stuck-63e2584)
github-actions[bot] Mar 2, 2026
023c491
ci: 固定 Biome 版本避免 schema 漂移
tesgth032 Mar 2, 2026
1bd6fff
fix: 暂态错误时避免 flush 忙等重试
tesgth032 Mar 2, 2026
d92c4ea
fix: overflow 丢弃时返回补丁并增强同步写入兜底
tesgth032 Mar 2, 2026
2f1e9fe
fix: proxy-status lastRequest 排除进行中请求
tesgth032 Mar 2, 2026
d30651c
fix: 补齐 sanitize 告警并澄清 overflow/lastRequest 语义
tesgth032 Mar 2, 2026
3b00259
fix: 加固孤儿封闭并增强 clamp 告警
tesgth032 Mar 2, 2026
8faba64
fix: 收敛 requeue 溢出并修正 endTime 语义
tesgth032 Mar 2, 2026
ef969f7
fix: 完善 message_request 异步写入与孤儿封闭边界
tesgth032 Mar 2, 2026
c0b4989
fix: 完善 message_request sanitize 与 proxy-status 可观测性
tesgth032 Mar 2, 2026
cc5ceb9
fix: proxy-status 隐藏已软删除 provider
tesgth032 Mar 3, 2026
46a1bda
fix: 采纳 AI review,完善 per-item flush 与 costUsd 更新
tesgth032 Mar 3, 2026
1531b40
fix: 修复孤儿清扫器并发初始化与非法 statusCode 写入
tesgth032 Mar 3, 2026
aaea3f6
fix: #854 补充 completed 索引并优化 orphan sealer
tesgth032 Mar 3, 2026
d7ca176
chore: 采纳 Greptile 建议整理测试工具并增强日志
tesgth032 Mar 3, 2026
8a08316
chore: 按 Greptile 建议内联 warmup 过滤并补充注释
tesgth032 Mar 3, 2026
46b32de
fix: token 字段改用 safe-int sanitize 以匹配 bigint
tesgth032 Mar 3, 2026
f30a51e
fix: 为活跃/孤儿请求加索引并补齐批量更新 cast
tesgth032 Mar 3, 2026
4ab8bdc
fix: 排除 warmup 活跃请求并优化写缓冲降级路径
tesgth032 Mar 3, 2026
5a00ec3
fix: orphan sealer 按 status_code 封闭并缓存 proxy-status
tesgth032 Mar 3, 2026
30e6c4f
fix: orphan sealer 对齐 active 索引并修补 proxy-status 缓存竞态
tesgth032 Mar 3, 2026
ff9f03b
fix: 写缓冲 requeue 加硬上限并避免 sweeper 超时并发
tesgth032 Mar 3, 2026
c37a68a
fix: 降级 proxy-status 快照并补强孤儿封闭
tesgth032 Mar 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
node-version: '20'

- name: 📦 Install dependencies
run: bun install
run: bun install --frozen-lockfile

- name: 🔍 Type check
run: bun run typecheck
Expand Down
4 changes: 4 additions & 0 deletions drizzle/0078_huge_weapon_omega.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Note: message_request is a high-write table. Standard CREATE INDEX may block writes during index creation.
-- Drizzle migrator does not support CREATE INDEX CONCURRENTLY. If write blocking is a concern,
-- manually pre-create indexes with CONCURRENTLY before running this migration (IF NOT EXISTS prevents conflicts).
CREATE INDEX IF NOT EXISTS "idx_message_request_user_created_at_id_completed" ON "message_request" USING btree ("user_id","created_at" DESC NULLS LAST,"id" DESC NULLS LAST) WHERE "message_request"."deleted_at" IS NULL AND "message_request"."duration_ms" IS NOT NULL AND ("message_request"."blocked_by" IS NULL OR "message_request"."blocked_by" <> 'warmup');
4 changes: 4 additions & 0 deletions drizzle/0079_special_zarda.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Note: message_request is a high-write table. Standard CREATE INDEX may block writes during index creation.
-- Drizzle migrator does not support CREATE INDEX CONCURRENTLY. If write blocking is a concern,
-- manually pre-create indexes with CONCURRENTLY before running this migration (IF NOT EXISTS prevents conflicts).
CREATE INDEX IF NOT EXISTS "idx_message_request_active_created_at_id" ON "message_request" USING btree ("created_at","id") WHERE "message_request"."deleted_at" IS NULL AND "message_request"."duration_ms" IS NULL;
Loading
Loading