github / github/copilot-cli

CloudQueryError prevents /chronicle standup despite local fallback data

未關閉
#3,904 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:sessions
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

## Summary

`/chronicle standup` fails when the cloud session store returns `CloudQueryError: internal server error`.

Local session data is available, and some `session_store_sql` queries successfully return local fallback rows. However, the DuckDB-style timestamp predicates used for last-24-hours chronicle queries appear to prevent local fallback from rescuing the command.

## Environment

- GitHub Copilot CLI: `1.0.64`
- Platform: Windows
- Package metadata: `@github/copilot` `1.0.64`, build metadata `ae586e7`
- Startup log showed: `No update needed, current version is 1.0.64, fetched latest release is v1.0.64`

## Impact

`/chronicle standup` cannot generate a standup report even though recent local session rows are available.

## Expected behavior

When the cloud session store fails with an internal server error, `session_store_sql` and `/chronicle standup` should degrade gracefully to local indexed sessions where possible, returning local rows with a warning.

## Actual behavior

The required last-24-hours query fails with:

```text
CloudQueryError: {"documentation_url":"https://docs.github.com/rest","message":"internal server error"}
```

### Affected version

1.0.64

### Steps to reproduce the behavior

This query fails completely:

SELECT id, branch, updated_at
FROM sessions
WHERE updated_at >= TIMESTAMP '2026-06-23T07:47:34.106Z'
ORDER BY updated_at DESC
LIMIT 5

This also failed:

SELECT id, branch, updated_at
FROM sessions
WHERE updated_at >= now() - INTERVAL '1 day'
ORDER BY updated_at DESC
LIMIT 5

But this query returns local fallback rows:

SELECT id, branch, updated_at
FROM sessions
ORDER BY updated_at DESC
LIMIT 5

Observed fallback behavior:

5 row(s) returned from _query_source = local
Cloud query failed (CloudQueryError: {"documentation_url":"https://docs.github.com/rest","message":"internal server error"}). Showing local results only.

### Expected behavior

_No response_

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

從 session_store_sql 的處理和 /chronicle standup 查詢路徑開始。重現依時間戳篩選的查詢,並將其與未篩選的本機回退查詢進行比較;當 cloud 查詢失敗時,/chronicle standup 能在發出警告的同時傳回本機索引的工作階段,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell, sql
領域
cli, databases
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
58/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。