Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions changelog/unreleased/logs-request-detail-layout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### English

- The request detail dialog in Logs is regrouped: errors show first as an alert, followed by a summary of status, model, tokens, credits and latency, then call info, attempts and diagnostics. Attempts now show account names and per-attempt latency, and bytes read are formatted.

### 中文

- 日志页的请求详情弹窗重新排版:错误以提示框置顶,接着是状态、模型、Tokens、消耗和延迟的摘要,再分组展示调用信息、尝试记录和诊断。尝试记录改为显示账号名称和每次尝试的耗时,读取字节数也做了格式化。
4 changes: 4 additions & 0 deletions frontend/src/i18n/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ export const messages: Record<Lang, Dict> = {
logsUsageDetail: 'Consumption',
logsCreditConsumed: 'Points consumed',
logsDetailTitle: 'Request detail',
logsSectionCall: 'Call',
logsSectionDiagnostics: 'Diagnostics',
logsRuntimeDetailTitle: 'Runtime log detail',
logsRuntimeLevel: 'Level',
logsRuntimeSource: 'Source',
Expand Down Expand Up @@ -1363,6 +1365,8 @@ export const messages: Record<Lang, Dict> = {
logsUsageDetail: '本次消耗',
logsCreditConsumed: '消耗点数',
logsDetailTitle: '请求详情',
logsSectionCall: '调用信息',
logsSectionDiagnostics: '诊断',
logsRuntimeDetailTitle: '运行日志详情',
logsRuntimeLevel: '级别',
logsRuntimeSource: '来源',
Expand Down
311 changes: 175 additions & 136 deletions frontend/src/pages/LogsPage.tsx

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions internal/runtime/checkin_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ func TestCheckinSchedulerRetriesSkippedCampaignAtRetryWindow(t *testing.T) {
}
location, _ := time.LoadLocation("Asia/Shanghai")
now := time.Now().In(location)
// Pin the first attempt to the morning so the 21:00 retry window still
// applies no matter what time of day the test runs.
morning := time.Date(now.Year(), now.Month(), now.Day(), 10, 0, 0, 0, location)
if err := manager.store.RecordCheckin(context.Background(), account.ID, "skipped", "activity disabled", morning.UTC()); err != nil {
t.Fatal(err)
}
manager.runScheduledCheckins(context.Background(), time.Date(now.Year(), now.Month(), now.Day(), 23, 59, 0, 0, location))
if calls.Load() != 2 {
t.Fatalf("skipped campaign should retry at the retry window, calls=%d", calls.Load())
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions internal/webui/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<meta name="twitter:title" content="CLI2API" />
<meta name="twitter:description" content="Qoder CLI → OpenAI-compatible API. Self-hosted gateway." />
<meta name="twitter:image" content="/og-card.svg" />
<script type="module" crossorigin src="/assets/index-CzgfNc9z.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-ByHWNOdw.css">
<script type="module" crossorigin src="/assets/index-mT6oJ2cL.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Ctz5Puzt.css">
</head>
<body>
<div id="root"></div>
Expand Down
Loading