Skip to content

sync: upstream v0.81.1#279

Open
code-yeongyu wants to merge 68 commits into
mainfrom
automation/upstream-v0.81.1-29883754220
Open

sync: upstream v0.81.1#279
code-yeongyu wants to merge 68 commits into
mainfrom
automation/upstream-v0.81.1-29883754220

Conversation

@code-yeongyu

@code-yeongyu code-yeongyu commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Automated upstream sync for v0.81.1.

  • Upstream SHA: dd6bea41efa8caa7a10fe5a6401676dc5699f83f
  • Evidence artifact: upstream-agent-qa-v0.81.1
  • Release is evaluated only after this PR is merged with a merge commit.

QA completed before PR creation:

  • npm run build
  • npm run check
  • npm test
  • senpi-qa common, mock-loop, CLI smoke, and tmux TUI smoke when available

Summary by cubic

Sync to upstream v0.81.1. Brings CI updates, SQLite-backed session storage, agent retries and streaming defaults, and new qwen-token-plan providers with refreshed model-catalog tooling.

  • New Features

    • Agent/session: compaction and branch-summary retries with lifecycle events; usage recorded on tool results and summaries; decoupled streaming via setDefaultStreamFn(); storage adds cursor reads, session name/stats, and retained compaction tail; uuidv7 moved to @earendil-works/pi-ai.
    • Storage: new SQLite session backend in @earendil-works/pi-storage-sqlite-node with migrations and a Node adapter.
    • AI: built-in qwen-token-plan and qwen-token-plan-cn providers; model data manifest/validation and hydrate-model-data script; retryAssistantCall() and contentText() utilities; refreshed generated model and image catalogs.
  • Dependencies

    • CI/workflows: upgrade actions/checkout and actions/setup-node, consolidate CI job, use Node 22, add release source archives, update actions/github-script.
    • Monorepo/tooling: add packages/storage/* workspace, build:offline script, ignore provider generation artifacts, normalize @earendil-works/pi-ai bin path, regenerate lockfiles and catalogs.

Written for commit f546122. Summary will update on new commits.

Review in cubic

mitsuhiko and others added 30 commits July 19, 2026 20:18
Co-authored-by: Armin Ronacher <armin.ronacher@active-4.com>
…ce (#6790)

When pi exits, the reverse-video cursor character remains visible on
the editor prompt line. Combined with the terminal's own cursor below,
this creates the appearance of two cursors, which is confusing.

Overwrite the inverted cursor with a normal space before exiting.
The npm registry normalizes bin paths in packument metadata
("dist/cli.js") while the published tarball keeps the authored
"./dist/cli.js". npm consumers get perpetual one-line
package-lock.json flips depending on whether resolution used
registry metadata or the extracted package.

Drop the "./" prefix to match the registry-normalized form and the
sibling coding-agent package.

Fixes #6811
Add Alibaba Cloud Model Studio Token Plan subscription service as two
built-in API-key providers: qwen-token-plan (international, Singapore)
and qwen-token-plan-cn (China, Beijing).

Each provider exposes 15 text-generation models (Qwen, DeepSeek, GLM,
Kimi, MiniMax) via the OpenAI-compatible endpoint with DashScope
enable_thinking support. Model metadata is sourced from models.dev;
qwen3.8-max-preview is hardcoded until models.dev includes it.

Also fixes kimi-coding test references (k2p7 -> kimi-for-coding) after
models.dev catalog update picked up by generate-models.

Closes #6850
Undo snapshots now restore paste content and counters alongside editor text. Paste marker renumbering shifts registry entries in ascending ID order before rewriting markers, preventing literal or incorrect paste content on submit.\n\nCloses #6844
Treat the models.dev k2p7 entry as an alias for kimi-for-coding and regenerate provider catalogs. This restores consistency between generated model types and values and unblocks repository type checks.
…(#6671)

* add usage info to branch summary entries

* add usage to compaction entries

* allow custom tools to report llm usage in tool results

* allow observing and patching usage in tool_result hooks

* agent-harness: save usage in entries

for compaction, branch summaries and tool results
badlogic and others added 29 commits July 21, 2026 14:13
…mary-requests-2

compaction & branch summarization follow retry policy
Keep streamFn required for typed callers while preserving the legacy runtime fallback for extensions that omit it.\n\nfixes #6915
@code-yeongyu

Copy link
Copy Markdown
Owner Author

QA evidence

Evidence files captured before this PR was opened:

  • git-status-after-check.txt
  • git-status-before-qa.txt
  • last-merge-report.md
  • npm-build.txt
  • npm-check.txt
  • npm-test.txt
  • secret-files.txt
  • senpi-qa-cli-smoke.txt
  • senpi-qa-common.txt
  • senpi-qa-mock-loop.txt
  • senpi-qa-tui.txt
  • tool-versions.txt

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.