stabey
3330b2ac4c
refactor(report-context): extract UPSTREAM_IS_STREAM_KEY constant
...
The "upstream_is_stream" JSON key flows from the AI execution report
context producer (aether-ai-serving::report_context) through several
consumers — usage runtime metadata copy/move, gateway watchdog, sync
execution decision, observability handlers, and the per-driver usage
repositories. Each site spelled the key as a bare string literal, so a
producer-side rename would silently degrade every consumer to its
fallback (typically assuming streaming) with no compile-time signal.
Introduce a single pub const UPSTREAM_IS_STREAM_KEY in
aether-ai-formats (the lowest crate every consumer already depends on),
re-export from the crate root, and route producer + all map-style
consumers through it. The change is purely a string-literal → constant
swap; behaviour is identical.
Sites left as literals (intentional):
- `json!({"upstream_is_stream": ...})` macro keys, which must be string
literals at the macro layer; these are also API-response payload
field names (an external contract that should not silently track
internal report-context renames).
- SQL column accessors (`try_get::<...>("upstream_is_stream")`), which
refer to the database schema column, not the JSON key.
- Test fixtures and assertions, which validate the on-the-wire contract
and should keep verifying the actual string.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-21 15:26:42 +08:00
zhefox
be6e49b9c2
Merge branch 'main' of https://github.com/zhefox/Aether
2026-05-21 12:30:48 +08:00
zhefox
e59e6c3797
fix(gateway): sanitize Claude thinking and handle missing stream finish
2026-05-21 12:30:42 +08:00
Entropy.Xu
6b04a0a3a6
fix(windsurf): 修复 native 工具流式回程
2026-05-21 02:55:05 +08:00
Entropy.Xu
4112a8b2ea
fix(provider): 修复 Windsurf PR CI 失败
2026-05-21 02:21:35 +08:00
fawney19
b84e4a96e2
chore: tune default postgres settings for 2c4g
tunnel-v0.3.12
v0.7.3
2026-05-21 01:36:05 +08:00
fawney19
e7f8b259ac
Revert "Merge pull request #517 from zhiqicloud/feat/provider-balance-query"
...
This reverts commit 7e95e769d5 , reversing
changes made to 490306c242 .
2026-05-21 01:24:17 +08:00
Entropy.Xu
65c361115a
fix(provider): 修复 Windsurf PR 冲突残留
2026-05-21 01:02:02 +08:00
Entropy.Xu
129c7c90c0
fix(provider): 修复 Windsurf 原生工具桥接
2026-05-21 01:02:02 +08:00
Entropy.Xu
82637ad882
fix(provider): 修复 Windsurf Connect 请求与端点计数
2026-05-21 01:02:02 +08:00
Entropy.Xu
931c577345
fix(provider): 接入 Windsurf 模型测试链路
2026-05-21 01:02:02 +08:00
Entropy.Xu
9466d92a7a
fix(provider): 接入 Windsurf 模型拉取和格式转换
2026-05-21 01:02:02 +08:00
Entropy.Xu
0a0a8b31c7
fix(provider): 隐藏 Windsurf refresh token 刷新入口
2026-05-21 01:02:02 +08:00
Entropy.Xu
208c77a062
fix(provider): 对齐 Windsurf PostAuth 登录链路
2026-05-21 01:02:02 +08:00
Entropy.Xu
02d1343436
feat(provider): 补充 Windsurf 邮箱密码导入表单
2026-05-21 01:02:02 +08:00
Entropy.Xu
0226e14251
feat(provider): 原生接入 Windsurf provider
2026-05-21 01:02:02 +08:00
fawney19
923515ab28
fix: align image generation checks
2026-05-21 00:45:02 +08:00
fawney19
4d0c654822
Merge remote-tracking branch 'origin/pr/524'
2026-05-20 23:17:31 +08:00
ZheFox
779877acd0
Merge branch 'fawney19:main' into main
2026-05-20 22:49:49 +08:00
fawney19
d49b0a8a45
Make extension modules reorderable
2026-05-20 22:45:32 +08:00
ZheFox
5a9f19cbf2
fix(gateway): filter upstream SSE control-only blocks
2026-05-20 22:33:41 +08:00
ZheFox
3c6924238f
feat(usage): include cache token details in stream usage payloads
2026-05-20 21:20:10 +08:00
ZheFox
64ad0f694b
feat(usage): include cache token details in stream usage payloads
2026-05-20 21:06:51 +08:00
fawney19
754f672ee2
Merge pull request #526 from MMEXA/fix/codex-responses-pending-recovery-20260520
...
修复 Codex Responses 工具字段和成功请求回收标记
2026-05-20 21:01:54 +08:00
fawney19
e50ceeba5a
Merge pull request #525 from final0920/fix/issue-505-priority-order
...
fix: 修复优先级管理重新打开顺序回退
2026-05-20 21:00:06 +08:00
fawney19
57910f906d
Preserve usage provider identity
2026-05-20 20:56:36 +08:00
ZheFox
8838e9289b
fix(provider): remove stale image preview block from model test dialog
2026-05-20 20:53:13 +08:00
ZheFox
d3355a8a09
fix(gateway): decode stream-encoded provider response JSON
2026-05-20 20:40:48 +08:00
fawney19
c972bbd397
Fix provider pool exhaustion scheduling
2026-05-20 20:16:57 +08:00
MMEXA
fed9bdf01a
Fix Codex Responses tool schema and pending recovery
2026-05-20 12:02:00 +00:00
ZheFox
ab2287202d
feat(provider): show image previews in model test dialog
2026-05-20 19:59:20 +08:00
流云
b47282fe4c
fix: 修复优先级管理重新打开顺序回退
...
优先级管理弹窗依赖 grouped-by-format 接口回显格式优先级,但该接口此前读取 summary key 行。summary 查询会清空 global_priority_by_format 和 internal_priority 等路由字段,导致保存后的数据库顺序存在,重新打开页面却回退为前端占位顺序。
改为使用完整 key 查询,并增加 summary 字段被清空时仍能回显真实优先级的回归测试。
Fixes #505
Constraint: grouped-by-format 是优先级管理弹窗的数据源,必须返回真实 per-format priority 字段。
Rejected: 修改前端继续猜测顺序 | 无法区分真实数据库优先级与占位回退。
Confidence: high
Scope-risk: narrow
Tested: cargo fmt --check; git diff --check
Not-tested: cargo test on local Windows blocked by missing NASM for boring-sys2
2026-05-20 19:44:05 +08:00
ZheFox
a31e237cc3
Merge upstream main
2026-05-20 19:28:49 +08:00
ZheFox
cfa32a2b4d
fix(gateway): preserve openai image 200 responses and sync success reporting
2026-05-20 19:17:42 +08:00
ZheFox
2cacf66a37
fix(gateway): route openai image streams with images surface
2026-05-20 18:13:34 +08:00
fawney19
d0981c2fd5
Merge pull request #522 from RWDai/fix/admin-users-server-pagination
...
Fix admin users server-side pagination
2026-05-20 18:03:11 +08:00
RWDai
3e12c06627
Fix user group options cache busting
2026-05-20 17:51:29 +08:00
RWDai
74a3df3f1e
Fix user group options cache invalidation
2026-05-20 17:46:16 +08:00
fawney19
cb894208a1
Merge pull request #521 from Avilianb/fix/provider-query-responses-compact-body
...
Fix provider model test compact request bodies
2026-05-20 17:42:53 +08:00
fawney19
76752beca6
chore(postgres): 支持通过环境变量配置 PG 性能参数
2026-05-20 17:41:52 +08:00
RWDai
e80e7b0cfa
Fix admin users pagination review issues
2026-05-20 17:41:06 +08:00
RWDai
77051e6245
Fix admin users pagination follow-ups
2026-05-20 17:32:47 +08:00
ZheFox
de7be4f15b
fix(gateway): route openai image api requests with mapped models
2026-05-20 17:16:38 +08:00
RWDai
44fb1af287
Fix admin user count clippy lint
2026-05-20 17:06:33 +08:00
fawney19
e7a76b0510
chore(docker): postgres 启用 pg_stat_statements 扩展
2026-05-20 17:00:44 +08:00
fawney19
2881ff097a
feat(usage): 管理员用量统计支持筛选刷新与失败保留旧数据
...
- 用量统计/聚合接口新增 skipCache 选项与 120s 超时,便于强制绕过缓存
- loadStats 增加 force/preserveOnFailure 选项,背景刷新失败时保留旧数据
- 管理员页面在用户/模型/Provider 筛选变化时强制刷新统计,并将筛选条件传入统计接口
- 手动刷新与自动刷新分离,自动刷新不再重载长期热力图相关聚合
2026-05-20 16:51:52 +08:00
RWDai
462c3dde79
Load admin users with server-side pagination
2026-05-20 16:51:46 +08:00
RWDai
1be703b56e
Track admin users pagination in frontend data layer
2026-05-20 16:51:46 +08:00
RWDai
5130da9710
Return paginated admin users metadata
2026-05-20 16:51:46 +08:00
RWDai
8440846bae
Expose admin user export counts through gateway state
2026-05-20 16:51:46 +08:00