Commit d98ed47
fix: raise token limit to 2B and surface server validation errors
- Raise MAX_TOKEN_VALUE from 100M to 2B per entry.
Large Copilot CLI agent sessions can easily exceed 100M tokens in
a single day/model/workspace combination. Entries exceeding the old
limit were silently rejected, causing ~40% of data to be dropped.
- Make SharingServerUploadService read the actual server-side 'uploaded'
count from the response body instead of assuming all sent entries were
accepted. Logs a warning when the server rejects entries (validation
errors), making silent data loss visible.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 64b9448 commit d98ed47
2 files changed
Lines changed: 12 additions & 2 deletions
File tree
- sharing-server/src/routes
- vscode-extension/src/backend/services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
| |||
0 commit comments