Skip to content

Preserve CLI formatting on ReadQuery cursor continuation - #198

Merged
LIghtJUNction merged 1 commit into
mainfrom
work/cli-cursor-output-20260930
Sep 30, 2026
Merged

LIghtJUNction merged 1 commit into
mainfrom
work/cli-cursor-output-20260930

Conversation

@LIghtJUNction

Copy link
Copy Markdown
Contributor

Refs #82. Narrow follow-up to #197; no automatic pagination or global shortcut changes.

The first output slice required --json fields for jq/template formatting while correctly refusing --json with a cursor, which left later pages unformattable. Allow formatting of canonical discovery.read_query cursor-only continuation without resending its projection. Recheck the exact schema name, version and read effect before signing the unchanged cursor request; preserve unsuccessful schema responses and the original cursor/version rules.

Reject other operations, mixed cursor/query fields, --return-field conflicts, and empty/non-string cursors before network access. The empty-cursor guard prevents a continuation request from being interpreted as a fresh default-projection first page. Existing explicit first-page --json behavior stays unchanged.

Validation: 7 initial regression failures before implementation; independent review then found the empty-cursor case, reproduced with 3 additional failures and fixed. Final 50 pure output tests and 61 related client/TUI tests pass locally. Full Ruff/616-file format/Python 3.15 warnings-as-error compile, pinned wheel/sdist build and package-content verification pass after refresh. Expanded real signed HTTP/PostgreSQL test exercises formatted continuation and all-row read conservation; local DB sockets are restricted, so this and complete CI remain pending rather than claimed passed.

Base 523552b; head 88688d0; tree 8f4a187a64c2d09bf9afbb5d693d86cc49b62c90. Current main's unrelated package/web changes are preserved unchanged. Exactly 5 files differ. Draft for review and CI only; no merge, production deployment, or #82 closure.

Copy link
Copy Markdown
Contributor Author

最终 head 88688d09aa742f92bf796b7d2a1b4fcdf54497df / tree 8f4a187a64c2d09bf9afbb5d693d86cc49b62c90 的 11 个适用 PR 工作流已全部通过。

完整回归 36726438857:8 个 shards 与最终 contracts success;8 份 ZIP 均下载并核对 SHA-256,manifest/JUnit 精确 node-ID 为完整互斥并集 2723 core + 8 conformance,零 failure/error/skipped。新增 14 项 cursor 用例全部通过。扩展的真实签名 HTTP/PostgreSQL 测试已验证 jq/template 续页、原始 cursor/version 保持与全表零写入,shard 3 实际用时 5.974s。

严格质量 与安装包隔离演练 同样成功。此前本地空 cursor/null/非字符串拒绝修复已在最终树中,没有删断言或跳过用例。

保持 draft,尚未合并;这完成本次 cursor-formatting 切片的代码验收,不表示 #82 全部完成,也不涉及生产部署。自动分页仍未加入本 PR。

@LIghtJUNction
LIghtJUNction marked this pull request as ready for review September 30, 2026 15:59
Copilot AI balanced review requested due to automatic review settings September 30, 2026 15:59
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@LIghtJUNction
LIghtJUNction merged commit 02b74c9 into main Sep 30, 2026
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants