yetone
8b70b7d976
usage: a request's bytes up and down, and what DeepSeek's image files saved, in Requests
...
Suggested by @faithleysath (matrix0487 on Discord): the usage ledger now
keeps what each request received back (down_bytes) beside what it sent up
(up_bytes, #4456 ), and what DeepSeek's image files (#5407 ) kept out of the
upload (image_files_saved).
Shown in Usage → Requests:
- a row's details: "Sent upstream", "Received" and "Saved by image files",
each only when it is above 0. A row from before has none of them, not 0;
- under the Requests card, the period's "↑ up · ↓ down", with
"{n} saved by image files" when there is a saving. Its title gives the
exact bytes. A period with no counted bytes shows no line.
What is counted:
- Down bytes are counted as the reply body is read, after Go's transport
has undone gzip, so a gzipped reply counts its plain size, not wire
bytes. A plugin's row counts the local hop to the plugin host. A 101
body is not wrapped. Every try counts, so a refused try plus the
answering one add up (TestLedgerKeepsDownBytes).
- Image files saved, per try: the body before the swap minus the body
sent, minus the upload bytes this request itself paid (len(b64)/4*3).
It can be negative on the turn that uploads; the GUI shows only a
saving above 0. Gaps: an upload that finishes after the wait timeout or
ctx-done is not subtracted (as with up_bytes); a joined upload flight is
paid by the request that started it; multipart overhead is approximate.
- packedRow grows by three int32 (152 bytes, still within the test's
bound), clamped to the int32 range. Totals sum all three.
- settledCountVersion goes 1 → 2, because Totals now count bytes. The
settled page, heat and effort caches recount once, on the first start
after the update. The heat key hash includes the new fields.
Run on mote at 84ad780b6 (origin/main, fetched):
- go test ./internal/usage: ok.
- go test ./internal/gateway -run 'TestLedgerKeepsDownBytes|TestDeepSeek|
TestCodexOwnTurnKeepsUpBytes|TestLedgerKeepsUpBytes|
TestLedgerCountsATrysSecondAsk': ok.
- go test ./internal/gui: only TestMainWindowCorners/macOS_26_SDK fails,
as on main (#3949 ).
- gofmt -l clean; go vet of usage and gateway for darwin, linux (nogui)
and windows; go build ./...
- New GUI test usage-ledger-bytes.test.cjs: 30 of 30 in Chromium and
WebKit, en/zh/zh-TW/ja/de, at 1180 and 420 wide. It is red on the old
page.js.
- usage-*, ledger-*, i18n-* and nav-timeout GUI files: 1231 of 1267.
Every red is red on a clean 84ad780b6 too: usage-agents-hide (#3414 ),
usage-fold (#3415 ), usage-ledger's "newest live route" (#5048 ),
usage-overview-fold, which flakes in other languages on each run
(#3947 ), i18n-keys (#5332 , and #5426 filed now for "No session ID"),
and nav-timeout (#5425 , filed now).
Broken by hand:
- gotDown not wrapping the body: red, "down 0; the vendors answered
141/265 bytes" and "the backend answered 105 bytes".
- the saved += removed: red, "saved 0".
- the settled guard red with the bytes fixture until the version raise.
Not tried: a real DeepSeek or other vendor account through a built app,
and a screenshot of the real app. The CSV export does not have the new
columns yet.
2026-11-06 09:17:10 +08:00
..
2026-11-06 09:17:10 +08:00
2026-10-30 15:00:16 +08:00
2026-10-18 07:13:09 +08:00
2026-11-06 09:17:10 +08:00
2026-11-01 03:49:03 +08:00
2026-11-03 14:09:42 +08:00
2026-10-30 18:03:55 +08:00
2026-11-03 18:23:13 +08:00
2026-11-01 01:56:48 +08:00
2026-10-14 20:01:06 +08:00
2026-10-31 19:35:16 +08:00
2026-10-14 17:00:34 +08:00
2026-10-31 10:33:50 +08:00
2026-11-05 17:24:53 +08:00
2026-11-04 00:22:54 +08:00
2026-10-27 18:58:16 +08:00
2026-10-27 18:58:16 +08:00
2026-10-24 21:01:18 +08:00
2026-10-24 21:01:18 +08:00
2026-11-04 20:20:41 +08:00
2026-11-01 11:43:56 +08:00
2026-11-02 18:24:38 +08:00
2026-11-03 17:24:19 +08:00
2026-11-03 23:48:36 +08:00
2026-10-28 22:26:02 +08:00
2026-10-17 22:54:38 +08:00
2026-10-25 05:54:07 +08:00
2026-10-16 00:16:43 +08:00
2026-10-25 01:23:42 +08:00
2026-11-02 13:53:19 +08:00
2026-11-05 18:28:38 +08:00
2026-11-05 18:28:38 +08:00
2026-11-02 05:37:32 +08:00
2026-10-26 15:35:12 +08:00
2026-11-01 21:19:22 +08:00
2026-10-27 15:30:31 +08:00
2026-10-31 09:17:24 +08:00
2026-10-29 22:10:21 +08:00
2026-10-29 22:10:21 +08:00
2026-11-03 13:34:35 +08:00
2026-11-03 13:34:35 +08:00
2026-10-30 13:23:19 +08:00
2026-10-30 16:05:58 +08:00
2026-10-22 19:03:32 +08:00
2026-11-05 17:25:26 +08:00
2026-11-04 23:17:05 +08:00
2026-10-31 04:21:21 +08:00
2026-11-01 16:43:21 +08:00
2026-10-17 05:33:18 +08:00
2026-10-29 20:53:36 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-11-05 00:11:02 +08:00
2026-11-01 17:28:15 +08:00
2026-11-01 17:28:15 +08:00
2026-10-25 19:28:05 +08:00
2026-11-04 04:47:02 +08:00
2026-11-04 04:47:02 +08:00
2026-11-04 20:20:41 +08:00
2026-10-28 12:25:39 +08:00
2026-10-17 17:45:57 +08:00
2026-10-31 09:41:13 +08:00
2026-10-30 19:12:35 +08:00
2026-11-01 11:43:56 +08:00
2026-11-01 11:43:56 +08:00
2026-11-01 11:43:56 +08:00
2026-11-01 11:43:56 +08:00
2026-11-04 23:55:14 +08:00
2026-11-04 23:55:14 +08:00
2026-10-15 23:08:05 +08:00
2026-11-04 20:20:41 +08:00
2026-11-04 20:20:41 +08:00
2026-11-03 02:37:56 +08:00
2026-10-28 03:50:46 +08:00
2026-10-15 00:34:14 +08:00
2026-10-15 00:34:14 +08:00
2026-11-03 11:57:11 +08:00
2026-10-17 20:38:06 +08:00
2026-11-02 14:13:52 +08:00
2026-10-28 17:34:16 +08:00
2026-10-29 23:36:58 +08:00
2026-11-04 05:00:18 +08:00
2026-10-31 00:57:21 +08:00
2026-11-04 05:00:18 +08:00
2026-10-31 15:56:40 +08:00
2026-11-03 11:16:02 +08:00
2026-11-03 11:16:02 +08:00
2026-10-31 12:44:16 +08:00
2026-11-01 14:33:24 +08:00
2026-10-17 05:33:18 +08:00
2026-11-01 11:02:56 +08:00
2026-11-06 08:01:14 +08:00
2026-11-05 19:56:08 +08:00
2026-10-29 15:50:37 +08:00
2026-10-29 15:50:37 +08:00
2026-10-15 19:20:09 +08:00
2026-11-02 11:09:11 +08:00
2026-10-15 23:08:05 +08:00
2026-10-24 02:20:38 +08:00
2026-10-24 02:20:38 +08:00
2026-11-01 04:46:38 +08:00
2026-11-01 07:39:08 +08:00
2026-10-30 15:26:03 +08:00
2026-11-01 09:04:26 +08:00
2026-11-01 01:28:58 +08:00
2026-11-01 11:43:56 +08:00
2026-11-04 21:00:51 +08:00
2026-10-29 03:17:58 +08:00
2026-11-04 21:18:56 +08:00
2026-11-04 16:32:55 +08:00
2026-10-25 14:00:59 +08:00
2026-10-17 05:33:18 +08:00
2026-10-20 01:25:47 +08:00
2026-10-31 00:44:59 +08:00
2026-10-29 09:24:31 +08:00
2026-10-20 02:29:39 +08:00
2026-11-01 17:28:30 +08:00
2026-11-01 17:28:30 +08:00
2026-10-16 08:43:02 +08:00
2026-10-29 06:38:04 +08:00
2026-10-29 06:38:04 +08:00
2026-11-04 20:20:41 +08:00
2026-10-26 22:50:37 +08:00
2026-10-31 10:57:56 +08:00
2026-10-31 10:57:56 +08:00
2026-11-01 01:56:48 +08:00
2026-11-02 03:40:03 +08:00
2026-11-03 05:21:47 +08:00
2026-10-15 23:08:03 +08:00
2026-10-24 05:31:59 +08:00
2026-11-04 20:20:41 +08:00
2026-10-30 11:54:46 +08:00
2026-10-27 08:29:11 +08:00
2026-11-02 17:19:23 +08:00
2026-10-31 22:39:37 +08:00
2026-11-02 15:27:15 +08:00
2026-11-02 15:27:15 +08:00
2026-10-15 23:08:00 +08:00
2026-10-16 15:40:38 +08:00
2026-10-30 12:06:33 +08:00
2026-10-30 12:06:33 +08:00
2026-10-30 12:06:33 +08:00
2026-11-04 00:22:54 +08:00
2026-11-04 00:22:54 +08:00
2026-10-22 20:50:59 +08:00
2026-10-19 12:42:48 +08:00
2026-11-02 15:27:15 +08:00
2026-10-18 07:13:09 +08:00
2026-11-02 15:27:15 +08:00
2026-11-02 15:27:15 +08:00
2026-11-02 15:27:15 +08:00
2026-11-05 11:45:44 +08:00
2026-11-01 22:14:19 +08:00
2026-10-24 22:31:59 +08:00
2026-10-31 18:30:39 +08:00
2026-10-30 15:42:29 +08:00
2026-10-27 23:37:46 +08:00
2026-11-05 11:45:44 +08:00
2026-11-04 23:55:14 +08:00
2026-10-30 18:55:51 +08:00
2026-11-04 20:20:41 +08:00
2026-10-28 16:55:24 +08:00
2026-11-02 18:37:25 +08:00
2026-10-14 16:40:23 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 06:01:05 +08:00
2026-10-15 05:20:17 +08:00
2026-10-27 02:26:27 +08:00
2026-10-30 04:48:17 +08:00
2026-11-04 21:21:32 +08:00
2026-10-17 13:11:43 +08:00
2026-10-25 04:12:06 +08:00
2026-11-05 18:31:22 +08:00
2026-11-06 05:21:05 +08:00
2026-11-03 17:00:38 +08:00
2026-10-16 22:58:40 +08:00
2026-10-23 03:35:27 +08:00
2026-11-01 03:07:06 +08:00
2026-10-15 23:08:02 +08:00
2026-10-14 23:06:35 +08:00
2026-11-06 08:01:14 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 09:04:26 +08:00
2026-10-23 02:39:33 +08:00
2026-10-15 23:08:05 +08:00
2026-10-15 23:08:05 +08:00
2026-10-31 15:56:40 +08:00
2026-10-31 15:56:40 +08:00
2026-11-02 18:53:07 +08:00
2026-11-01 21:16:35 +08:00
2026-11-04 20:20:41 +08:00
2026-11-02 18:53:07 +08:00
2026-10-29 06:38:04 +08:00
2026-11-03 11:16:02 +08:00
2026-10-31 01:01:49 +08:00
2026-10-15 23:08:00 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 09:14:11 +08:00
2026-11-03 02:25:23 +08:00
2026-10-30 00:46:45 +08:00
2026-11-03 14:16:20 +08:00
2026-11-01 17:28:15 +08:00
2026-11-01 17:28:15 +08:00
2026-11-01 17:28:15 +08:00
2026-10-16 07:23:55 +08:00
2026-10-17 05:33:18 +08:00
2026-10-17 05:33:18 +08:00
2026-10-17 05:33:18 +08:00
2026-10-17 05:33:18 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-10-15 23:08:00 +08:00
2026-11-05 12:40:35 +08:00
2026-11-01 14:43:18 +08:00
2026-11-04 19:43:00 +08:00
2026-10-28 22:48:07 +08:00
2026-10-14 22:45:40 +08:00
2026-10-15 05:10:28 +08:00
2026-10-29 06:30:58 +08:00
2026-10-14 22:45:40 +08:00
2026-10-16 05:10:43 +08:00
2026-11-04 20:20:41 +08:00
2026-11-02 17:19:23 +08:00
2026-11-01 15:27:49 +08:00
2026-10-19 03:57:52 +08:00
2026-10-29 23:56:05 +08:00
2026-10-15 09:40:51 +08:00
2026-10-29 23:56:05 +08:00
2026-11-04 20:20:41 +08:00
2026-10-27 06:18:24 +08:00
2026-10-30 08:32:57 +08:00
2026-10-15 08:23:54 +08:00
2026-10-22 00:04:28 +08:00
2026-11-03 08:54:40 +08:00
2026-11-03 10:50:30 +08:00
2026-11-04 21:00:51 +08:00
2026-10-30 15:53:22 +08:00
2026-10-31 01:02:24 +08:00
2026-11-04 20:20:41 +08:00
2026-10-16 15:40:38 +08:00
2026-10-29 17:09:13 +08:00
2026-11-03 05:21:47 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 05:12:20 +08:00
2026-11-01 09:14:11 +08:00
2026-10-15 23:08:04 +08:00
2026-10-31 21:38:56 +08:00
2026-10-31 19:35:16 +08:00
2026-11-01 14:39:13 +08:00
2026-11-01 14:39:13 +08:00
2026-10-31 00:08:29 +08:00
2026-11-05 17:25:26 +08:00
2026-10-19 23:19:24 +08:00
2026-10-30 13:23:19 +08:00
2026-10-31 11:29:38 +08:00
2026-10-30 15:53:22 +08:00
2026-11-05 17:25:26 +08:00
2026-11-03 20:54:01 +08:00
2026-11-03 20:54:01 +08:00
2026-11-01 11:02:56 +08:00
2026-11-01 11:02:56 +08:00
2026-11-03 10:14:23 +08:00
2026-10-31 22:29:48 +08:00
2026-10-31 22:29:48 +08:00
2026-10-15 23:08:01 +08:00
2026-11-03 10:14:23 +08:00
2026-11-01 21:31:55 +08:00
2026-11-03 10:14:23 +08:00
2026-11-01 21:31:55 +08:00
2026-11-01 21:31:55 +08:00
2026-10-31 16:53:00 +08:00
2026-10-24 15:20:37 +08:00
2026-10-31 16:53:00 +08:00
2026-10-31 16:53:00 +08:00
2026-10-15 23:08:01 +08:00
2026-11-03 10:14:23 +08:00
2026-10-15 05:30:58 +08:00
2026-10-15 23:08:01 +08:00
2026-11-03 15:21:17 +08:00
2026-11-03 10:14:23 +08:00
2026-11-03 10:14:23 +08:00
2026-11-03 10:14:23 +08:00
2026-11-03 10:14:23 +08:00
2026-11-03 11:16:02 +08:00
2026-11-03 11:38:09 +08:00
2026-11-03 10:14:23 +08:00
2026-11-03 11:38:09 +08:00
2026-11-01 15:19:32 +08:00
2026-10-31 17:12:16 +08:00
2026-10-29 16:31:37 +08:00
2026-10-15 23:08:00 +08:00
2026-11-04 16:17:47 +08:00
2026-10-29 17:47:30 +08:00
2026-10-29 17:47:30 +08:00
2026-10-31 21:00:55 +08:00
2026-10-31 00:44:59 +08:00
2026-11-01 09:14:11 +08:00
2026-11-04 06:59:29 +08:00
2026-10-29 18:55:42 +08:00
2026-10-15 23:08:03 +08:00
2026-11-04 06:59:29 +08:00
2026-10-28 23:22:14 +08:00
2026-10-27 01:37:04 +08:00
2026-10-28 23:22:14 +08:00
2026-10-31 17:28:37 +08:00
2026-10-25 18:22:13 +08:00
2026-10-28 23:22:14 +08:00
2026-10-28 23:22:14 +08:00
2026-11-04 06:59:29 +08:00
2026-11-04 06:59:29 +08:00
2026-10-29 18:52:05 +08:00
2026-10-28 21:13:09 +08:00
2026-10-15 04:21:31 +08:00
2026-10-28 11:15:57 +08:00
2026-10-23 10:54:27 +08:00
2026-11-06 00:35:39 +08:00
2026-11-03 18:34:19 +08:00
2026-10-23 03:08:08 +08:00
2026-11-01 08:49:18 +08:00
2026-10-28 13:51:37 +08:00
2026-10-29 15:39:31 +08:00
2026-11-01 15:33:35 +08:00
2026-11-04 20:20:41 +08:00
2026-11-04 20:20:41 +08:00
2026-10-28 19:54:53 +08:00
2026-10-27 15:15:29 +08:00
2026-11-03 17:58:31 +08:00
2026-10-28 07:31:02 +08:00
2026-10-28 07:31:02 +08:00
2026-10-28 15:25:53 +08:00
2026-11-04 20:20:41 +08:00
2026-10-19 07:23:04 +08:00
2026-10-19 07:23:04 +08:00
2026-10-25 01:46:55 +08:00
2026-11-02 16:14:22 +08:00
2026-10-24 22:54:36 +08:00
2026-11-03 06:35:33 +08:00
2026-10-16 20:05:11 +08:00
2026-10-30 21:56:29 +08:00
2026-10-30 21:56:29 +08:00
2026-11-05 01:37:29 +08:00
2026-11-01 17:28:30 +08:00
2026-11-04 16:32:55 +08:00
2026-11-01 11:02:56 +08:00
2026-11-01 14:26:03 +08:00
2026-11-04 05:00:18 +08:00
2026-10-15 00:34:14 +08:00
2026-10-31 10:57:56 +08:00