Skip to content

sync: upstream v0.81.1#275

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

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

Conversation

@code-yeongyu

@code-yeongyu code-yeongyu commented Jul 21, 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 bringing a default agent stream function, retryable summarization, a SQLite session backend, new Qwen Token Plan providers, and refreshed CI workflows. Improves reliability, storage options, and provider coverage.

  • New Features

    • Agent: setDefaultStreamFn fallback, restored legacy streamFn compatibility, usage saved on tool results/compactions/branch summaries, compaction retainedTail and optional firstKeptEntryId, cursor-based session reads with names/stats.
    • Storage: SQLite session backend in @earendil-works/pi-storage-sqlite-node with migrations and tests.
    • AI: retryAssistantCall, contentText, shared uuidv7 export from @earendil-works/pi-ai, and built-in qwen-token-plan and qwen-token-plan-cn providers with generated catalogs.
  • Dependencies

    • Regenerated provider/model catalogs with a validated .manifest.json; scripts now run with Node and add a hydrate-model-data check.
    • CI: pinned newer GitHub Actions, moved workflows to Node 22, added release source archives.
    • Package tweaks: normalized @earendil-works/pi-ai bin path, expanded workspaces to packages/storage/*, updated .gitignore, fixed issue template links.

Written for commit b43cb0b. 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.