Skip to content
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0e73b3b
docs: add Gemini model metadata design spec
christopher-s Apr 2, 2026
4feea2e
docs: revise Gemini model metadata spec — add backwards compat, drop …
christopher-s Apr 2, 2026
aac99f6
docs: add Gemini model metadata implementation plan
christopher-s Apr 2, 2026
3055456
docs: fix plan — add context_length to both catalog model pushes
christopher-s Apr 2, 2026
f1805c8
feat(gemini): extract metadata from models API response
christopher-s Apr 2, 2026
325d048
feat(sync): carry Gemini metadata through model sync
christopher-s Apr 2, 2026
bd5f39e
feat(db): extend replaceCustomModels with metadata fields
christopher-s Apr 2, 2026
49ac0ca
feat(catalog): use stored inputTokenLimit for custom model context_le…
christopher-s Apr 2, 2026
faae82e
feat(v1beta): use stored token limits and metadata in Gemini models e…
christopher-s Apr 2, 2026
ea6d0f5
docs: add Gemini available models sync implementation plan
christopher-s Apr 2, 2026
668b235
docs: fix plan — add missing import for buildModelSyncInternalHeaders
christopher-s Apr 2, 2026
9e4132f
feat(db): add syncedAvailableModels namespace and CRUD functions
christopher-s Apr 2, 2026
7607cec
feat(sync): write Gemini models to syncedAvailableModels with union l…
christopher-s Apr 2, 2026
5c27e0f
feat(gemini): auto-trigger model sync when API key is saved
christopher-s Apr 2, 2026
125fb81
feat(dashboard): Gemini Available Models reads from API sync, hide Cu…
christopher-s Apr 2, 2026
5b140d2
feat(api): catalog and v1beta read from synced Gemini models
christopher-s Apr 2, 2026
464fd6d
fix(v1beta): remove Gemini duplicates — filter non-consecutive entrie…
christopher-s Apr 2, 2026
8ed0917
feat(gemini): per-connection model tracking with cleanup on key delete
christopher-s Apr 2, 2026
b4e674a
fix(gemini): no registry fallback — show 0 models when no API keys exist
christopher-s Apr 2, 2026
7f785b8
fix(gemini): refresh Available Models UI after API key add/delete
christopher-s Apr 2, 2026
2341bba
feat(gemini): progress dialog on key save, remove hardcoded registry,…
christopher-s Apr 2, 2026
3ae810a
fix(gemini): log sync errors, optimize synced models query
christopher-s Apr 2, 2026
0038fe5
feat(gemini): per-model quota lockout instead of connection-wide
christopher-s Apr 2, 2026
f8d045c
fix(gemini): per-model quota isolation — 429 on one model keeps other…
christopher-s Apr 2, 2026
03ff03e
fix(gemini): filter out locked models during credential selection
christopher-s Apr 2, 2026
35061df
refactor: consolidate per-model quota logic into shared helpers
christopher-s Apr 2, 2026
b1183c2
feat(models): add pageSize=1000 and nextPageToken pagination for Gemini
christopher-s Apr 2, 2026
a069df4
fix: address PR review — timeouts, pagination safety, standardized co…
christopher-s Apr 2, 2026
25c63c8
merge: sync with upstream origin/main (v3.4.5+v3.4.6)
christopher-s Apr 2, 2026
75daf98
fix(gemini): correct API field casing, add safety finish reasons, pag…
christopher-s Apr 2, 2026
50683e6
fix(gemini): correct misleading SAFETY comment — partial SSE content …
christopher-s Apr 2, 2026
ccab588
chore: remove superpowers plans/specs from tracking, add to .gitignore
christopher-s Apr 2, 2026
910471a
chore: remove .data/ from tracking (call_logs, db_backups, storage)
christopher-s Apr 2, 2026
80f2c79
chore: restore .agents/ tracking — do not gitignore
christopher-s Apr 2, 2026
6dcd5b7
chore: restore .agents/workflows — actively used upstream
christopher-s Apr 2, 2026
6698d33
fix(tests): update T28/T31 for gemini dynamic model sync
christopher-s Apr 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"schemaVersion": 2,
"summary": {
"id": "0bf58d48-ea41-429a-8193-ed3e55f7a6bd",
"timestamp": "2026-03-31T15:24:20.891Z",
"method": "POST",
"path": "/v1/chat/completions",
"status": 200,
"model": "gemini-2.5-flash",
"requestedModel": "gemini-cli/gemini-2.5-flash",
"provider": "gemini-cli",
"account": "christopher.staley@gmail.com",
"connectionId": "352fc97c-8e30-4ffa-b41e-8ce422a0db3e",
"duration": 5007,
"tokens": {
"in": 0,
"out": 0
},
"requestType": null,
"sourceFormat": "openai",
"targetFormat": "gemini-cli",
"apiKeyId": "c8635ff9-2ee0-4045-ba77-75325347623f",
"apiKeyName": "Test",
"comboName": null
},
"requestBody": {
"model": "gemini-cli/gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "Say exactly: HELLO"
}
],
"stream": false,
"max_tokens": 20
},
"responseBody": {
"response": {
"candidates": [
{
"content": {
"role": "model"
},
"finishReason": "MAX_TOKENS"
}
],
"usageMetadata": {
"promptTokenCount": 5,
"totalTokenCount": 22,
"trafficType": "ON_DEMAND",
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 5
}
],
"thoughtsTokenCount": 17
},
"modelVersion": "gemini-2.5-flash",
"createTime": "2026-03-31T15:24:18.823251Z",
"responseId": "IufLadOfMoqV4_UPs52fkAE"
},
"traceId": "2fa07f42074e3bcc",
"metadata": {
"remoteContext": {
"ragState": "RAG_DISABLED"
}
}
},
"error": null
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-critical critical

The inclusion of the .data/call_logs/ directory in this pull request appears to be accidental. These files contain sensitive Personally Identifiable Information (PII), specifically user email addresses (e.g., christopher.staley@gmail.com on line 12) and full chat histories. Committing such data to a repository is a significant security and privacy risk. Furthermore, committing over 180 log files bloats the repository size and history. These files should be removed from the PR, and the .data/ directory should be added to the .gitignore file to prevent future accidental commits. Additionally, the actual code changes described in the pull request summary (fixing API field casing, safety finish reasons, and pagination timeouts in TypeScript files) are missing from the provided diff, which consists entirely of these JSON log files.

Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"schemaVersion": 2,
"summary": {
"id": "aa481f62-0899-4423-8cdc-a8b791aacb95",
"timestamp": "2026-03-31T15:24:22.008Z",
"method": "POST",
"path": "/v1/chat/completions",
"status": 200,
"model": "gemini-2.5-flash-lite",
"requestedModel": "gemini-cli/gemini-2.5-flash-lite",
"provider": "gemini-cli",
"account": "christopher.staley@gmail.com",
"connectionId": "352fc97c-8e30-4ffa-b41e-8ce422a0db3e",
"duration": 1085,
"tokens": {
"in": 0,
"out": 0
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The tokens object in the summary is empty (in: 0, out: 0), despite the usageMetadata (lines 53-70) showing that tokens were consumed (5 prompt tokens, 1 candidate token). This indicates a bug in the logic that populates the summary tokens for the Gemini provider.

"requestType": null,
"sourceFormat": "openai",
"targetFormat": "gemini-cli",
"apiKeyId": "c8635ff9-2ee0-4045-ba77-75325347623f",
"apiKeyName": "Test",
"comboName": null
},
"requestBody": {
"model": "gemini-cli/gemini-2.5-flash-lite",
"messages": [
{
"role": "user",
"content": "Say exactly: HELLO"
}
],
"stream": false,
"max_tokens": 20
},
"responseBody": {
"response": {
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "HELLO"
}
]
},
"finishReason": "STOP",
"avgLogprobs": -0.000548450683709234
}
],
"usageMetadata": {
"promptTokenCount": 5,
"candidatesTokenCount": 1,
"totalTokenCount": 6,
"trafficType": "ON_DEMAND",
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 5
}
],
"candidatesTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 1
}
]
},
"modelVersion": "gemini-2.5-flash-lite",
"createTime": "2026-03-31T15:24:21.199660Z",
"responseId": "JefLaeyXDMGK998P5caw2QE"
},
"traceId": "ed939cdca1f71552",
"metadata": {
"remoteContext": {
"ragState": "RAG_DISABLED"
}
}
},
"error": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"schemaVersion": 2,
"summary": {
"id": "065cf4d0-a142-4123-81e1-c90a9b654b10",
"timestamp": "2026-03-31T15:24:26.699Z",
"method": "POST",
"path": "/v1/chat/completions",
"status": 429,
"model": "gemini-2.5-pro",
"requestedModel": "gemini-cli/gemini-2.5-pro",
"provider": "gemini-cli",
"account": "christopher.staley@gmail.com",
"connectionId": "352fc97c-8e30-4ffa-b41e-8ce422a0db3e",
"duration": 4594,
"tokens": {
"in": 0,
"out": 0
},
"requestType": null,
"sourceFormat": "openai",
"targetFormat": "gemini-cli",
"apiKeyId": "c8635ff9-2ee0-4045-ba77-75325347623f",
"apiKeyName": "Test",
"comboName": null
},
"requestBody": {
"model": "gemini-cli/gemini-2.5-pro",
"messages": [
{
"role": "user",
"content": "Say exactly: HELLO"
}
],
"stream": false,
"max_tokens": 20
},
"responseBody": null,
"error": "[429]: You have exhausted your capacity on this model."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"schemaVersion": 2,
"summary": {
"id": "9347967f-4754-4e31-b353-18f4b4397096",
"timestamp": "2026-03-31T15:25:57.431Z",
"method": "POST",
"path": "/v1/chat/completions",
"status": 200,
"model": "gemini-2.5-flash",
"requestedModel": "gemini-cli/gemini-2.5-flash",
"provider": "gemini-cli",
"account": "christopher.staley@gmail.com",
"connectionId": "352fc97c-8e30-4ffa-b41e-8ce422a0db3e",
"duration": 2965,
"tokens": {
"in": 0,
"out": 0
},
"requestType": null,
"sourceFormat": "openai",
"targetFormat": "gemini-cli",
"apiKeyId": "c8635ff9-2ee0-4045-ba77-75325347623f",
"apiKeyName": "Test",
"comboName": null
},
"requestBody": {
"model": "gemini-cli/gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "What is 2+2? Reply with just the number."
}
],
"stream": false,
"max_tokens": 50
},
"responseBody": {
"response": {
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "4"
}
]
},
"finishReason": "STOP",
"avgLogprobs": -13.736383438110352
}
],
"usageMetadata": {
"promptTokenCount": 13,
"candidatesTokenCount": 1,
"totalTokenCount": 48,
"trafficType": "ON_DEMAND",
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 13
}
],
"candidatesTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 1
}
],
"thoughtsTokenCount": 34
},
"modelVersion": "gemini-2.5-flash",
"createTime": "2026-03-31T15:25:56.802914Z",
"responseId": "hOfLaeKAMemU4_UP762GkQ0"
},
"traceId": "7fb4332789afda2",
"metadata": {
"remoteContext": {
"ragState": "RAG_DISABLED"
}
}
},
"error": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"schemaVersion": 2,
"summary": {
"id": "4d8ae4c4-ee1c-4409-9218-fa7cbf085889",
"timestamp": "2026-03-31T15:26:56.737Z",
"method": "POST",
"path": "/v1/chat/completions",
"status": 200,
"model": "gemini-3-flash-preview",
"requestedModel": "gemini-cli/gemini-3-flash-preview",
"provider": "gemini-cli",
"account": "christopher.staley@gmail.com",
"connectionId": "352fc97c-8e30-4ffa-b41e-8ce422a0db3e",
"duration": 1063,
"tokens": {
"in": 0,
"out": 0
},
"requestType": null,
"sourceFormat": "openai",
"targetFormat": "gemini-cli",
"apiKeyId": "c8635ff9-2ee0-4045-ba77-75325347623f",
"apiKeyName": "Test",
"comboName": null
},
"requestBody": {
"model": "gemini-cli/gemini-3-flash-preview",
"messages": [
{
"role": "user",
"content": "What is 2+2? Reply with just the number."
}
],
"stream": false,
"max_tokens": 20
},
"responseBody": {
"response": {
"candidates": [
{
"content": {
"role": "model"
},
"finishReason": "MAX_TOKENS"
}
],
"usageMetadata": {
"promptTokenCount": 13,
"totalTokenCount": 30,
"trafficType": "ON_DEMAND",
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 13
}
],
"thoughtsTokenCount": 17
},
"modelVersion": "gemini-3-flash-preview",
"createTime": "2026-03-31T15:26:55.921478Z",
"responseId": "v-fLaYafOOmU4_UP762GkQ0"
},
"traceId": "5d73dbb69c78c833",
"metadata": {
"remoteContext": {
"ragState": "RAG_DISABLED"
}
}
},
"error": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"schemaVersion": 2,
"summary": {
"id": "35e92ad3-bbdd-42bb-aed0-07a6eaaa0f95",
"timestamp": "2026-03-31T15:27:01.155Z",
"method": "POST",
"path": "/v1/chat/completions",
"status": 429,
"model": "gemini-3-pro-preview",
"requestedModel": "gemini-cli/gemini-3-pro-preview",
"provider": "gemini-cli",
"account": "christopher.staley@gmail.com",
"connectionId": "352fc97c-8e30-4ffa-b41e-8ce422a0db3e",
"duration": 4390,
"tokens": {
"in": 0,
"out": 0
},
"requestType": null,
"sourceFormat": "openai",
"targetFormat": "gemini-cli",
"apiKeyId": "c8635ff9-2ee0-4045-ba77-75325347623f",
"apiKeyName": "Test",
"comboName": null
},
"requestBody": {
"model": "gemini-cli/gemini-3-pro-preview",
"messages": [
{
"role": "user",
"content": "What is 2+2? Reply with just the number."
}
],
"stream": false,
"max_tokens": 20
},
"responseBody": null,
"error": "[429]: You have exhausted your capacity on this model."
}
Loading