Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
186df6fb53 | ||
|
|
d71f79570c | ||
|
|
9e7e43c9ad | ||
|
|
7e9f159b8a | ||
|
|
6916ceee47 | ||
|
|
635df88fa6 | ||
|
|
552690e45c | ||
|
|
9815d68f3b | ||
|
|
59377767c7 | ||
|
|
67612b36f3 | ||
|
|
01227a73a4 | ||
|
|
12a6f07939 | ||
|
|
34d38a82d2 | ||
|
|
d71d9b37c6 | ||
|
|
eae885fba4 | ||
|
|
6ec8941943 | ||
|
|
dbeb181f03 | ||
|
|
b261d207c2 | ||
|
|
9933a302bf | ||
|
|
af8601d060 | ||
|
|
82415b7c15 | ||
|
|
1f2a88e58a | ||
|
|
af4bfad1e2 | ||
|
|
4011199370 | ||
|
|
a6054adb97 | ||
|
|
6fc22514ed | ||
|
|
ea1f2ffab5 | ||
|
|
d9497fb1e4 | ||
|
|
8c18b1558b | ||
|
|
2c2393f0ad | ||
|
|
f786001454 | ||
|
|
43aaf62c7d | ||
|
|
bf23004852 | ||
|
|
3680a4a185 | ||
|
|
9808fd4198 | ||
|
|
5d4793ddc1 | ||
|
|
cb5bcb5a60 | ||
|
|
73fab19166 | ||
|
|
4842f7e24d | ||
|
|
ada93c7a1a | ||
|
|
e05d39bdde | ||
|
|
5e568571ba | ||
|
|
3b5cf28cae | ||
|
|
feb0d74ab5 | ||
|
|
cd5b713a1b | ||
|
|
fef4530e4a | ||
|
|
d77356210e | ||
|
|
e994be2958 | ||
|
|
e0eebe3307 | ||
|
|
6d8938e260 | ||
|
|
b15ac514d9 | ||
|
|
c539fc1dc6 | ||
|
|
1c053e207e | ||
|
|
14734843fd | ||
|
|
10a71e6904 | ||
|
|
4810eb2d74 | ||
|
|
79a32f40c6 | ||
|
|
a997246655 | ||
|
|
3b8fd4ab3d | ||
|
|
9416336d73 | ||
|
|
5715467245 | ||
|
|
8e8b383f4c | ||
|
|
1fd744795d | ||
|
|
bec63111f1 | ||
|
|
dbba977ab8 | ||
|
|
29179ba27f | ||
|
|
dcdd327cdf | ||
|
|
91613f516d | ||
|
|
31aa498a5b | ||
|
|
8037d79330 | ||
|
|
8c002cc750 | ||
|
|
237cfe91f1 | ||
|
|
d4fd6dcafd | ||
|
|
518e58cd63 | ||
|
|
82dcf7821e | ||
|
|
5d003d9613 | ||
|
|
9868ebc11c | ||
|
|
965e28e3d6 | ||
|
|
690f6970c3 | ||
|
|
bcb0097344 | ||
|
|
9eab3b278f | ||
|
|
fcfcdf156a | ||
|
|
15390b7168 | ||
|
|
539f4af006 | ||
|
|
fbda126f42 | ||
|
|
6d2db423d8 | ||
|
|
4fd21252af | ||
|
|
63eb8c0dec | ||
|
|
294093e8b9 | ||
|
|
bb0588ecb0 | ||
|
|
c7ad1dae52 | ||
|
|
39410ae7d0 | ||
|
|
e6f0ad272d | ||
|
|
02e4b8e3e9 | ||
|
|
203398fa44 | ||
|
|
21c2e55dd1 | ||
|
|
74c33b03d3 | ||
|
|
e4dc119df8 | ||
|
|
903b71180f | ||
|
|
4201a4de35 | ||
|
|
3c0553d9db | ||
|
|
2be71aedcb | ||
|
|
a27f0819c8 | ||
|
|
46eb98d604 | ||
|
|
7d3e045ff8 | ||
|
|
20b70e37e7 | ||
|
|
fcac35d3b9 | ||
|
|
2636c4384f | ||
|
|
17c08edccf | ||
|
|
0687c370ec | ||
|
|
a7dbeadd5f | ||
|
|
d46038ee4b | ||
|
|
be6b5eb169 | ||
|
|
c0903be174 | ||
|
|
5238bfb641 | ||
|
|
90c8446fb8 | ||
|
|
717e75d032 | ||
|
|
62cdc2f2cf | ||
|
|
eaef730f1e | ||
|
|
f0bf09efee | ||
|
|
ad068bd21d | ||
|
|
25666d9172 | ||
|
|
6c237aabf1 | ||
|
|
22baf9e344 | ||
|
|
68d58c8217 | ||
|
|
e51bb7b8cd | ||
|
|
050e168974 | ||
|
|
e114e13de2 | ||
|
|
3777cc754b | ||
|
|
7708e1f084 | ||
|
|
ba45634eee | ||
|
|
5c82a2e999 | ||
|
|
60943dde1c | ||
|
|
e52bb6e3c4 | ||
|
|
307f65d8f7 | ||
|
|
163162e9f3 | ||
|
|
4a6b8ae080 | ||
|
|
465db78ab6 | ||
|
|
30a155127d | ||
|
|
e108fdc792 | ||
|
|
732b936fb6 | ||
|
|
5c97cd5903 | ||
|
|
019f87804e | ||
|
|
7d425b2efe | ||
|
|
206229235f | ||
|
|
95a755e620 | ||
|
|
c1b43ee571 | ||
|
|
b4af7599d5 | ||
|
|
eaadacadb4 | ||
|
|
b6375b1426 | ||
|
|
bbe7e2a7fc | ||
|
|
d94148a2a8 | ||
|
|
831f2472f3 | ||
|
|
8df6672de1 | ||
|
|
feb7882e5c | ||
|
|
cd2e56f1fa | ||
|
|
1ff119dc2a | ||
|
|
6e6f224e44 | ||
|
|
395a5a5f80 | ||
|
|
12bc84046c | ||
|
|
44d1d6ab29 | ||
|
|
cfcf0dc7d1 | ||
|
|
0a856ab7fc | ||
|
|
ad20814ec8 | ||
|
|
0688ae83fe | ||
|
|
311728a780 | ||
|
|
cf1a5a9e73 | ||
|
|
e06bfbb94c | ||
|
|
7bcd598f09 | ||
|
|
c626bf3707 | ||
|
|
8b2e14f3d2 | ||
|
|
da74f7de1f | ||
|
|
767c1efa03 | ||
|
|
e03fe0d8e7 | ||
|
|
ff27da07bf |
@@ -1,6 +1,6 @@
|
||||
# Pull-request checks are routed by the behavior they prove. Package consumers
|
||||
# do not inherit their dependencies' test suites; main and manual runs execute
|
||||
# every contract regardless of these paths.
|
||||
# do not inherit their dependencies' test suites, except where noted below; main
|
||||
# and manual runs execute every contract regardless of these paths.
|
||||
routing:
|
||||
- ".github/ci-paths.yml"
|
||||
|
||||
@@ -56,6 +56,7 @@ sdk:
|
||||
- "packages/plugin/**"
|
||||
- "plugin-examples/**"
|
||||
- "public-docs/plugins/**"
|
||||
- "skills/paseo-plugin/**"
|
||||
- "packages/client/**"
|
||||
- "packages/highlight/**"
|
||||
- "packages/protocol/**"
|
||||
@@ -86,5 +87,9 @@ browser:
|
||||
relay:
|
||||
- "packages/relay/**"
|
||||
|
||||
# cli-tests is also a daemon end-to-end suite: it drives a real daemon, built-in
|
||||
# plugins included, so daemon changes run it too.
|
||||
cli:
|
||||
- "packages/cli/**"
|
||||
- "packages/server/**"
|
||||
- "plugins/**"
|
||||
|
||||
@@ -8,13 +8,14 @@ on:
|
||||
merge_group:
|
||||
workflow_dispatch:
|
||||
|
||||
# A newer push to the same ref cancels the run still in progress, main included.
|
||||
# A full run costs about 200 runner-minutes against the org's 20 concurrent
|
||||
# jobs, and a superseded main run only answers a question the newer commit
|
||||
# answers again.
|
||||
# A newer push cancels the run still in progress on every ref except main,
|
||||
# because a full run costs about 200 runner-minutes against the org's 20
|
||||
# concurrent jobs. A main run finishes: cancelling it mid-flight leaves CANCELLED
|
||||
# checks that paint the commit red. Each ref has one run in progress and one
|
||||
# pending, so a newer push replaces a pending main run before it starts any job.
|
||||
concurrency:
|
||||
group: ci-${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
env:
|
||||
# CI does not use the CUDA execution provider, and the onnxruntime-node
|
||||
@@ -87,10 +88,6 @@ jobs:
|
||||
if: ${{ !cancelled() && steps.install.outcome == 'success' && (needs.changes.outputs.full != 'false' || needs.changes.outputs.quality != 'false') }}
|
||||
run: npx --yes lockfile-lint --path package-lock.json --type npm --allowed-hosts npm --validate-https --validate-integrity
|
||||
|
||||
- name: Verify dependency signatures
|
||||
if: ${{ !cancelled() && steps.install.outcome == 'success' && (needs.changes.outputs.full != 'false' || needs.changes.outputs.quality != 'false') }}
|
||||
run: npm audit signatures
|
||||
|
||||
- name: Lint
|
||||
if: ${{ !cancelled() && steps.install.outcome == 'success' && (needs.changes.outputs.full != 'false' || needs.changes.outputs.quality != 'false') }}
|
||||
run: npm run lint
|
||||
@@ -135,6 +132,29 @@ jobs:
|
||||
if: ${{ !cancelled() && steps.install.outcome == 'success' && (needs.changes.outputs.full != 'false' || needs.changes.outputs.sdk != 'false') }}
|
||||
run: npm run typecheck:examples --workspace=@getpaseo/client
|
||||
|
||||
# Plugin process launches and launch wraps quote for cmd.exe, which only real Windows checks.
|
||||
sdk-tests-windows:
|
||||
name: sdk-tests (windows-latest)
|
||||
needs: changes
|
||||
if: ${{ !cancelled() && (needs.changes.outputs.full != 'false' || needs.changes.outputs.sdk != 'false') }}
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22"
|
||||
cache: "npm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: node scripts/npm-retry.mjs ci
|
||||
|
||||
- name: Build plugin SDK
|
||||
run: npm run build:relay && npm run build:client && npm run build:plugin
|
||||
|
||||
- name: Run plugin SDK tests
|
||||
run: npm run test --workspace=@getpaseo/plugin
|
||||
|
||||
# The locked Playwright installers do not support ubuntu-latest's Ubuntu 26.04.
|
||||
typecheck:
|
||||
name: typecheck
|
||||
@@ -155,6 +175,9 @@ jobs:
|
||||
- name: Verify dependency patch recovery
|
||||
run: node --test scripts/postinstall-patches.test.mjs
|
||||
|
||||
- name: Verify daemon runtime trace contract
|
||||
run: node --test scripts/trace-daemon.test.mjs
|
||||
|
||||
- name: Build server stack
|
||||
run: npm run build:server
|
||||
|
||||
@@ -194,6 +217,15 @@ jobs:
|
||||
- name: Verify website mockups
|
||||
run: npm run test:e2e --workspace=@getpaseo/website
|
||||
|
||||
- name: Upload website test artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
name: website-playwright-results
|
||||
path: packages/website/test-results/
|
||||
if-no-files-found: ignore
|
||||
retention-days: 7
|
||||
|
||||
- name: Verify public package contents
|
||||
run: |
|
||||
npm pack --dry-run --ignore-scripts --workspace=@getpaseo/protocol
|
||||
@@ -323,6 +355,8 @@ jobs:
|
||||
run: |
|
||||
npm run test:unit --workspace=@getpaseo/server -- \
|
||||
src/server/file-observer \
|
||||
src/server/workspace-reconciliation-observation.test.ts \
|
||||
src/utils/checkout-git-identity.test.ts \
|
||||
src/server/workspace-git-service.observation.test.ts \
|
||||
src/server/workspace-git-service.observation.integration.test.ts \
|
||||
--bail=1
|
||||
|
||||
@@ -13,9 +13,11 @@ on:
|
||||
- ".github/workflows/desktop-packages.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
# A main run finishes. A run cancelled mid-flight leaves CANCELLED checks that
|
||||
# paint the commit red.
|
||||
concurrency:
|
||||
group: desktop-packages-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -38,9 +38,9 @@ on:
|
||||
- "true"
|
||||
- "false"
|
||||
rollout_hours:
|
||||
description: "Linear rollout duration in hours. Use 0 for instant rollout."
|
||||
description: "Rollout duration in hours: a 5% canary hold, then a ramp to 100%. Use 0 to admit everyone at once."
|
||||
required: false
|
||||
default: "36"
|
||||
default: "18"
|
||||
type: string
|
||||
|
||||
concurrency:
|
||||
@@ -51,7 +51,7 @@ env:
|
||||
SOURCE_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }}
|
||||
CHECKOUT_REF: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.checkout_ref || github.ref_name) || github.ref_name }}
|
||||
SHOULD_PUBLISH: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.publish != 'false' }}
|
||||
ROLLOUT_HOURS: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.rollout_hours || '36' }}
|
||||
ROLLOUT_HOURS: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.rollout_hours || '18' }}
|
||||
DESKTOP_PACKAGE_PATH: "packages/desktop"
|
||||
|
||||
jobs:
|
||||
@@ -96,6 +96,7 @@ jobs:
|
||||
publish-macos:
|
||||
needs: [create-release]
|
||||
if: ${{ always() && (needs.create-release.result == 'success' || needs.create-release.result == 'skipped') && ((github.event_name == 'workflow_dispatch' && (github.event.inputs.platform == 'all' || github.event.inputs.platform == 'macos')) || (github.event_name == 'push' && (startsWith(github.ref_name, 'v') || startsWith(github.ref_name, 'desktop-v') || startsWith(github.ref_name, 'desktop-macos-v')))) }}
|
||||
timeout-minutes: 45
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -181,7 +182,7 @@ jobs:
|
||||
npm run build:desktop "${build_args[@]}"
|
||||
|
||||
- name: Upload packaged smoke diagnostics
|
||||
if: failure()
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: desktop-smoke-macos-${{ matrix.electron_arch }}
|
||||
|
||||
@@ -28,9 +28,11 @@ on:
|
||||
- "false"
|
||||
- "true"
|
||||
|
||||
# main, tag and publish runs finish. A run cancelled mid-flight leaves CANCELLED
|
||||
# checks that paint a main commit red.
|
||||
concurrency:
|
||||
group: docker-${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && inputs.publish == 'true' && format('publish-{0}', inputs.paseo_version || github.run_id) || github.ref }}
|
||||
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && !(github.event_name == 'workflow_dispatch' && inputs.publish == 'true') }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/') && !(github.event_name == 'workflow_dispatch' && inputs.publish == 'true') }}
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
|
||||
@@ -3,8 +3,37 @@ name: Nix
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
# Prove the real Nix package and daemon smoke before merge when Nix, CLI,
|
||||
# server, or daemon packaging inputs change.
|
||||
pull_request:
|
||||
paths:
|
||||
- "nix/**"
|
||||
- "flake.nix"
|
||||
- "flake.lock"
|
||||
- "package.json"
|
||||
- "package-lock.json"
|
||||
- "packages/protocol/**"
|
||||
- "packages/client/**"
|
||||
- "packages/highlight/**"
|
||||
- "packages/plugin/**"
|
||||
- "packages/server/**"
|
||||
- "packages/relay/**"
|
||||
- "packages/cli/**"
|
||||
- "packages/desktop/**"
|
||||
- "plugins/**"
|
||||
- "skills/**"
|
||||
- "scripts/trace-daemon.mjs"
|
||||
- "scripts/is-main-module.mjs"
|
||||
- "scripts/build-daemon-web-ui.mjs"
|
||||
- "scripts/update-nix.sh"
|
||||
- "scripts/fix-lockfile.mjs"
|
||||
- ".github/workflows/nix.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: nix-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -102,6 +131,7 @@ jobs:
|
||||
run: nix build .#desktop -o result-desktop
|
||||
|
||||
build-desktop-darwin:
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -86,6 +86,7 @@ packages/server/src/server/fixtures/dictation/dictation-debug-largest.wav
|
||||
packages/server/src/server/fixtures/dictation/dictation-debug-largest.transcript.txt
|
||||
packages/protocol/src/generated/validation/*.aot.ts
|
||||
packages/protocol/src/generated/validation/ws-outbound-schema-metadata.ts
|
||||
packages/protocol/src/generated/validation/message-defaults.ts
|
||||
packages/protocol/codegen/generated/
|
||||
|
||||
/artifacts
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"*.lock",
|
||||
"**/*.gen.ts",
|
||||
"**/*.gen.tsx",
|
||||
"**/*.icon/**",
|
||||
"packages/react-native-enriched-markdown/**"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -422,7 +422,6 @@
|
||||
"packages/app/src/components/headers/back-header.tsx",
|
||||
"packages/app/src/components/headers/screen-header.tsx",
|
||||
"packages/app/src/components/host-status-dot.tsx",
|
||||
"packages/app/src/components/hosts/host-picker.tsx",
|
||||
"packages/app/src/components/icons/paseo-logo.tsx",
|
||||
"packages/app/src/components/left-sidebar.tsx",
|
||||
"packages/app/src/components/plan-card.tsx",
|
||||
@@ -552,9 +551,7 @@
|
||||
"packages/app/src/components/download-toast.tsx",
|
||||
"packages/app/src/components/file-explorer-pane.tsx",
|
||||
"packages/app/src/components/headers/back-header.tsx",
|
||||
"packages/app/src/components/highlighted-code-block.tsx",
|
||||
"packages/app/src/components/hosts/host-filter.tsx",
|
||||
"packages/app/src/components/hosts/host-picker.tsx",
|
||||
"packages/app/src/components/import-session-sheet.tsx",
|
||||
"packages/app/src/components/left-sidebar.tsx",
|
||||
"packages/app/src/components/markdown/fence/mermaid/host.native.tsx",
|
||||
|
||||
@@ -1,5 +1,159 @@
|
||||
# Changelog
|
||||
|
||||
## 0.18.1 - 2026-11-27
|
||||
|
||||
- **Host metadata instructions:** Set host-wide instructions once to guide language, tone, and formatting for generated workspace titles, branch names, commit messages, and pull requests. ([#11064](https://github.com/getpaseo/paseo/pull/11064))
|
||||
- **Enterprise spending usage:** Usage now shows Claude extra-usage spending and Codex individual spending limits with reset times. ([#8976](https://github.com/getpaseo/paseo/pull/8976) by [@mcowger](https://github.com/mcowger), [@JasprW](https://github.com/JasprW))
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed Android agent push notifications arriving minutes late during Doze ([#8501](https://github.com/getpaseo/paseo/pull/8501) by [@truelecter](https://github.com/truelecter))
|
||||
- Fixed Command Center results reordering mid-word while typing ([#11085](https://github.com/getpaseo/paseo/pull/11085))
|
||||
- Fixed composer slash and `@` autocomplete stopping after closing a web overlay or opening while a prompt submits ([#11041](https://github.com/getpaseo/paseo/pull/11041))
|
||||
- Fixed the Starting ref popover in New Workspace jumping in height and shifting rows on first open ([#11042](https://github.com/getpaseo/paseo/pull/11042))
|
||||
- Fixed the iOS Home Screen web app status bar overlapping focus-mode tabs, the overlay sidebar, and the Mermaid fullscreen viewer on wide layouts ([#9970](https://github.com/getpaseo/paseo/pull/9970) by [@mywaffles](https://github.com/mywaffles))
|
||||
- Fixed Mark as read on a workspace not clearing finished terminal attention ([#11040](https://github.com/getpaseo/paseo/pull/11040))
|
||||
- Fixed GitLab merge request checks and pipeline details failing with 404 when the pipeline runs in a fork project ([#11074](https://github.com/getpaseo/paseo/pull/11074))
|
||||
- Fixed messages sent while Pi runs a turn it started itself failing instead of queuing ([#11077](https://github.com/getpaseo/paseo/pull/11077))
|
||||
- Fixed OpenCode v2 tool approvals staying stuck after OpenCode already dropped the request ([#11061](https://github.com/getpaseo/paseo/pull/11061) by [@rhettjay](https://github.com/rhettjay))
|
||||
- Fixed idle cleanup keeping OpenCode v2 chats in memory while another session runs on the shared server ([#11039](https://github.com/getpaseo/paseo/pull/11039))
|
||||
- Fixed idle ACP agents failing permanently after their process exits instead of reopening on the next message ([#11047](https://github.com/getpaseo/paseo/pull/11047))
|
||||
- Fixed Kimi usage failing or showing an expired login for global `kimi.ai` accounts ([#8505](https://github.com/getpaseo/paseo/pull/8505) by [@benthecarman](https://github.com/benthecarman))
|
||||
- Fixed the Z.ai Usage card missing when GLM Agent is signed in via `Z_AI_API_KEY` or its credentials file ([#8376](https://github.com/getpaseo/paseo/pull/8376) by [@Peanut-HZM](https://github.com/Peanut-HZM))
|
||||
|
||||
### Plugins
|
||||
|
||||
- Added OMP tool-call intent to `item.metadata.intent` for timeline plugins ([#10727](https://github.com/getpaseo/paseo/pull/10727) by [@mcowger](https://github.com/mcowger))
|
||||
|
||||
## 0.18.0 - 2026-11-27
|
||||
|
||||
- **Remote workspace browser proxy:** Desktop browser tabs in remote workspaces now route through the workspace daemon, so remote `localhost` servers open directly in Paseo. ([#10944](https://github.com/getpaseo/paseo/pull/10944) by [@airon-assustadus](https://github.com/airon-assustadus))
|
||||
- **Per-device notification preferences:** Each device can choose which agent, terminal, and plugin events send notifications, and plugins can send notifications and handle taps. ([#10888](https://github.com/getpaseo/paseo/pull/10888))
|
||||
- **Agent profile system prompts:** Save an optional system prompt on an agent profile to apply it to new agents started from that profile. ([#10996](https://github.com/getpaseo/paseo/pull/10996))
|
||||
- **More syntax highlighting:** Syntax highlighting now covers diff and patch files along with Ruby, Kotlin, TOML, SQL, Lua, Protobuf, PowerShell, Groovy, Gradle, Scala, CMake, Properties, INI, R, Perl, and LaTeX. ([#11026](https://github.com/getpaseo/paseo/pull/11026) by [@hmalaspina](https://github.com/hmalaspina), [@kukicola](https://github.com/kukicola), [@MaximeConan](https://github.com/MaximeConan), [@singleton11](https://github.com/singleton11), [@chandlerok](https://github.com/chandlerok))
|
||||
|
||||
### Changed
|
||||
|
||||
- Changed ACP providers to cache model catalogs across daemon restarts instead of probing in the background, and cleaned up Antigravity ACP flags and metadata. Requires [Antigravity CLI 1.5.1 or later](https://paseo.sh/docs/supported-providers/antigravity) ([#10992](https://github.com/getpaseo/paseo/pull/10992))
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed Paseo iOS crashing shortly after connecting when an enabled client plugin imports `react-native` ([#11011](https://github.com/getpaseo/paseo/pull/11011))
|
||||
- Fixed OpenCode v2 agents staying stuck in running after Stop when stream events were missed or chat history was large ([#10955](https://github.com/getpaseo/paseo/pull/10955))
|
||||
- Fixed steering a Pi agent during a run it started on its own aborting the run instead of steering it ([#10977](https://github.com/getpaseo/paseo/pull/10977) by [@viiqswim](https://github.com/viiqswim))
|
||||
- Fixed creating a workspace from a pull request in a fork clone checking out the fork's pull request with the same number ([#10987](https://github.com/getpaseo/paseo/pull/10987))
|
||||
- Fixed dropping images or files onto the composer leaving the input unfocused ([#11022](https://github.com/getpaseo/paseo/pull/11022))
|
||||
|
||||
## 0.17.6 - 2026-11-27
|
||||
|
||||
### Improved
|
||||
|
||||
- Reorganized Settings into Device and Host sections and consolidated sparse pages ([#10933](https://github.com/getpaseo/paseo/pull/10933))
|
||||
- Added arrow-key navigation for models, providers, and profiles in the model picker ([#10929](https://github.com/getpaseo/paseo/pull/10929), [#10962](https://github.com/getpaseo/paseo/pull/10962))
|
||||
- Added an in-place Refresh control for Tailscale availability in host settings and setup ([#10903](https://github.com/getpaseo/paseo/pull/10903))
|
||||
|
||||
### Changed
|
||||
|
||||
- Removed the Antigravity usage source that ran `agy -p /usage` in the background ([#10953](https://github.com/getpaseo/paseo/pull/10953) by [@luoph](https://github.com/luoph))
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed Paseo Android crashing on Samsung devices when a chat shows a code block or quote ([#10964](https://github.com/getpaseo/paseo/pull/10964))
|
||||
- Fixed mouse clicks not selecting model picker rows on Android ([#10972](https://github.com/getpaseo/paseo/pull/10972))
|
||||
- Fixed macOS Desktop freezing during startup because of Dock progress bar updates ([#10939](https://github.com/getpaseo/paseo/pull/10939))
|
||||
- Fixed Linux AppImage leaking its runtime environment into shells and child processes ([#10920](https://github.com/getpaseo/paseo/pull/10920))
|
||||
- Fixed background Git fetches on Linux spawning orphan D-Bus daemons and retrying failing auth in a loop ([#10921](https://github.com/getpaseo/paseo/pull/10921))
|
||||
- Fixed flashes when restoring archived workspaces and agents, and added an unarchiving state ([#10928](https://github.com/getpaseo/paseo/pull/10928))
|
||||
- Fixed worktree ownership drifting outside the configured worktrees root ([#10878](https://github.com/getpaseo/paseo/pull/10878))
|
||||
- Fixed new web tabs losing projects after another tab evicts the directory cache ([#10942](https://github.com/getpaseo/paseo/pull/10942))
|
||||
- Fixed timelines dropping rows when a rewind epoch changes ([#8794](https://github.com/getpaseo/paseo/pull/8794) by [@LiebeLee](https://github.com/LiebeLee))
|
||||
|
||||
## 0.17.5 - 2026-11-26
|
||||
|
||||
- **Archive workspaces together:** Cmd/Ctrl+click a workspace in the sidebar to select multiple workspaces and archive them in one step. ([#10798](https://github.com/getpaseo/paseo/pull/10798), [#10821](https://github.com/getpaseo/paseo/pull/10821))
|
||||
- **Copy quoted drafts:** Copy a quote from a reply with one tap, without the `>` markers. ([#10608](https://github.com/getpaseo/paseo/pull/10608) by [@pedrovieira](https://github.com/pedrovieira), [@dinhphieu](https://github.com/dinhphieu))
|
||||
- **Redesigned agent profiles page:** Agent profiles have their own dedicated settings page, and the model picker saves a new profile in one tap. ([#10789](https://github.com/getpaseo/paseo/pull/10789), [#10824](https://github.com/getpaseo/paseo/pull/10824))
|
||||
- **Redesigned Add project:** Add project opens on folder search, with Clone and New folder one tab away. ([#10767](https://github.com/getpaseo/paseo/pull/10767))
|
||||
- **Choose how Desktop updates:** Desktop can download updates automatically, only notify you, or never check. ([#10785](https://github.com/getpaseo/paseo/pull/10785))
|
||||
- **First-class Tailscale support:** Turn on Tailscale for a host from its settings or from setup, without editing its configuration. ([#10801](https://github.com/getpaseo/paseo/pull/10801))
|
||||
|
||||
### Added
|
||||
|
||||
- Added host icons, connection types, and latency to the host picker ([#10702](https://github.com/getpaseo/paseo/pull/10702) by [@artile](https://github.com/artile))
|
||||
- Added agent profiles to model picker search and the Command Center ([#10774](https://github.com/getpaseo/paseo/pull/10774))
|
||||
- Added Archive on finish to `paseo schedule create`, `paseo schedule update`, and the schedule MCP tools ([#8479](https://github.com/getpaseo/paseo/pull/8479) by [@ArnoldHueteG](https://github.com/ArnoldHueteG))
|
||||
- Added newer Factory Droid models by updating its catalog entry to Droid 1.20.0 ([#10779](https://github.com/getpaseo/paseo/pull/10779) by [@dsingal0](https://github.com/dsingal0))
|
||||
|
||||
### Changed
|
||||
|
||||
- Changed automatic stable Desktop updates to check at most every 6 hours and to wait 24 hours after each update ([#10882](https://github.com/getpaseo/paseo/pull/10882), [#10901](https://github.com/getpaseo/paseo/pull/10901))
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed agents hiding the subagents they create from tabs and the subagent track ([#10887](https://github.com/getpaseo/paseo/pull/10887))
|
||||
- Fixed parent agents getting a Claude subagent's interim reply instead of its final reply when the subagent waits on background work ([#10864](https://github.com/getpaseo/paseo/pull/10864))
|
||||
- Fixed agents that watch a pull request staying in Running after their turn ends ([#10740](https://github.com/getpaseo/paseo/pull/10740) by [@drgould](https://github.com/drgould))
|
||||
- Fixed the Changes pane offering no Push or Pull when the remote is not named `origin` ([#10679](https://github.com/getpaseo/paseo/pull/10679))
|
||||
- Fixed a pane switching to the wrong tab after you split or move its active tab out ([#10716](https://github.com/getpaseo/paseo/pull/10716))
|
||||
- Fixed New workspace leaving focus on the project button after you choose a project ([#10632](https://github.com/getpaseo/paseo/pull/10632))
|
||||
- Fixed archived chats staying in memory until the window reloads ([#10866](https://github.com/getpaseo/paseo/pull/10866))
|
||||
- Fixed hover cards and other overlays slowing down in long app sessions ([#10778](https://github.com/getpaseo/paseo/pull/10778) by [@maci0](https://github.com/maci0))
|
||||
- Fixed Desktop freezing when you open a chat whose last turn has hundreds of tool calls ([#8661](https://github.com/getpaseo/paseo/pull/8661) by [@luoph](https://github.com/luoph))
|
||||
- Fixed direct connections dropping on slow links while a large timeline loads ([#10651](https://github.com/getpaseo/paseo/pull/10651) by [@apple-ouyang](https://github.com/apple-ouyang))
|
||||
- Fixed large Git workspaces stalling the daemon while their file watchers scan ([#10788](https://github.com/getpaseo/paseo/pull/10788), [#10602](https://github.com/getpaseo/paseo/pull/10602))
|
||||
- Fixed a Git change in one repository rescanning every checkout ([#10863](https://github.com/getpaseo/paseo/pull/10863) by [@viiqswim](https://github.com/viiqswim))
|
||||
- Fixed iOS chats staying blank when a pending question is taller than the screen ([#10759](https://github.com/getpaseo/paseo/pull/10759))
|
||||
- Fixed Android long-press text selection in chat leaving the magnifier stuck on screen ([#10844](https://github.com/getpaseo/paseo/pull/10844))
|
||||
- Fixed mobile sheet footers dropping behind the system bar when the keyboard closes ([#10827](https://github.com/getpaseo/paseo/pull/10827))
|
||||
- Fixed the sidebar toggle covering plugin screen titles on macOS ([#10773](https://github.com/getpaseo/paseo/pull/10773))
|
||||
- Fixed Windows file links with a slash before the drive letter failing to open ([#7711](https://github.com/getpaseo/paseo/pull/7711))
|
||||
- Fixed Import Session giving up on slow providers and hiding provider errors ([#10516](https://github.com/getpaseo/paseo/pull/10516) by [@chirag127](https://github.com/chirag127), [@derek-geekdive](https://github.com/derek-geekdive))
|
||||
- Fixed OMP 19.1 `ask` questions not showing a question card ([#10862](https://github.com/getpaseo/paseo/pull/10862) by [@gtoxlili](https://github.com/gtoxlili))
|
||||
- Fixed OpenCode 2 agents with their own MCP servers failing when a shared OpenCode server is running. Requires OpenCode 2.0.29 or later ([#10752](https://github.com/getpaseo/paseo/pull/10752))
|
||||
- Fixed deleted OpenCode subagents staying in the subagent track ([#8332](https://github.com/getpaseo/paseo/pull/8332))
|
||||
- Fixed stopped Claude background subagents showing as running after you reopen the parent ([#9013](https://github.com/getpaseo/paseo/pull/9013))
|
||||
- Fixed plugin and Paseo instructions replacing a Codex agent's own `developer_instructions` ([#10792](https://github.com/getpaseo/paseo/pull/10792))
|
||||
- Fixed the OpenCode Go usage card missing when the Go key is in OpenCode's `auth.json` ([#10678](https://github.com/getpaseo/paseo/pull/10678))
|
||||
- Fixed GitHub, GitLab, and Gitea commands on Windows breaking multiline arguments and expanding `%VAR%` text ([#10685](https://github.com/getpaseo/paseo/pull/10685))
|
||||
- Fixed `paseo hub login` printing a link without the code ([#10751](https://github.com/getpaseo/paseo/pull/10751))
|
||||
- Fixed Hub trigger runs failing on Antigravity and other plugin providers without tool policy support ([#10889](https://github.com/getpaseo/paseo/pull/10889))
|
||||
- Fixed Hub sessions being refused when they read a daemon's provider controls ([#10794](https://github.com/getpaseo/paseo/pull/10794))
|
||||
- Fixed Hermes and other plugin ACP providers leaving processes running after a model list refresh times out ([#10867](https://github.com/getpaseo/paseo/pull/10867))
|
||||
- Fixed a plugin's agent tools returning `Tool not found` after the plugin reloads during a turn ([#10106](https://github.com/getpaseo/paseo/pull/10106) by [@tomgrin10](https://github.com/tomgrin10))
|
||||
- Fixed replies changed by a timeline plugin losing Copy, Fork, and turn duration ([#10795](https://github.com/getpaseo/paseo/pull/10795) by [@Brandon168](https://github.com/Brandon168))
|
||||
- Fixed idle plugin sessions waking the daemon every 10 seconds ([#9363](https://github.com/getpaseo/paseo/pull/9363) by [@Brandon168](https://github.com/Brandon168))
|
||||
|
||||
### Security
|
||||
|
||||
- Changed Claude Code 2.1.326 or later to receive MCP server tokens over stdin instead of in process arguments that other local users can read ([#10698](https://github.com/getpaseo/paseo/pull/10698) by [@mdbraber](https://github.com/mdbraber))
|
||||
- Fixed repository teardown commands running on archive for pull request worktrees whose setup you have not approved ([#10694](https://github.com/getpaseo/paseo/pull/10694))
|
||||
|
||||
### Plugins
|
||||
|
||||
- Added launch wraps so plugins can run agents, terminals, and worktree commands inside a sandbox ([#10786](https://github.com/getpaseo/paseo/pull/10786) by [@clkao](https://github.com/clkao), [@bendavid](https://github.com/bendavid))
|
||||
- Added the parent workspace to plugin workspace snapshots ([#10781](https://github.com/getpaseo/paseo/pull/10781) by [@spatenotte](https://github.com/spatenotte))
|
||||
- Updated the bundled `paseo-plugin` skill to the current plugin API ([#10793](https://github.com/getpaseo/paseo/pull/10793))
|
||||
|
||||
## 0.17.4 - 2026-11-23
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android ([#10499](https://github.com/getpaseo/paseo/pull/10499))
|
||||
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning ([#10586](https://github.com/getpaseo/paseo/pull/10586))
|
||||
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system ([#10555](https://github.com/getpaseo/paseo/pull/10555) by [@yzim](https://github.com/yzim))
|
||||
- Fixed interrupt and steer messages to archived agents being queued without starting a turn ([#10611](https://github.com/getpaseo/paseo/pull/10611) by [@thomasvan](https://github.com/thomasvan))
|
||||
- Fixed Hermes Shell rows omitting part of the command ([#10614](https://github.com/getpaseo/paseo/pull/10614))
|
||||
- Fixed OpenCode Go usage for logins stored in the OpenCode 2 database, including Console sign-ins and API keys ([#8729](https://github.com/getpaseo/paseo/pull/8729), [#10612](https://github.com/getpaseo/paseo/pull/10612))
|
||||
- Fixed existing OpenCode sessions failing to reopen after Paseo tool definitions change ([#10533](https://github.com/getpaseo/paseo/pull/10533) by [@Peanut-HZM](https://github.com/Peanut-HZM))
|
||||
- Fixed Paseo tools missing from agents that use MCP protocol version `2026-07-28` ([#10558](https://github.com/getpaseo/paseo/pull/10558) by [@apple-ouyang](https://github.com/apple-ouyang))
|
||||
- Fixed Codex MCP startup failures missing from daemon warning logs ([#10566](https://github.com/getpaseo/paseo/pull/10566))
|
||||
- Fixed the daemon exiting when it closes a session after the plugin process has stopped ([#10585](https://github.com/getpaseo/paseo/pull/10585))
|
||||
- Fixed Git commands selecting the wrong repository when a directory has the layout of a bare repository ([#10587](https://github.com/getpaseo/paseo/pull/10587))
|
||||
- Fixed Claude Auto permission mode being unavailable on Bedrock and Vertex ([#6904](https://github.com/getpaseo/paseo/pull/6904))
|
||||
- Fixed the sidebar host settings button requiring two clicks to open settings ([#10562](https://github.com/getpaseo/paseo/pull/10562) by [@ShalokShalom](https://github.com/ShalokShalom))
|
||||
- Fixed the Changes pane not offering Push for a new branch that was never pushed in a regular checkout ([#10631](https://github.com/getpaseo/paseo/pull/10631))
|
||||
- Fixed the daemon using the wrong model catalog when Hub sends a workspace directory for trigger validation ([#10582](https://github.com/getpaseo/paseo/pull/10582))
|
||||
|
||||
## 0.17.3 - 2026-11-22
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -1,5 +1,159 @@
|
||||
# Changelog
|
||||
|
||||
## 0.18.1 - 2026-11-27
|
||||
|
||||
- **主机元数据指令**:设置一次主机级指令,即可统一控制自动生成的工作区标题、分支名、提交信息和 PR 的语言、语气与格式。([#11064](https://github.com/getpaseo/paseo/pull/11064))
|
||||
- **企业消费用量**:使用情况现已显示 Claude 额外消费用量以及 Codex 个人消费限额和重置时间。([#8976](https://github.com/getpaseo/paseo/pull/8976),贡献者:[@mcowger](https://github.com/mcowger), [@JasprW](https://github.com/JasprW))
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复 Android 在 Doze 休眠模式下 Agent 推送通知延迟数分钟送达的问题 ([#8501](https://github.com/getpaseo/paseo/pull/8501),贡献者:[@truelecter](https://github.com/truelecter))
|
||||
- 修复在命令中心输入时结果顺序在单词输入中途跳动的问题 ([#11085](https://github.com/getpaseo/paseo/pull/11085))
|
||||
- 修复关闭网页浮层后 Composer 的斜杠与 `@` 自动补全失效,以及提交提示词时自动补全弹出的问题 ([#11041](https://github.com/getpaseo/paseo/pull/11041))
|
||||
- 修复在“新建工作区”中首次打开“起始 ref”浮层时高度跳动和行位偏移的问题 ([#11042](https://github.com/getpaseo/paseo/pull/11042))
|
||||
- 修复宽屏布局下 iOS 主屏幕网页应用的状态栏遮挡专注模式标签栏、覆盖侧边栏和 Mermaid 全屏查看器的问题 ([#9970](https://github.com/getpaseo/paseo/pull/9970),贡献者:[@mywaffles](https://github.com/mywaffles))
|
||||
- 修复将工作区标记为已读时未清除已完成终端提醒的问题 ([#11040](https://github.com/getpaseo/paseo/pull/11040))
|
||||
- 修复 GitLab 合并请求的流水线运行在 fork 项目中时,检查状态和流水线详情返回 404 的问题 ([#11074](https://github.com/getpaseo/paseo/pull/11074))
|
||||
- 修复 Pi 运行其自行启动的轮次时发送的消息直接失败而不是排队的问题 ([#11077](https://github.com/getpaseo/paseo/pull/11077))
|
||||
- 修复 OpenCode v2 已丢弃工具审批请求后,审批卡片仍一直卡住的问题 ([#11061](https://github.com/getpaseo/paseo/pull/11061),贡献者:[@rhettjay](https://github.com/rhettjay))
|
||||
- 修复共享服务器上运行其他会话时,空闲清理不会卸载闲置 OpenCode v2 对话的问题 ([#11039](https://github.com/getpaseo/paseo/pull/11039))
|
||||
- 修复空闲 ACP Agent 的进程意外退出后永久失败,而不是在下一条消息时重新打开会话的问题 ([#11047](https://github.com/getpaseo/paseo/pull/11047))
|
||||
- 修复使用全局 `kimi.ai` 账号登录时 Kimi 用量加载失败或显示登录已过期的问题 ([#8505](https://github.com/getpaseo/paseo/pull/8505),贡献者:[@benthecarman](https://github.com/benthecarman))
|
||||
- 修复通过 `Z_AI_API_KEY` 或凭据文件登录 GLM Agent 时缺少 Z.ai 使用情况卡片的问题 ([#8376](https://github.com/getpaseo/paseo/pull/8376),贡献者:[@Peanut-HZM](https://github.com/Peanut-HZM))
|
||||
|
||||
### 插件
|
||||
|
||||
- 为时间线插件在 `item.metadata.intent` 中新增 OMP 工具调用意图 ([#10727](https://github.com/getpaseo/paseo/pull/10727),贡献者:[@mcowger](https://github.com/mcowger))
|
||||
|
||||
## 0.18.0 - 2026-11-27
|
||||
|
||||
- **远程工作区浏览器代理**:远程工作区中的桌面端浏览器标签页现在会通过该工作区的 daemon 转发流量,远程 `localhost` 服务可以直接在 Paseo 中打开。([#10944](https://github.com/getpaseo/paseo/pull/10944),贡献者:[@airon-assustadus](https://github.com/airon-assustadus))
|
||||
- **按设备配置通知偏好**:每台设备都可以分别选择哪些 Agent、终端和插件事件发送通知,插件现在也可以发送通知并处理点击。([#10888](https://github.com/getpaseo/paseo/pull/10888))
|
||||
- **智能体配置文件系统提示词**:在智能体配置文件中保存可选的系统提示词,以便在通过该配置启动新 Agent 时应用。([#10996](https://github.com/getpaseo/paseo/pull/10996))
|
||||
- **更多语法高亮语言**:语法高亮现已支持 diff 和 patch 文件,以及 Ruby、Kotlin、TOML、SQL、Lua、Protobuf、PowerShell、Groovy、Gradle、Scala、CMake、Properties、INI、R、Perl 和 LaTeX。([#11026](https://github.com/getpaseo/paseo/pull/11026),贡献者:[@hmalaspina](https://github.com/hmalaspina), [@kukicola](https://github.com/kukicola), [@MaximeConan](https://github.com/MaximeConan), [@singleton11](https://github.com/singleton11), [@chandlerok](https://github.com/chandlerok))
|
||||
|
||||
### 变更
|
||||
|
||||
- ACP Provider 现在会在 daemon 重启间将已发现的模型目录缓存到磁盘,不再在后台轮询,同时清理了多余的 Antigravity ACP 参数和元数据。需要 [Antigravity CLI 1.5.1 或更高版本](https://paseo.sh/zh-CN/docs/supported-providers/antigravity) ([#10992](https://github.com/getpaseo/paseo/pull/10992))
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复已启用的客户端插件导入 `react-native` 时,Paseo iOS 在连接后不久崩溃的问题 ([#11011](https://github.com/getpaseo/paseo/pull/11011))
|
||||
- 修复流事件丢失或对话历史较大时,OpenCode v2 Agent 在点击停止后仍停留在运行中的问题 ([#10955](https://github.com/getpaseo/paseo/pull/10955))
|
||||
- 修复在 Pi Agent 运行其自行启动的轮次时发送引导消息会中止该轮次而不是引导它的问题 ([#10977](https://github.com/getpaseo/paseo/pull/10977),贡献者:[@viiqswim](https://github.com/viiqswim))
|
||||
- 修复在 fork 克隆中根据 PR 创建工作区时,检出到 fork 中同编号 PR 的问题 ([#10987](https://github.com/getpaseo/paseo/pull/10987))
|
||||
- 修复向 Composer 拖放图片或文件后输入框未获得焦点的问题 ([#11022](https://github.com/getpaseo/paseo/pull/11022))
|
||||
|
||||
## 0.17.6 - 2026-11-27
|
||||
|
||||
### 改进
|
||||
|
||||
- 将设置重组为设备和主机两个范围,并合并了内容较少的页面 ([#10933](https://github.com/getpaseo/paseo/pull/10933))
|
||||
- 为模型选择器中的模型、Provider 和配置文件新增方向键导航 ([#10929](https://github.com/getpaseo/paseo/pull/10929), [#10962](https://github.com/getpaseo/paseo/pull/10962))
|
||||
- 在主机设置和初始设置中新增就地刷新 Tailscale 可用性的按钮 ([#10903](https://github.com/getpaseo/paseo/pull/10903))
|
||||
|
||||
### 变更
|
||||
|
||||
- 移除了在后台运行 `agy -p /usage` 的 Antigravity 用量数据源 ([#10953](https://github.com/getpaseo/paseo/pull/10953),贡献者:[@luoph](https://github.com/luoph))
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复对话中出现代码块或引用时 Paseo Android 在三星设备上崩溃的问题 ([#10964](https://github.com/getpaseo/paseo/pull/10964))
|
||||
- 修复在 Android 上使用鼠标点击无法选择模型选择器行的问题 ([#10972](https://github.com/getpaseo/paseo/pull/10972))
|
||||
- 修复 macOS 桌面端因 Dock 进度条更新在启动时卡死的问题 ([#10939](https://github.com/getpaseo/paseo/pull/10939))
|
||||
- 修复 Linux AppImage 将其运行时环境变量泄漏到 Shell 和子进程的问题 ([#10920](https://github.com/getpaseo/paseo/pull/10920))
|
||||
- 修复 Linux 上后台 Git fetch 启动孤立 D-Bus 进程并在认证失败后循环重试的问题 ([#10921](https://github.com/getpaseo/paseo/pull/10921))
|
||||
- 修复恢复已归档工作区和 Agent 时的界面闪烁问题,并新增恢复中状态提示 ([#10928](https://github.com/getpaseo/paseo/pull/10928))
|
||||
- 修复 worktree 所有权超出已配置 worktrees 根目录的问题 ([#10878](https://github.com/getpaseo/paseo/pull/10878))
|
||||
- 修复另一个标签页淘汰目录缓存后,新打开的网页标签页丢失 project 的问题 ([#10942](https://github.com/getpaseo/paseo/pull/10942))
|
||||
- 修复 rewind epoch 变更时时间线丢失行的问题 ([#8794](https://github.com/getpaseo/paseo/pull/8794),贡献者:[@LiebeLee](https://github.com/LiebeLee))
|
||||
|
||||
## 0.17.5 - 2026-11-26
|
||||
|
||||
- **批量归档工作区**:在侧边栏按住 Cmd/Ctrl 点击工作区即可多选,一步归档。([#10798](https://github.com/getpaseo/paseo/pull/10798), [#10821](https://github.com/getpaseo/paseo/pull/10821))
|
||||
- **复制引用草稿**:一键复制回复中的引用内容,不带 `>` 标记。([#10608](https://github.com/getpaseo/paseo/pull/10608),贡献者:[@pedrovieira](https://github.com/pedrovieira), [@dinhphieu](https://github.com/dinhphieu))
|
||||
- **重新设计的智能体配置文件页面**:智能体配置文件现在有专属的设置页面,模型选择器一键即可保存新的配置文件。([#10789](https://github.com/getpaseo/paseo/pull/10789), [#10824](https://github.com/getpaseo/paseo/pull/10824))
|
||||
- **重新设计的添加 project**:“添加 project”直接打开文件夹搜索,克隆和新建文件夹只需切换一个标签页。([#10767](https://github.com/getpaseo/paseo/pull/10767))
|
||||
- **选择桌面端的更新方式**:桌面端可以自动下载更新、仅通知你,或完全不检查。([#10785](https://github.com/getpaseo/paseo/pull/10785))
|
||||
- **全面支持 Tailscale**:在主机设置或初始设置中为主机开启 Tailscale,无需编辑配置。([#10801](https://github.com/getpaseo/paseo/pull/10801))
|
||||
|
||||
### 新增
|
||||
|
||||
- 在主机选择器中新增主机图标、连接类型和延迟 ([#10702](https://github.com/getpaseo/paseo/pull/10702),贡献者:[@artile](https://github.com/artile))
|
||||
- 在模型选择器搜索和命令中心中新增智能体配置文件 ([#10774](https://github.com/getpaseo/paseo/pull/10774))
|
||||
- 为 `paseo schedule create`、`paseo schedule update` 和定时任务 MCP 工具新增“完成后归档”选项 ([#8479](https://github.com/getpaseo/paseo/pull/8479),贡献者:[@ArnoldHueteG](https://github.com/ArnoldHueteG))
|
||||
- 将 Factory Droid 的目录条目更新到 Droid 1.20.0,新增其较新的模型 ([#10779](https://github.com/getpaseo/paseo/pull/10779),贡献者:[@dsingal0](https://github.com/dsingal0))
|
||||
|
||||
### 变更
|
||||
|
||||
- 桌面端稳定版的自动更新改为最多每 6 小时检查一次,每次更新后等待 24 小时 ([#10882](https://github.com/getpaseo/paseo/pull/10882), [#10901](https://github.com/getpaseo/paseo/pull/10901))
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复 Agent 将自己创建的子 Agent 从标签页和子 Agent 列表中隐藏的问题 ([#10887](https://github.com/getpaseo/paseo/pull/10887))
|
||||
- 修复 Claude 子 Agent 等待后台任务时,父 Agent 收到的是中间回复而不是最终回复的问题 ([#10864](https://github.com/getpaseo/paseo/pull/10864))
|
||||
- 修复监视 PR 的 Agent 在轮次结束后仍显示为运行中的问题 ([#10740](https://github.com/getpaseo/paseo/pull/10740),贡献者:[@drgould](https://github.com/drgould))
|
||||
- 修复远程名称不是 `origin` 时“变更”面板不显示推送或拉取的问题 ([#10679](https://github.com/getpaseo/paseo/pull/10679))
|
||||
- 修复拆分窗格或移出当前标签后,原窗格切换到错误标签的问题 ([#10716](https://github.com/getpaseo/paseo/pull/10716))
|
||||
- 修复在“新建工作区”中选择 project 后,焦点停留在 project 按钮上的问题 ([#10632](https://github.com/getpaseo/paseo/pull/10632))
|
||||
- 修复已归档的对话在窗口重新加载前一直占用内存的问题 ([#10866](https://github.com/getpaseo/paseo/pull/10866))
|
||||
- 修复应用长时间运行后悬停卡片等浮层变慢的问题 ([#10778](https://github.com/getpaseo/paseo/pull/10778),贡献者:[@maci0](https://github.com/maci0))
|
||||
- 修复打开最后一轮包含数百次工具调用的对话时桌面端卡顿的问题 ([#8661](https://github.com/getpaseo/paseo/pull/8661),贡献者:[@luoph](https://github.com/luoph))
|
||||
- 修复在慢速网络上加载大型时间线时直接连接断开的问题 ([#10651](https://github.com/getpaseo/paseo/pull/10651),贡献者:[@apple-ouyang](https://github.com/apple-ouyang))
|
||||
- 修复大型 Git 工作区在文件监视器扫描时阻塞 daemon 的问题 ([#10788](https://github.com/getpaseo/paseo/pull/10788), [#10602](https://github.com/getpaseo/paseo/pull/10602))
|
||||
- 修复一个仓库中的 Git 变更导致所有检出重新扫描的问题 ([#10863](https://github.com/getpaseo/paseo/pull/10863),贡献者:[@viiqswim](https://github.com/viiqswim))
|
||||
- 修复待回答问题高于屏幕时 iOS 对话一直空白的问题 ([#10759](https://github.com/getpaseo/paseo/pull/10759))
|
||||
- 修复 Android 上在对话中长按选择文本后放大镜卡在屏幕上的问题 ([#10844](https://github.com/getpaseo/paseo/pull/10844))
|
||||
- 修复移动端弹窗底部栏在键盘收起时落到系统栏后面的问题 ([#10827](https://github.com/getpaseo/paseo/pull/10827))
|
||||
- 修复 macOS 上侧边栏切换按钮遮挡插件页面标题的问题 ([#10773](https://github.com/getpaseo/paseo/pull/10773))
|
||||
- 修复 Windows 上盘符前带斜杠的文件链接无法打开的问题 ([#7711](https://github.com/getpaseo/paseo/pull/7711))
|
||||
- 修复导入会话在 Provider 响应慢时提前放弃并隐藏 Provider 错误的问题 ([#10516](https://github.com/getpaseo/paseo/pull/10516),贡献者:[@chirag127](https://github.com/chirag127), [@derek-geekdive](https://github.com/derek-geekdive))
|
||||
- 修复 OMP 19.1 的 `ask` 问题不显示问题卡片的问题 ([#10862](https://github.com/getpaseo/paseo/pull/10862),贡献者:[@gtoxlili](https://github.com/gtoxlili))
|
||||
- 修复共享 OpenCode 服务器运行时,带有自己 MCP 服务器的 OpenCode 2 Agent 启动失败的问题。需要 OpenCode 2.0.29 或更高版本 ([#10752](https://github.com/getpaseo/paseo/pull/10752))
|
||||
- 修复已删除的 OpenCode 子 Agent 一直留在子 Agent 列表中的问题 ([#8332](https://github.com/getpaseo/paseo/pull/8332))
|
||||
- 修复重新打开父 Agent 后,已停止的 Claude 后台子 Agent 显示为运行中的问题 ([#9013](https://github.com/getpaseo/paseo/pull/9013))
|
||||
- 修复插件和 Paseo 的指令替换 Codex Agent 自身 `developer_instructions` 的问题 ([#10792](https://github.com/getpaseo/paseo/pull/10792))
|
||||
- 修复 Go 密钥保存在 OpenCode 的 `auth.json` 中时 OpenCode Go 用量卡片消失的问题 ([#10678](https://github.com/getpaseo/paseo/pull/10678))
|
||||
- 修复 Windows 上 GitHub、GitLab 和 Gitea 命令破坏多行参数并展开 `%VAR%` 文本的问题 ([#10685](https://github.com/getpaseo/paseo/pull/10685))
|
||||
- 修复 `paseo hub login` 输出的链接不包含验证码的问题 ([#10751](https://github.com/getpaseo/paseo/pull/10751))
|
||||
- 修复 Hub 触发器在 Antigravity 等不支持工具策略的插件 Provider 上运行失败的问题 ([#10889](https://github.com/getpaseo/paseo/pull/10889))
|
||||
- 修复 Hub 会话读取 daemon 的 Provider 控件时被拒绝的问题 ([#10794](https://github.com/getpaseo/paseo/pull/10794))
|
||||
- 修复模型列表刷新超时后,Hermes 等插件 ACP Provider 留下进程继续运行的问题 ([#10867](https://github.com/getpaseo/paseo/pull/10867))
|
||||
- 修复插件在轮次进行中重新加载后,其 Agent 工具返回 `Tool not found` 的问题 ([#10106](https://github.com/getpaseo/paseo/pull/10106),贡献者:[@tomgrin10](https://github.com/tomgrin10))
|
||||
- 修复被时间线插件改写的回复缺少复制、分叉和轮次耗时的问题 ([#10795](https://github.com/getpaseo/paseo/pull/10795),贡献者:[@Brandon168](https://github.com/Brandon168))
|
||||
- 修复空闲的插件会话每 10 秒唤醒一次 daemon 的问题 ([#9363](https://github.com/getpaseo/paseo/pull/9363),贡献者:[@Brandon168](https://github.com/Brandon168))
|
||||
|
||||
### 安全
|
||||
|
||||
- Claude Code 2.1.326 或更高版本现在通过 stdin 接收 MCP 服务器令牌,不再放在其他本地用户可读取的进程参数中 ([#10698](https://github.com/getpaseo/paseo/pull/10698),贡献者:[@mdbraber](https://github.com/mdbraber))
|
||||
- 修复归档未批准设置的 PR worktree 时仍运行仓库 teardown 命令的问题 ([#10694](https://github.com/getpaseo/paseo/pull/10694))
|
||||
|
||||
### 插件
|
||||
|
||||
- 新增启动包装,插件可以在沙箱中运行 Agent、终端和 worktree 命令 ([#10786](https://github.com/getpaseo/paseo/pull/10786),贡献者:[@clkao](https://github.com/clkao), [@bendavid](https://github.com/bendavid))
|
||||
- 在插件的工作区快照中新增父工作区 ([#10781](https://github.com/getpaseo/paseo/pull/10781),贡献者:[@spatenotte](https://github.com/spatenotte))
|
||||
- 将内置的 `paseo-plugin` 技能更新到当前的插件 API ([#10793](https://github.com/getpaseo/paseo/pull/10793))
|
||||
|
||||
## 0.17.4 - 2026-11-23
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复 Android 上嵌套编号列表的编号与正文重叠,以及列表中的引用与后续消息重叠的问题 ([#10499](https://github.com/getpaseo/paseo/pull/10499))
|
||||
- 修复 Android 终端输入,要求键盘不将输入内容用于个性化学习 ([#10586](https://github.com/getpaseo/paseo/pull/10586))
|
||||
- 修复在不区分大小写的文件系统上,目录路径大小写不一致导致对话消失的问题 ([#10555](https://github.com/getpaseo/paseo/pull/10555),贡献者:[@yzim](https://github.com/yzim))
|
||||
- 修复发给已归档 Agent 的中断和引导消息进入队列后未启动新轮次的问题 ([#10611](https://github.com/getpaseo/paseo/pull/10611),贡献者:[@thomasvan](https://github.com/thomasvan))
|
||||
- 修复 Hermes 的 Shell 工具行只显示命令摘要的问题,现在会显示完整命令 ([#10614](https://github.com/getpaseo/paseo/pull/10614))
|
||||
- 修复使用 OpenCode 2 数据库中保存的登录凭据时的 Go 用量显示,涵盖 Console 登录和 API 密钥 ([#8729](https://github.com/getpaseo/paseo/pull/8729), [#10612](https://github.com/getpaseo/paseo/pull/10612))
|
||||
- 修复 Paseo 工具定义变更后无法重新打开已有 OpenCode 会话的问题 ([#10533](https://github.com/getpaseo/paseo/pull/10533),贡献者:[@Peanut-HZM](https://github.com/Peanut-HZM))
|
||||
- 修复使用 MCP 协议版本 `2026-07-28` 的 Agent 缺少 Paseo 工具的问题 ([#10558](https://github.com/getpaseo/paseo/pull/10558),贡献者:[@apple-ouyang](https://github.com/apple-ouyang))
|
||||
- 修复 Codex MCP 启动失败时 daemon 未记录警告的问题 ([#10566](https://github.com/getpaseo/paseo/pull/10566))
|
||||
- 修复插件进程停止后 daemon 在关闭会话时退出的问题 ([#10585](https://github.com/getpaseo/paseo/pull/10585))
|
||||
- 修复目录结构与裸仓库相同时 Git 命令选错仓库的问题 ([#10587](https://github.com/getpaseo/paseo/pull/10587))
|
||||
- 修复在 Bedrock 和 Vertex 上无法选择 Claude Auto 权限模式的问题 ([#6904](https://github.com/getpaseo/paseo/pull/6904))
|
||||
- 修复侧边栏的主机设置按钮需要点击两次才能打开设置的问题 ([#10562](https://github.com/getpaseo/paseo/pull/10562),贡献者:[@ShalokShalom](https://github.com/ShalokShalom))
|
||||
- 修复普通检出中从未推送过的新分支在“变更”面板中不显示“推送”的问题 ([#10631](https://github.com/getpaseo/paseo/pull/10631))
|
||||
- 修复 Hub 在验证触发器时传入工作区目录后,daemon 使用错误模型目录的问题 ([#10582](https://github.com/getpaseo/paseo/pull/10582))
|
||||
|
||||
## 0.17.3 - 2026-11-22
|
||||
|
||||
### 修复
|
||||
|
||||
@@ -36,6 +36,7 @@ At the start of non-trivial work, list `docs/` and skim anything relevant to the
|
||||
| [docs/floating-panels.md](docs/floating-panels.md) | Anchored popovers — Portal/Modal escape for Android, lifecycle gates, keyboard-shared-value, status-bar offset, the flash |
|
||||
| [docs/keyboard-shortcuts.md](docs/keyboard-shortcuts.md) | The binding table, per-platform key sources, badges vs routing, iOS `UIKeyCommand` limits |
|
||||
| [docs/menus.md](docs/menus.md) | The menu engine — popover vs sheet, submenu pages, hover intent, when a decision earns a submenu |
|
||||
| [docs/drag-reorder.md](docs/drag-reorder.md) | Drag to reorder — `DraggableList` and its handle, the scroll view that must host the drag, grip placement, testing on a phone |
|
||||
| [docs/expo-router.md](docs/expo-router.md) | Expo Router route ownership, startup restore, and native blank-screen gotchas |
|
||||
| [docs/notifications.md](docs/notifications.md) | Notification tap ownership, native replay and acknowledgement, startup handoff, and payload QA |
|
||||
| [docs/file-icons.md](docs/file-icons.md) | Material icon theme integration for the file explorer |
|
||||
|
||||
@@ -57,9 +57,9 @@
|
||||
|
||||
<!-- Sponsors: one cell per sponsor in the order of packages/website/src/data/sponsors.ts, then "become a sponsor" cells up to three. -->
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Cloud coding agents</sub></td>
|
||||
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Paseo のスポンサーになる</a></td>
|
||||
<tr valign="top">
|
||||
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Hoplite runs swarms of coding agents in the cloud.</sub></td>
|
||||
<td align="center" width="33%"><a href="https://encore.dev/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/encore-on-dark.svg"><img src="packages/website/public/sponsors/encore-on-light.svg" alt="Encore" height="40"></picture></a><br><sub>Encore lets AI agents ship to production safely, at scale, in your own cloud.</sub></td>
|
||||
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Paseo のスポンサーになる</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -51,9 +51,9 @@
|
||||
|
||||
<!-- Sponsors: one cell per sponsor in the order of packages/website/src/data/sponsors.ts, then "become a sponsor" cells up to three. -->
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Cloud coding agents</sub></td>
|
||||
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Paseo 스폰서 되기</a></td>
|
||||
<tr valign="top">
|
||||
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Hoplite runs swarms of coding agents in the cloud.</sub></td>
|
||||
<td align="center" width="33%"><a href="https://encore.dev/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/encore-on-dark.svg"><img src="packages/website/public/sponsors/encore-on-light.svg" alt="Encore" height="40"></picture></a><br><sub>Encore lets AI agents ship to production safely, at scale, in your own cloud.</sub></td>
|
||||
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Paseo 스폰서 되기</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -48,7 +48,7 @@ Paseo is an open source agentic development environment for desktop, mobile, web
|
||||
- **Multi-provider:** Claude Code, Codex, Copilot, OpenCode, Pi, Antigravity, and Muse Code through the same interface. Pick the right model for each job.
|
||||
- **Voice control:** Dictate tasks or talk through problems in voice mode. Hands-free when you need it.
|
||||
- **Cross-device:** iOS, Android, desktop, web, and CLI. Start work at your desk, check in from your phone, script it from the terminal.
|
||||
- **Privacy-first:** Paseo doesn't have any telemetry, tracking, or forced log-ins.
|
||||
- **Privacy-first:** No telemetry, tracking, or forced login. Remote access uses an optional end-to-end encrypted relay.
|
||||
|
||||
[Run parallel tasks in Paseo](https://paseo.sh/docs/parallel-development): start agents in separate worktrees, review their diffs, run each app, and check it in the built-in browser.
|
||||
|
||||
@@ -56,9 +56,9 @@ Paseo is an open source agentic development environment for desktop, mobile, web
|
||||
|
||||
<!-- Sponsors: one cell per sponsor in the order of packages/website/src/data/sponsors.ts, then "become a sponsor" cells up to three. -->
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="56"></picture></a><br><sub>Cloud coding agents</sub></td>
|
||||
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Become a sponsor</a></td>
|
||||
<tr valign="top">
|
||||
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="56"></picture></a><br><sub>Hoplite runs swarms of coding agents in the cloud.</sub></td>
|
||||
<td align="center" width="33%"><a href="https://encore.dev/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/encore-on-dark.svg"><img src="packages/website/public/sponsors/encore-on-light.svg" alt="Encore" height="56"></picture></a><br><sub>Encore lets AI agents ship to production safely, at scale, in your own cloud.</sub></td>
|
||||
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Become a sponsor</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -51,15 +51,15 @@
|
||||
- **多提供商:** 通过同一个界面使用 Claude Code、Codex、Copilot、OpenCode 和 Pi。为每个任务选择合适的模型。
|
||||
- **语音控制:** 在语音模式下口述任务或讨论问题。需要免手操作时很方便。
|
||||
- **跨设备:** 支持 iOS、Android、桌面端、Web 和 CLI。在桌前开始工作,用手机查看进度,也可以从终端脚本化操作。
|
||||
- **隐私优先:** Paseo 没有遥测、追踪,也不会强制登录。
|
||||
- **隐私优先**:无遥测、无追踪、不强制登录。远程访问可使用可选的端到端加密中继。
|
||||
|
||||
## 赞助商
|
||||
|
||||
<!-- Sponsors: one cell per sponsor in the order of packages/website/src/data/sponsors.ts, then "become a sponsor" cells up to three. -->
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Cloud coding agents</sub></td>
|
||||
<td align="center" width="33%"><a href="https://paseo.sh/zh-CN/sponsor">成为 Paseo 赞助商</a></td>
|
||||
<tr valign="top">
|
||||
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Hoplite runs swarms of coding agents in the cloud.</sub></td>
|
||||
<td align="center" width="33%"><a href="https://encore.dev/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/encore-on-dark.svg"><img src="packages/website/public/sponsors/encore-on-light.svg" alt="Encore" height="40"></picture></a><br><sub>Encore lets AI agents ship to production safely, at scale, in your own cloud.</sub></td>
|
||||
<td align="center" width="33%"><a href="https://paseo.sh/zh-CN/sponsor">成为 Paseo 赞助商</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -93,7 +93,7 @@ npm install -g @getpaseo/cli
|
||||
paseo
|
||||
```
|
||||
|
||||
终端中会显示一个二维码。你可以从任意客户端连接。这个方式适合服务器和远程机器。
|
||||
Paseo 启动后会询问是否启用端到端加密中继以进行设备配对。如果拒绝,可以通过 TCP、Tailscale 或其他 VPN 直接连接。这个方式适合服务器和远程机器。
|
||||
|
||||
完整安装和配置见:
|
||||
|
||||
@@ -140,7 +140,7 @@ Monorepo 包结构速览:
|
||||
- `packages/app`:Expo 客户端(iOS、Android、Web)
|
||||
- `packages/cli`:用于 daemon 和 agent 工作流的 `paseo` CLI
|
||||
- `packages/desktop`:Electron 桌面 app
|
||||
- `packages/relay`:用于远程连接的 relay 包
|
||||
- `packages/relay`:daemon 和客户端使用的中继传输与端到端加密包
|
||||
- `packages/website`:营销站点和文档(`paseo.sh`)
|
||||
|
||||
常用命令:
|
||||
|
||||
@@ -33,7 +33,7 @@ The relay sees only: IP addresses, timing, message sizes, session IDs, and the p
|
||||
The daemon requires a valid cryptographic handshake before processing any commands. A compromised relay cannot:
|
||||
|
||||
- **Impersonate the daemon to your phone** — Without the daemon's secret key, it cannot derive the shared key, so any traffic it injects fails authenticated decryption on the phone
|
||||
- **Send commands as you** — The daemon only accepts traffic that decrypts and authenticates under a shared key derived with its own secret key. The phone's keypair is ephemeral per connection, so there is no persistent phone-side secret to steal; protection comes from the daemon's secret key never leaving the daemon.
|
||||
- **Open a session without pairing** — The daemon's public key is carried only in the pairing offer and is never sent to the relay. With a daemon password configured, the daemon also rejects any relay client that does not send the right password inside the encrypted channel.
|
||||
- **Read your traffic** — After the handshake every message is encrypted: ChaCha20-Poly1305 in protected mode, XSalsa20-Poly1305 (NaCl box) in legacy mode
|
||||
- **Forge messages** — Both constructions are authenticated encryption; a tampered message is rejected in either mode
|
||||
- **Replay old messages** — In protected mode the daemon contributes a fresh ephemeral key to every session and every record carries a strictly increasing counter, so a recorded session cannot be replayed into a new one and a duplicated, reordered, or reflected record closes the session. Legacy mode has neither property: it uses random nonces, and a daemon that still admits legacy clients accepts a recorded legacy transcript (hello, credentials, commands) as a new session. Set `daemon.relay.requireProtectedSecurity: true` to refuse legacy clients once every client you use has updated.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Brand assets
|
||||
|
||||
Canonical marks, lockups, and wordmark font for **Paseo** and **Paseo Hub**. These are the source assets that will replace the existing icons across the app, desktop client, website, docs, and Hub in follow-up work.
|
||||
Canonical marks, lockups, and wordmark font for **Paseo** and **Paseo Hub**. These are the source assets for the icons across the app, desktop client, website, docs, and Hub.
|
||||
|
||||
## Brand architecture
|
||||
|
||||
@@ -37,6 +37,10 @@ All lockups (`lockups/*.svg`) share a `144`-unit height (`140`-unit flower ink h
|
||||
```text
|
||||
assets/brand/
|
||||
build.mjs Regenerates all marks and lockups
|
||||
build-app-icons.mjs Regenerates the desktop and mobile app icons
|
||||
app-icons/
|
||||
paseo-lit.png
|
||||
paseo-dev-lit.png
|
||||
fonts/
|
||||
PlusJakartaSans-SemiBold.ttf
|
||||
OFL.txt
|
||||
@@ -61,3 +65,25 @@ assets/brand/
|
||||
```sh
|
||||
node assets/brand/build.mjs
|
||||
```
|
||||
|
||||
## App icons
|
||||
|
||||
`build-app-icons.mjs` renders every desktop and mobile app icon from `marks/paseo-white.svg`: the white butterfly on a black tile, and a blueprint tile for desktop development builds. Regenerate them after changing the butterfly:
|
||||
|
||||
```sh
|
||||
node assets/brand/build-app-icons.mjs
|
||||
```
|
||||
|
||||
The icons that ship are flat. Each platform masks and lights its own icons, so lit artwork ends up lit twice. `app-icons/` keeps a lit version of the two desktop icons, a baked approximation of macOS Liquid Glass. Nothing uses them.
|
||||
|
||||
The packaged Mac app takes its icon from `packages/desktop/assets/icon.icon`, an Icon Composer document the script also writes. macOS draws Liquid Glass on it and derives the dark, tinted, and clear variants. electron-builder compiles the document with `actool`, so packaging the Mac app needs Xcode 26 or later. The Nix build has no Xcode and uses `icon.icns`.
|
||||
|
||||
To see what macOS draws from the document without packaging the app, export it with Icon Composer's command line tool on a Mac:
|
||||
|
||||
```sh
|
||||
"/Applications/Xcode.app/Contents/Applications/Icon Composer.app/Contents/Executables/ictool" \
|
||||
packages/desktop/assets/icon.icon --export-image --output-file icon.png \
|
||||
--platform macOS --rendition Default --width 1024 --height 1024 --scale 1
|
||||
```
|
||||
|
||||
`--rendition` also takes `Dark`, `TintedLight`, `TintedDark`, `ClearLight`, and `ClearDark`.
|
||||
|
||||
|
After Width: | Height: | Size: 212 KiB |
|
After Width: | Height: | Size: 109 KiB |
@@ -0,0 +1,464 @@
|
||||
// Generates every Paseo app icon from the canonical butterfly mark.
|
||||
//
|
||||
// node assets/brand/build-app-icons.mjs
|
||||
//
|
||||
// The artwork is the white butterfly on a black tile. A desktop development build gets the same
|
||||
// tile drawn as a blueprint, so it is never mistaken for an installed app.
|
||||
//
|
||||
// The icons that ship are flat. Each platform masks and lights its own icons, and artwork that
|
||||
// arrives already lit ends up lit twice. The lit finish is a baked approximation of the Liquid
|
||||
// Glass material macOS draws for Icon Composer icons. It is written to app-icons/ so it stays
|
||||
// available, and nothing consumes it.
|
||||
//
|
||||
// A packaged Mac app gets its icon from the Icon Composer document in the desktop assets, which
|
||||
// macOS masks and lights itself. macOS draws a dev build's Dock icon and an .icns exactly as
|
||||
// supplied, so those carry the system's tile in the artwork. Its geometry is measured from the icon
|
||||
// macOS 27 draws for that document: the tile covers 824 of the 1024 canvas pixels and its corners
|
||||
// are continuous curves with a radius of 26.4% of the tile.
|
||||
//
|
||||
// sharp is not a declared dependency. It resolves from the workspace root, the way opentype.js
|
||||
// does for build.mjs.
|
||||
|
||||
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import sharp from "sharp";
|
||||
|
||||
const brandDir = path.dirname(fileURLToPath(import.meta.url));
|
||||
const repoRoot = path.resolve(brandDir, "../..");
|
||||
const brandMarkPath = path.join(brandDir, "marks/paseo-white.svg");
|
||||
|
||||
const CANVAS = 1024;
|
||||
const MACOS_TILE_ON_CANVAS = 824 / CANVAS;
|
||||
// Windows and Linux have no icon grid, and a tile with the macOS margin looks small next to their
|
||||
// other icons.
|
||||
const WINDOWS_LINUX_TILE_ON_CANVAS = 928 / CANVAS;
|
||||
|
||||
// Artwork is drawn in the brand mark's own 700-unit box, which the tile fills.
|
||||
const TILE = 700;
|
||||
const TILE_RADIUS = 185;
|
||||
const MARK_INK = 527;
|
||||
// Scaled down, the mark keeps clear of the tile's corners and covers as much of the tile as the
|
||||
// glyphs in Apple's icons do.
|
||||
const MARK_SCALE = 0.9;
|
||||
const MARK_INK_ON_TILE = (MARK_INK * MARK_SCALE) / TILE;
|
||||
|
||||
// Android shows the middle 72 of an adaptive icon's 108 units.
|
||||
const ANDROID_ADAPTIVE_VISIBLE = 72 / 108;
|
||||
const NOTIFICATION_MARK_INK = 0.75;
|
||||
|
||||
// Apple's continuous corner. Each pair is a distance back along the incoming edge and a distance
|
||||
// along the outgoing edge, in units of the corner radius.
|
||||
const CORNER_SEGMENTS = [
|
||||
["C", [1.08849296, 0], [0.86840694, 0], [0.66993427, 0.065496]],
|
||||
["L", [0.63149399, 0.074911]],
|
||||
["C", [0.37282392, 0.16905899], [0.16905899, 0.37282392], [0.074911, 0.63149399]],
|
||||
["L", [0.065496, 0.66993427]],
|
||||
["C", [0, 0.86840694], [0, 1.08849296], [0, 1.52866483]],
|
||||
];
|
||||
const CORNER_START = [1.52866483, 0];
|
||||
|
||||
function continuousSquarePath(inset) {
|
||||
const near = inset;
|
||||
const far = TILE - inset;
|
||||
const radius = TILE_RADIUS - inset;
|
||||
const corners = [
|
||||
{ at: [far, near], incoming: [1, 0], outgoing: [0, 1] },
|
||||
{ at: [far, far], incoming: [0, 1], outgoing: [-1, 0] },
|
||||
{ at: [near, far], incoming: [-1, 0], outgoing: [0, -1] },
|
||||
{ at: [near, near], incoming: [0, -1], outgoing: [1, 0] },
|
||||
];
|
||||
const commands = corners.map(({ at, incoming, outgoing }, cornerIndex) => {
|
||||
const point = ([back, along]) =>
|
||||
[0, 1]
|
||||
.map((axis) => at[axis] - incoming[axis] * back * radius + outgoing[axis] * along * radius)
|
||||
.map((value) => Number(value.toFixed(2)))
|
||||
.join(" ");
|
||||
const segments = CORNER_SEGMENTS.map(
|
||||
([command, ...points]) => `${command}${points.map(point).join(" ")}`,
|
||||
);
|
||||
return `${cornerIndex === 0 ? "M" : "L"}${point(CORNER_START)}${segments.join("")}`;
|
||||
});
|
||||
return `${commands.join("")}Z`;
|
||||
}
|
||||
|
||||
const TILE_SHAPE = `<path d="${continuousSquarePath(0)}" />`;
|
||||
const FILL_TILE = `<rect width="${TILE}" height="${TILE}" fill="url(#surface)" />`;
|
||||
|
||||
const PRODUCTION = {
|
||||
flat: {
|
||||
defs: `<linearGradient id="surface"><stop stop-color="#000000" /></linearGradient>`,
|
||||
surface: FILL_TILE,
|
||||
},
|
||||
lit: {
|
||||
defs: `
|
||||
<linearGradient id="surface" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#202022" />
|
||||
<stop offset="1" stop-color="#0E0E10" />
|
||||
</linearGradient>`,
|
||||
surface: FILL_TILE,
|
||||
tileEdge: { color: "#000000", opacity: 0.75 },
|
||||
markEdge: { color: "#4A5568", opacity: 0.45 },
|
||||
markShadow: { color: "#000000", opacity: 0.5 },
|
||||
},
|
||||
};
|
||||
|
||||
const GRID_DIVISIONS = 8;
|
||||
const GRID_MAJOR_EVERY = 2;
|
||||
const OUTLINE_INSET = 28;
|
||||
|
||||
function gridLines(isIncluded) {
|
||||
const step = TILE / GRID_DIVISIONS;
|
||||
const segments = [];
|
||||
for (let index = 1; index < GRID_DIVISIONS; index += 1) {
|
||||
if (!isIncluded(index)) continue;
|
||||
const at = index * step;
|
||||
segments.push(`M${at} 0V${TILE}`, `M0 ${at}H${TILE}`);
|
||||
}
|
||||
return segments.join("");
|
||||
}
|
||||
|
||||
const isMajorLine = (index) => index % GRID_MAJOR_EVERY === 0;
|
||||
|
||||
const BLUEPRINT_SHEET = {
|
||||
defs: `
|
||||
<linearGradient id="surface" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#05C2FE" />
|
||||
<stop offset="0.5" stop-color="#0191FD" />
|
||||
<stop offset="1" stop-color="#026CFA" />
|
||||
</linearGradient>`,
|
||||
surface: `
|
||||
${FILL_TILE}
|
||||
<g fill="none" stroke="#FFFFFF">
|
||||
<path d="${gridLines((index) => !isMajorLine(index))}" stroke-opacity="0.16" stroke-width="1.5" />
|
||||
<path d="${gridLines(isMajorLine)}" stroke-opacity="0.34" stroke-width="2" />
|
||||
<circle cx="${TILE / 2}" cy="${TILE / 2}" r="${TILE / 2 - OUTLINE_INSET}" stroke-opacity="0.45" stroke-width="2" stroke-dasharray="10 8" />
|
||||
<path d="${continuousSquarePath(OUTLINE_INSET)}" stroke-opacity="0.34" stroke-width="2" />
|
||||
</g>`,
|
||||
};
|
||||
|
||||
const BLUEPRINT = {
|
||||
flat: BLUEPRINT_SHEET,
|
||||
lit: {
|
||||
...BLUEPRINT_SHEET,
|
||||
tileEdge: { color: "#0034B4", opacity: 0.55 },
|
||||
markEdge: { color: "#1E5FD0", opacity: 0.5 },
|
||||
markShadow: { color: "#00308F", opacity: 0.4 },
|
||||
},
|
||||
};
|
||||
|
||||
// The lit finish, tuned against Apple's own renders. The light comes from straight above: a
|
||||
// layer's upward-facing edge gets a bright highlight, its downward-facing edge a fainter one, and
|
||||
// its side edges darken.
|
||||
//
|
||||
// An edge highlight is the part of the layer that a vertically shifted copy does not cover. A
|
||||
// vertical blur of the shifted copy makes the highlight brightest at the edge and absent on
|
||||
// vertical edges. A wider, round blur of the same band dims it where the edge turns away from
|
||||
// the light, which is what keeps the tile's corners quieter than its top.
|
||||
function glassFilter({ id, edge, edgeWidth, lightWidth, upperLight, lowerLight, shadow }) {
|
||||
const light = (name, direction, opacity) => `
|
||||
<feOffset in="SourceAlpha" dy="${direction * lightWidth}" />
|
||||
<feGaussianBlur stdDeviation="0 ${lightWidth}" result="${name}Shifted" />
|
||||
<feComposite in="SourceAlpha" in2="${name}Shifted" operator="out" result="${name}Edge" />
|
||||
<feOffset in="SourceAlpha" dy="${direction * lightWidth * 2}" result="${name}Far" />
|
||||
<feComposite in="SourceAlpha" in2="${name}Far" operator="out" />
|
||||
<feGaussianBlur stdDeviation="${lightWidth * 3}" />
|
||||
<feComponentTransfer><feFuncA type="gamma" exponent="3" amplitude="65" /></feComponentTransfer>
|
||||
<feComposite in2="${name}Edge" operator="arithmetic" k1="1" result="${name}Shape" />
|
||||
<feFlood flood-color="#FFFFFF" flood-opacity="${opacity}" />
|
||||
<feComposite in2="${name}Shape" operator="in" result="${name}" />`;
|
||||
const dropShadow = shadow
|
||||
? `
|
||||
<feGaussianBlur in="SourceAlpha" stdDeviation="${shadow.blur}" />
|
||||
<feOffset dy="${shadow.offset}" result="shadowShape" />
|
||||
<feFlood flood-color="${shadow.color}" flood-opacity="${shadow.opacity}" />
|
||||
<feComposite in2="shadowShape" operator="in" result="shadow" />`
|
||||
: "";
|
||||
return `
|
||||
<filter id="${id}" x="-20%" y="-20%" width="140%" height="140%" color-interpolation-filters="sRGB">${dropShadow}
|
||||
<feMorphology in="SourceAlpha" operator="erode" radius="${edgeWidth * 0.6}" />
|
||||
<feGaussianBlur stdDeviation="${edgeWidth}" result="core" />
|
||||
<feFlood flood-color="${edge.color}" flood-opacity="${edge.opacity}" />
|
||||
<feComposite in2="core" operator="out" />
|
||||
<feComposite in2="SourceAlpha" operator="in" result="edge" />
|
||||
${light("upper", 1, upperLight)}
|
||||
${light("lower", -1, lowerLight)}
|
||||
<feMerge>
|
||||
${shadow ? '<feMergeNode in="shadow" />' : ""}
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
<feMergeNode in="edge" />
|
||||
<feMergeNode in="upper" />
|
||||
<feMergeNode in="lower" />
|
||||
</feMerge>
|
||||
</filter>`;
|
||||
}
|
||||
|
||||
function litDefs({ tileEdge, markEdge, markShadow }) {
|
||||
const markBody = `
|
||||
<linearGradient id="markBody" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#FFFFFF" />
|
||||
<stop offset="0.4" stop-color="#FFFFFF" />
|
||||
<stop offset="1" stop-color="#D9DFE9" />
|
||||
</linearGradient>`;
|
||||
const tileGlass = glassFilter({
|
||||
id: "tileGlass",
|
||||
edge: tileEdge,
|
||||
edgeWidth: 3,
|
||||
lightWidth: 3.6,
|
||||
upperLight: 0.82,
|
||||
lowerLight: 0.45,
|
||||
});
|
||||
const markGlass = glassFilter({
|
||||
id: "markGlass",
|
||||
edge: markEdge,
|
||||
edgeWidth: 1.2,
|
||||
lightWidth: 1.6,
|
||||
upperLight: 1,
|
||||
lowerLight: 0.6,
|
||||
shadow: { ...markShadow, blur: 9, offset: 8 },
|
||||
});
|
||||
return `${markBody}${tileGlass}${markGlass}`;
|
||||
}
|
||||
|
||||
function brandMark(stroke) {
|
||||
const svg = readFileSync(brandMarkPath, "utf8");
|
||||
const outline = svg.match(/\bd="([^"]+)"/);
|
||||
const strokeWidth = svg.match(/\bstroke-width="([^"]+)"/);
|
||||
if (!outline || !strokeWidth) {
|
||||
throw new Error(`No stroked mark path in ${brandMarkPath}`);
|
||||
}
|
||||
// The path carries its own `fill="none"`: Icon Composer ignores the one on the <svg> element and
|
||||
// draws a hairline from the end of the stroke back to its start.
|
||||
return `<path d="${outline[1]}" fill="none" stroke="${stroke}" stroke-width="${strokeWidth[1]}" stroke-linecap="round" stroke-linejoin="round" />`;
|
||||
}
|
||||
|
||||
function scaledAboutCentre(scale, content) {
|
||||
const centre = TILE / 2;
|
||||
return `<g transform="translate(${centre} ${centre}) scale(${scale}) translate(${-centre} ${-centre})">${content}</g>`;
|
||||
}
|
||||
|
||||
// A square canvas with the 700-unit artwork box centred on it and covering `boxOnCanvas` of its
|
||||
// width.
|
||||
function canvasSvg(boxOnCanvas, content) {
|
||||
const canvasUnits = TILE / boxOnCanvas;
|
||||
const origin = (TILE - canvasUnits) / 2;
|
||||
return [
|
||||
`<svg width="${CANVAS}" height="${CANVAS}" viewBox="${origin} ${origin} ${canvasUnits} ${canvasUnits}" fill="none" xmlns="http://www.w3.org/2000/svg">`,
|
||||
content,
|
||||
"</svg>",
|
||||
].join("\n");
|
||||
}
|
||||
|
||||
// The tile with the mark on it. A masked tile has the continuous corners cut into the artwork. A
|
||||
// square tile is for platforms that apply their own mask.
|
||||
function tileIconSvg({ artwork, finish, tileOnCanvas, corners }) {
|
||||
const look = artwork[finish];
|
||||
const isLit = finish === "lit";
|
||||
const filtered = (id, content) => (isLit ? `<g filter="url(#${id})">${content}</g>` : content);
|
||||
const tile =
|
||||
corners === "continuous" ? `<g clip-path="url(#tile)">${look.surface}</g>` : look.surface;
|
||||
const mark = scaledAboutCentre(MARK_SCALE, brandMark(isLit ? "url(#markBody)" : "#FFFFFF"));
|
||||
return canvasSvg(
|
||||
tileOnCanvas,
|
||||
[
|
||||
`<defs><clipPath id="tile">${TILE_SHAPE}</clipPath>${look.defs}${isLit ? litDefs(look) : ""}</defs>`,
|
||||
filtered("tileGlass", tile),
|
||||
filtered("markGlass", mark),
|
||||
].join("\n"),
|
||||
);
|
||||
}
|
||||
|
||||
// The white mark alone on a transparent canvas, its ink covering `inkOnCanvas` of the width.
|
||||
function markOnlySvg(inkOnCanvas) {
|
||||
return canvasSvg((inkOnCanvas * TILE) / MARK_INK, brandMark("#FFFFFF"));
|
||||
}
|
||||
|
||||
function rasterizer(svg) {
|
||||
const source = Buffer.from(svg);
|
||||
const sized = (size) => sharp(source).resize(size, size);
|
||||
return {
|
||||
png: (size) => sized(size).png({ compressionLevel: 9 }).toBuffer(),
|
||||
opaquePng: (size) => sized(size).removeAlpha().png({ compressionLevel: 9 }).toBuffer(),
|
||||
rgba: (size) => sized(size).ensureAlpha().raw().toBuffer(),
|
||||
};
|
||||
}
|
||||
|
||||
// ICO: a directory of PNG-encoded entries. A size byte of 0 means 256.
|
||||
function encodeIco(entries) {
|
||||
const header = Buffer.alloc(6);
|
||||
header.writeUInt16LE(1, 2);
|
||||
header.writeUInt16LE(entries.length, 4);
|
||||
|
||||
let offset = header.length + entries.length * 16;
|
||||
const directory = entries.map(({ size, png }) => {
|
||||
const entry = Buffer.alloc(16);
|
||||
entry.writeUInt8(size % 256, 0);
|
||||
entry.writeUInt8(size % 256, 1);
|
||||
entry.writeUInt16LE(1, 4);
|
||||
entry.writeUInt16LE(32, 6);
|
||||
entry.writeUInt32LE(png.length, 8);
|
||||
entry.writeUInt32LE(offset, 12);
|
||||
offset += png.length;
|
||||
return entry;
|
||||
});
|
||||
|
||||
return Buffer.concat([header, ...directory, ...entries.map((entry) => entry.png)]);
|
||||
}
|
||||
|
||||
function icnsElement(type, data) {
|
||||
const header = Buffer.alloc(8);
|
||||
header.write(type, 0, "latin1");
|
||||
header.writeUInt32BE(header.length + data.length, 4);
|
||||
return Buffer.concat([header, data]);
|
||||
}
|
||||
|
||||
// The 16 and 32 pixel ICNS slots predate PNG: three run-length-encoded colour planes plus a
|
||||
// separate 8-bit alpha mask. A control byte below 128 copies the next (byte + 1) values, so
|
||||
// literal-only chunks are a valid encoding.
|
||||
function icnsLegacyElements(colorType, maskType, rgba) {
|
||||
const pixels = rgba.length / 4;
|
||||
const chunks = [];
|
||||
for (let channel = 0; channel < 3; channel += 1) {
|
||||
for (let start = 0; start < pixels; start += 128) {
|
||||
const length = Math.min(128, pixels - start);
|
||||
const chunk = Buffer.alloc(length + 1);
|
||||
chunk[0] = length - 1;
|
||||
for (let index = 0; index < length; index += 1) {
|
||||
chunk[index + 1] = rgba[(start + index) * 4 + channel];
|
||||
}
|
||||
chunks.push(chunk);
|
||||
}
|
||||
}
|
||||
const mask = Buffer.alloc(pixels);
|
||||
for (let index = 0; index < pixels; index += 1) {
|
||||
mask[index] = rgba[index * 4 + 3];
|
||||
}
|
||||
return [icnsElement(colorType, Buffer.concat(chunks)), icnsElement(maskType, mask)];
|
||||
}
|
||||
|
||||
async function encodeIcns(icon) {
|
||||
const pngSlots = [
|
||||
["ic07", 128],
|
||||
["ic08", 256],
|
||||
["ic09", 512],
|
||||
["ic10", 1024],
|
||||
["ic11", 32],
|
||||
["ic12", 64],
|
||||
["ic13", 256],
|
||||
["ic14", 512],
|
||||
];
|
||||
const elements = [
|
||||
...icnsLegacyElements("is32", "s8mk", await icon.rgba(16)),
|
||||
...icnsLegacyElements("il32", "l8mk", await icon.rgba(32)),
|
||||
];
|
||||
for (const [type, size] of pngSlots) {
|
||||
elements.push(icnsElement(type, await icon.png(size)));
|
||||
}
|
||||
const body = Buffer.concat(elements);
|
||||
const header = Buffer.alloc(8);
|
||||
header.write("icns", 0, "latin1");
|
||||
header.writeUInt32BE(header.length + body.length, 4);
|
||||
return Buffer.concat([header, body]);
|
||||
}
|
||||
|
||||
// The Icon Composer document macOS 26 and later build the app icon from. The canvas is the whole
|
||||
// tile: macOS adds the mask, the margin, and the lighting. The mark stays opaque so it reads as
|
||||
// solid white on the black tile.
|
||||
function iconComposerFiles() {
|
||||
const layer = "butterfly.svg";
|
||||
const document = {
|
||||
fill: { solid: "srgb:0.00000,0.00000,0.00000,1.00000" },
|
||||
groups: [
|
||||
{
|
||||
layers: [{ "image-name": layer, name: "butterfly" }],
|
||||
shadow: { kind: "neutral", opacity: 0.5 },
|
||||
translucency: { enabled: false, value: 0.5 },
|
||||
},
|
||||
],
|
||||
"supported-platforms": { squares: ["macOS"] },
|
||||
};
|
||||
return [
|
||||
["icon.json", `${JSON.stringify(document, null, 2)}\n`],
|
||||
[`Assets/${layer}`, `${markOnlySvg(MARK_INK_ON_TILE)}\n`],
|
||||
];
|
||||
}
|
||||
|
||||
function write(file, data) {
|
||||
const target = path.join(repoRoot, file);
|
||||
mkdirSync(path.dirname(target), { recursive: true });
|
||||
writeFileSync(target, data);
|
||||
}
|
||||
|
||||
function desktopIcon(artwork, finish, tileOnCanvas) {
|
||||
return rasterizer(tileIconSvg({ artwork, finish, tileOnCanvas, corners: "continuous" }));
|
||||
}
|
||||
|
||||
async function buildDesktopIcons() {
|
||||
const production = desktopIcon(PRODUCTION, "flat", WINDOWS_LINUX_TILE_ON_CANVAS);
|
||||
const assets = "packages/desktop/assets";
|
||||
|
||||
const pngFiles = [
|
||||
["icon.png", 512],
|
||||
["32x32.png", 32],
|
||||
["64x64.png", 64],
|
||||
["128x128.png", 128],
|
||||
["128x128@2x.png", 256],
|
||||
];
|
||||
for (const [file, size] of pngFiles) {
|
||||
write(`${assets}/${file}`, await production.png(size));
|
||||
}
|
||||
|
||||
const icoEntries = [];
|
||||
for (const size of [32, 16, 24, 48, 64, 256]) {
|
||||
icoEntries.push({ size, png: await production.png(size) });
|
||||
}
|
||||
write(`${assets}/icon.ico`, encodeIco(icoEntries));
|
||||
write(
|
||||
`${assets}/icon.icns`,
|
||||
await encodeIcns(desktopIcon(PRODUCTION, "flat", MACOS_TILE_ON_CANVAS)),
|
||||
);
|
||||
for (const [file, content] of iconComposerFiles()) {
|
||||
write(`${assets}/icon.icon/${file}`, content);
|
||||
}
|
||||
write(
|
||||
`${assets}/icon-dev.png`,
|
||||
await desktopIcon(BLUEPRINT, "flat", MACOS_TILE_ON_CANVAS).png(CANVAS),
|
||||
);
|
||||
}
|
||||
|
||||
async function buildMobileIcons() {
|
||||
const flat = (corners) =>
|
||||
rasterizer(tileIconSvg({ artwork: PRODUCTION, finish: "flat", tileOnCanvas: 1, corners }));
|
||||
// iOS masks these itself, and Expo flattens any transparency in the app icon onto white.
|
||||
const square = flat("square");
|
||||
// Shown as supplied, so the corners are part of the artwork.
|
||||
const masked = flat("continuous");
|
||||
const adaptiveForeground = rasterizer(markOnlySvg(ANDROID_ADAPTIVE_VISIBLE * MARK_INK_ON_TILE));
|
||||
const notification = rasterizer(markOnlySvg(NOTIFICATION_MARK_INK));
|
||||
|
||||
write("packages/app/assets/images/icon.png", await square.opaquePng(1024));
|
||||
write("packages/app/public/apple-touch-icon.png", await square.opaquePng(180));
|
||||
write(
|
||||
"packages/app/assets/images/android-icon-foreground.png",
|
||||
await adaptiveForeground.png(1024),
|
||||
);
|
||||
write("packages/app/assets/images/notification-icon.png", await notification.png(96));
|
||||
write("packages/app/assets/images/splash-icon.png", await masked.png(1024));
|
||||
write("packages/app/public/pwa-icon-192.png", await masked.png(192));
|
||||
write("packages/app/public/pwa-icon-512.png", await masked.png(512));
|
||||
write("fastlane/metadata/android/en-US/images/icon.png", await masked.png(512));
|
||||
}
|
||||
|
||||
async function buildLitIcons() {
|
||||
for (const [file, artwork] of [
|
||||
["paseo-lit.png", PRODUCTION],
|
||||
["paseo-dev-lit.png", BLUEPRINT],
|
||||
]) {
|
||||
const icon = desktopIcon(artwork, "lit", MACOS_TILE_ON_CANVAS);
|
||||
write(`assets/brand/app-icons/${file}`, await icon.png(CANVAS));
|
||||
}
|
||||
}
|
||||
|
||||
await buildDesktopIcons();
|
||||
await buildMobileIcons();
|
||||
await buildLitIcons();
|
||||
@@ -15,7 +15,7 @@ Each live agent in `AgentManager` carries a `lastStatus` of `initializing`, `idl
|
||||
## Daemon restart recovery
|
||||
|
||||
Restart recovery is off by default. Enable `agents.resumeOnStartup` in host config or
|
||||
Host settings → Agents to resume interrupted agents after graceful shutdown or a crash. The daemon
|
||||
Settings → Host → Daemon to resume interrupted agents after graceful shutdown or a crash. The daemon
|
||||
reopens the saved provider conversation and settings, then sends `Resume working.`. Customize
|
||||
the prompt with `agents.resumePrompt` or the same settings page.
|
||||
Disabling recovery consumes pending intent; enabling it later does not revive old work.
|
||||
@@ -80,7 +80,9 @@ Provider checks follow the signals their runtimes expose:
|
||||
- Codex queries background terminals for loaded threads, including native children, and protects
|
||||
pending provider requests. App servers without the terminal-list RPC stay resident.
|
||||
- OpenCode checks active executions and descendants. V1 checks PTYs; v2 also checks shell and
|
||||
inbox inventories. The shared server remains leased while a session vetoes collection.
|
||||
inbox inventories. The shared server remains leased while a session vetoes collection. V2 lets
|
||||
another session's execution veto only when releasing the lease would stop the server; the shared
|
||||
server stays up after its last lease goes.
|
||||
- Pi checks streaming, compaction, pending replies, and adapter-owned operations. Known native
|
||||
subagent signals also protect their parent through the daemon's subagent store.
|
||||
- OMP additionally requires `get_state.isSettled: true` and `hasPendingAsyncWork: false`.
|
||||
@@ -152,17 +154,17 @@ Users can also detach an existing subagent from the subagents track. Detach is d
|
||||
|
||||
Agent-originated messages and automatic notifications share a recipient-daemon delivery module. A queued receipt acknowledges admission before provider dispatch. The module keeps one ordered queue per recipient, and the recipient reads its prompts in the order the daemon admitted them. Nothing overtakes an older queued message. A prompt takes its place when the daemon admits it, even while the provider is still starting an earlier turn, and a message stays in the queue until the turn that carries it starts. The turn has started when the agent manager acknowledges the run start; a turn that fails after that point is not delivered again.
|
||||
|
||||
An agent sender picks `queue`, `steer`, or `interrupt` with `activeTurnBehavior`. `steer` and `interrupt` mean what they mean for a person. A person's send has no `queue`. Each kind of prompt is released this way:
|
||||
Any sender picks `queue`, `steer`, or `interrupt` with `activeTurnBehavior`. Agent senders default to `queue`; non-agent senders (app, CLI, plugins, Hub, top-level MCP) default to `interrupt`. Each kind of prompt is released this way:
|
||||
|
||||
- **`queue`** (the agent default) waits. An idle recipient gets the queue after two quiet seconds; steady arrivals cannot hold that window open past ten seconds. While the recipient has a running or starting turn (including compaction), the queue waits and is delivered together when that turn ends on its own or fails. The daemon releases it when it observes the recipient settle; a two-second timer also retries. Finish notifications and change-request updates always queue.
|
||||
- **`queue`** waits for any running or starting turn (including compaction) to end on its own or fail, then delivers the queued prompts together. The daemon releases it when it observes the recipient settle; a two-second timer also retries. On an idle recipient, agent messages wait two quiet seconds (steady arrivals cannot hold that window open past ten seconds); a non-agent queued message skips that quiet window and starts a turn at once. A non-agent queued message is sent unwrapped when dispatched alone, and in a `kind="user-message"` envelope when it shares a prompt with other messages. Finish notifications and change-request updates always queue.
|
||||
- **`steer`** waits for neither the quiet window nor the turn. It is dispatched at admission as one prompt that enters the running turn: the messages queued before it, then the steer. A provider that cannot steer, or that refuses this steer, gets the prompt as a replacing turn instead, the same as a person's steer.
|
||||
- **`interrupt`** is dispatched at admission the same way, as one prompt that replaces the running turn. An older queued message cannot start a turn after the newer `interrupt` that countermands it.
|
||||
- **A person's prompt** (app, CLI, top-level MCP) is dispatched directly with its existing steer or interrupt behavior and takes the queue along the same way: the messages admitted before it first, then the person's text, in one provider prompt. Messages admitted after it follow it. The person's text keeps its own transcript row. When the turn does not start, the messages return to the queue in their place. That covers a start the provider rejects and a start that is not acknowledged within 60 seconds; a provider that starts the turn after those 60 seconds receives the messages twice.
|
||||
- **A person's direct prompt** (`steer` or `interrupt` from app, CLI, plugins, Hub, or top-level MCP) is dispatched directly and takes the queue along the same way: the messages admitted before it first, then the person's text, in one provider prompt. Messages admitted after it follow it. The person's text keeps its own transcript row. When the turn does not start, the messages return to the queue in their place. That covers a start the provider rejects and a start that is not acknowledged within 60 seconds; a provider that starts the turn after those 60 seconds receives the messages twice.
|
||||
- **Stop** (the stop button, Escape, `cancel_agent`, a Hub interrupt) starts nothing. Messages admitted before the Stop are held, not dropped, including an interrupt whose turn had not started yet. They go ahead of the recipient's next prompt, in that prompt's turn: a person's prompt, or an agent message or notification admitted after the Stop. A held steer or interrupt no longer enters the turn; it waits like a queued message. A queue step or dispatch decided before the Stop is void, and the queue is held again when the message that reopened it is withdrawn. A replacing prompt, a reload, and a rewind are not a Stop. Neither is `cancel_agent` on a recipient with no running or starting turn: it stops nothing, reports that it canceled no run, and a queued message keeps its quiet window.
|
||||
|
||||
The queued receipt carries the applied behavior and guidance text for the sender. The text comes from two facts known at admission: whether the recipient has a running turn, and whether its provider can steer (`AgentManager.canSteer`, which is true when the session offers `steerActiveTurn`). It does not wait for the outcome. Guidance for a message queued behind a running turn tells the sender to send a short `steer` or `interrupt` follow-up instead of resending, because the follow-up carries the queued message ahead of it and a resend would be read twice. The MCP tool, the WebSocket `send_agent_message_response`, the CLI, and the connected-host path all relay this one text.
|
||||
|
||||
Older CLIs and connected hosts send an explicit `steer` for every default agent send. The daemon reads an agent sender's `steer` as `queue` unless the client advertises the `agent_active_turn_behaviors` capability. A new client talking to a daemon without `server_info.features.agentActiveTurnBehaviors` sends no behavior for `queue` and refuses a `steer`.
|
||||
Older CLIs and connected hosts send an explicit `steer` for every default agent send. The daemon reads an agent sender's `steer` as `queue` unless the client advertises the `agent_active_turn_behaviors` capability. A new client talking to a daemon without `server_info.features.agentActiveTurnBehaviors` sends no behavior for `queue` and refuses a `steer`. A new client talking to a daemon without `server_info.features.nonAgentMessageQueue` refuses a non-agent `queue` before sending.
|
||||
|
||||
A command the provider accepts out of band is the one exception to admission order: it runs alone without ending the turn. A queued command runs ahead of older messages, and a `steer` or `interrupt` that runs this way takes no queued message along. A person's command leaves the queue where it is. A prompt is a command when it starts with a slash and a name that has no second slash, so `/compact` is one and `/tmp/build.log is stale` is plain text.
|
||||
|
||||
@@ -183,7 +185,7 @@ caller, child, and host into one watch.
|
||||
|
||||
Bootstrap restores these watches after repairing stale running records to `closed` and before opening
|
||||
ingress. Reading a closed child's result does not load its provider. A finish notification reports that
|
||||
the child's run has settled; the parent decides whether its task is complete. A child chosen for restart
|
||||
the child has settled (see below); the parent decides whether its task is complete. A child chosen for restart
|
||||
recovery is observed only after its resume was sent, so the parent never hears that it was closed
|
||||
in between. Archived or deleted parents suppress delivery;
|
||||
parent-owned creation watches also stop
|
||||
@@ -196,6 +198,25 @@ outstanding intent. A crash after successful dispatch but before removal commits
|
||||
notification. Clean shutdown can also flush an already queued callback while retaining its intent,
|
||||
so that callback can repeat after restart. This is an at-least-once wakeup, without turn attribution or exactly-once delivery.
|
||||
|
||||
A turn end is not always a settled child. A child can end its turn with work that will start its next
|
||||
turn by itself: a running turn, queued messages, a pending provider wake-up
|
||||
(`AgentSession.hasPendingWakeup`: Claude background tasks, task notifications, and one-shot
|
||||
wake-ups), or the child's own outstanding finish subscriptions as a caller. Heartbeats, recurring
|
||||
crons, change-request watches, and other daemon background items never count: they are external
|
||||
triggers, not work the caller is waiting for.
|
||||
|
||||
Every turn end reports `finished` at once. When work is still pending, the notice names it and the
|
||||
subscription follows the child: each later turn end reports `finished` again, and the child settling
|
||||
with nothing pending sends a final `finished` and removes the subscription, even when the work
|
||||
drains without another turn. Reporting at once keeps a long-lived task, such as a dev server, from
|
||||
leaving the caller without the child's reply. Following is what lets the caller hear the reply a
|
||||
background task wakes up later ([#6346](https://github.com/getpaseo/paseo/issues/6346)). A work change
|
||||
that leaves work pending sends nothing. Errors, permission requests, and closes report as they
|
||||
happen. `followingSince` is stored when following starts, so a restart keeps following instead of
|
||||
waiting for another turn end. After 24 hours of following, the caller gets a final `finished` with
|
||||
the child's last reply and the subscription ends. Remote children and providers without the probe
|
||||
report their first turn end as a settled `finished`.
|
||||
|
||||
Permission requests are notification checkpoints, not the end of that subscription. The caller is notified again after a permission response when the child finishes, errors, or requests another permission.
|
||||
The permission notification includes the normalized request plus the child and request IDs, so the caller can inspect it and respond without fetching agent status.
|
||||
A watched child that closes before its finish event also notifies the caller so delegated work cannot disappear silently during archive or workspace teardown.
|
||||
|
||||
@@ -133,7 +133,9 @@ A configured URL takes precedence even when unreachable; Paseo reports the conne
|
||||
|
||||
An explicitly configured server needs the bridge installed separately. Connect once and start a session: the setup error gives the local package directory. Copy that directory to the server's OpenCode global `plugins` directory, then retry. For a server on another machine, set `PASEO_OPENCODE_BRIDGE_PORT` in the Paseo OpenCode provider environment before starting Paseo, and set `PASEO_OPENCODE_BRIDGE_URL` to the URL the OpenCode server can use to reach that port. For example, an SSH reverse tunnel can expose the Paseo loopback port on the OpenCode host. The bridge token is exchanged through the OpenCode connection and is not written into the plugin package.
|
||||
|
||||
OpenCode's custom MCP registrations are shared by all sessions in a location. Paseo rejects custom MCP servers and per-agent process environment overrides on a reused server rather than applying them to other sessions or ignoring them. Session identity is applied to each session's shell environment. A Paseo-owned helper supports custom process and MCP settings; it is selected when there is no explicit URL or healthy registered service.
|
||||
Agent MCP servers and per-agent environment work on a reused server with OpenCode 2.0.29 or newer. Paseo connects each agent's MCP servers itself and shows their tools only to that agent and its subagents. Other agents in the same directory and your own OpenCode sessions do not see them. The agent's environment applies to its shell commands, its subagents, and its stdio MCP servers.
|
||||
|
||||
The provider `env` configures the OpenCode process. When it sets variables other than the connection variables above and `XDG_CONFIG_HOME`, `XDG_STATE_HOME`, or `OPENCODE_CONFIG_DIR`, Paseo ignores a registered service and starts its own helper. With an explicit URL, Paseo reports those variables as an error.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -209,7 +209,8 @@ snapshot so a mixed edit can apply its live subset and still name the paths that
|
||||
listen: "127.0.0.1:6767",
|
||||
hostnames: true | string[], // legacy alias `allowedHosts` is migrated on load
|
||||
trustedProxies: true | string[], // defaults to ["loopback"]; Express proxy names/CIDRs
|
||||
mcp: { enabled: boolean, injectIntoAgents: boolean },
|
||||
tools: { enabled: boolean, groups: { orchestration, schedules, changeRequests, browser: boolean } },
|
||||
mcp: { enabled: boolean, injectIntoAgents: boolean }, // legacy, read only when `tools` is absent
|
||||
git: { maxProcessesPerSecond: number, maxProcessConcurrency: number },
|
||||
appendSystemPrompt: string, // appended to supported provider system/developer prompts
|
||||
terminalProfiles: TerminalProfile[], // named shell commands; omitted means DEFAULT_TERMINAL_PROFILES
|
||||
@@ -240,7 +241,8 @@ snapshot so a mixed edit can apply its live subset and still name the paths that
|
||||
// `extends` (one of the built-ins or `"acp"`) and `label`. See `provider-launch-config.ts`.
|
||||
providers: Record<providerId, ProviderOverride>,
|
||||
metadataGeneration: {
|
||||
providers: [{ provider, model?, thinkingOptionId? }]
|
||||
providers: [{ provider, model?, thinkingOptionId? }],
|
||||
instructions?: string
|
||||
}
|
||||
},
|
||||
pluginsEnabled: boolean,
|
||||
@@ -310,16 +312,18 @@ Each entry may include a Paseo-tool policy:
|
||||
Absent `paseoTools`, or absent fields within it, means Paseo tools are enabled and all tools are
|
||||
allowed. `enabled: false` disables the provider's Paseo catalog; `disabledTools` lists exact tool
|
||||
IDs to omit. The policy covers the core and browser catalog, not the voice-only `speak` tool.
|
||||
Browser tools also require `daemon.browserTools.enabled` and a connected browser host.
|
||||
Browser tools also require `daemon.tools.groups.browser` and a connected browser host.
|
||||
This policy controls the catalog presented to an agent. It is not an authorization boundary for
|
||||
agents that can access the host through a shell.
|
||||
|
||||
`daemon.mcp.injectIntoAgents` is the global override. When it is `false`, no provider receives
|
||||
Paseo tools; otherwise the provider policy applies. Provider and global policy are resolved when a
|
||||
`daemon.tools` is the global override. When `enabled` is `false`, no provider receives Paseo or
|
||||
plugin tools; otherwise each group in `daemon.tools.groups` and then the provider policy applies.
|
||||
When `daemon.tools` is absent, the daemon reads the legacy `daemon.mcp.injectIntoAgents` and
|
||||
`daemon.browserTools.enabled` fields. Provider and global policy are resolved when a
|
||||
session is created, resumed, imported, or reloaded, so configuration changes affect the next
|
||||
session rather than an already-running one.
|
||||
|
||||
`agents.metadataGeneration.providers` selects the models for daemon-side metadata tasks: commit messages, PR text, branch names, and generated titles. An empty list is Automatic; a non-empty list is Manual and only those models are tried. See [public-docs/metadata-generation.md](../public-docs/metadata-generation.md#how-a-model-is-chosen).
|
||||
`agents.metadataGeneration.providers` selects the models for daemon-side metadata tasks: commit messages, PR text, branch names, and generated titles. An empty list is Automatic; a non-empty list is Manual and only those models are tried. `agents.metadataGeneration.instructions` adds host-wide guidance to every metadata generation prompt alongside the built-in or per-project style. See [public-docs/metadata-generation.md](../public-docs/metadata-generation.md#how-a-model-is-chosen).
|
||||
|
||||
### Git process limits
|
||||
|
||||
@@ -591,6 +595,11 @@ then retry only when a requested row changes during the read. Unrelated agent st
|
||||
invalidate the read. Directory baseline replacements and host removal or renaming still invalidate
|
||||
the affected reads.
|
||||
|
||||
On web and Electron, tabs share IndexedDB but hold independent directory snapshots in memory. A
|
||||
tab can commit directory deltas only while the persisted checkpoint revision matches the one it
|
||||
read or wrote. If a different tab evicts or rewrites that baseline, the next full directory refresh
|
||||
can replace it. Timeline writes do not depend on the directory checkpoint.
|
||||
|
||||
The cache is capped at 32 MiB and evicts whole hosts in least-recently-written order. After an
|
||||
eviction, only a baseline replacement stores that host's directory again. Mutations queued around
|
||||
the eviction are dropped when they are written, so a checkpoint never outlives its rows. Budget
|
||||
|
||||
@@ -177,7 +177,7 @@ Electron window controls are top-corner obstructions, not a compact-layout condi
|
||||
|
||||
Windows and Linux controls are fixed window chrome, outside scrolling header content. A tab rail that reaches them ends at their obstruction and shows the shared overflow fade. On macOS, the Explorer toggle occupies a fixed top-right window slot so opening and closing Explorer does not move the pointer target.
|
||||
|
||||
Each window edge has one safe-area owner. `WindowLayoutProvider` publishes the bottom inset that every surface reads through `useSafeAreaInsets()`: on iOS 27.1 and later it is UIKit's bottom-bar clearance, which refines the rectangular home-indicator inset to the screen's corners, and elsewhere the system inset. Surfaces apply that value once and never stack their own spacing under it; `WindowLayoutSurface` owns the horizontal insets the same way.
|
||||
Each window edge has one safe-area owner. `WindowLayoutProvider` publishes the bottom inset that every surface reads through `useSafeAreaInsets()`: on iOS 27.1 and later it is UIKit's bottom-bar clearance, which refines the rectangular home-indicator inset to the screen's corners, and elsewhere the system inset. Surfaces apply that value once and never stack their own spacing under it; `WindowLayoutSurface` owns the horizontal insets the same way, and on wide web layouts it also owns the top inset: it pads the status bar of an iOS Home Screen web app once and gives its content a top inset of 0. Content inside the surface that draws against the window instead of the padded content reads the window's insets; see Gotcha 8 in `docs/floating-panels.md`.
|
||||
|
||||
A new list+detail feature copies the settings shell. A new workspace-shaped feature copies the workspace shell. Inventing a third shape happens in design review, not in a PR.
|
||||
|
||||
|
||||
@@ -575,8 +575,9 @@ where the overrides apply; workspace scripts still find the binary through the r
|
||||
|
||||
## Dependency signature audit
|
||||
|
||||
The `quality` CI job runs `npm audit signatures`. It verifies every lockfile package's registry
|
||||
signature and, for packages published with provenance, fetches
|
||||
The [pre-release dependency checks](release.md#pre-release-dependency-checks) include
|
||||
`npm audit signatures`. The command verifies registry signatures and, for packages published
|
||||
with provenance, fetches
|
||||
`/-/npm/v1/attestations/<name>@<version>` from the registry. Cloudflare caches that document
|
||||
for a year. An edge that cached it in the seconds before the registry attached the publish
|
||||
attestation keeps serving a document with only the provenance bundle, and npm fails with:
|
||||
@@ -587,11 +588,10 @@ npm error <name>@<version> has attestations but no corresponding public key(s) c
|
||||
```
|
||||
|
||||
The same package's registry signature verified a moment earlier with the same keys, so the
|
||||
key list is intact. The failure names one package, repeats only for that package, and depends
|
||||
on the Azure region the runner landed in, because each region maps to one Cloudflare colo. A
|
||||
rerun passes only by landing elsewhere.
|
||||
key list is intact. The failure names one package and depends on which Cloudflare edge serves
|
||||
the cached attestation.
|
||||
|
||||
To confirm, fetch the URL from several runners and compare `content-length`, the `cf-ray` colo
|
||||
To confirm, fetch the URL from several regions and compare `content-length`, the `cf-ray` colo
|
||||
suffix, and the number of `attestations` entries (#7730 has the probe). To fix, remove or
|
||||
replace that version in the lockfile. If the dependent’s range cannot be changed, pin a clean
|
||||
version in root `overrides`. Report the URL to npm so they purge it.
|
||||
|
||||
@@ -205,10 +205,9 @@ docker build \
|
||||
.
|
||||
```
|
||||
|
||||
The Docker workflow builds the image on pull requests and on `main` as a
|
||||
non-publishing check. Stable `vX.Y.Z` tag pushes publish
|
||||
`ghcr.io/getpaseo/paseo:X.Y.Z` and `ghcr.io/getpaseo/paseo:latest`. Beta tags
|
||||
publish only the exact prerelease tag, such as
|
||||
The Docker workflow builds the image on `main` as a non-publishing check.
|
||||
Stable `vX.Y.Z` tag pushes publish `ghcr.io/getpaseo/paseo:X.Y.Z` and
|
||||
`ghcr.io/getpaseo/paseo:latest`. Beta tags publish only the exact prerelease tag, such as
|
||||
`ghcr.io/getpaseo/paseo:0.1.102-beta.1`, and do not update `latest`.
|
||||
|
||||
To replace a Docker image in place without rebuilding desktop, APK, or EAS
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
# Drag to reorder
|
||||
|
||||
A list the user can reorder renders through `DraggableList` from `@/components/draggable-list`. Each row puts a `DraggableListHandle` where its grip is drawn. The Usage cards (`packages/app/src/usage/list.tsx`, `packages/app/src/usage/card.tsx`) and the agent profile roster (`packages/app/src/agent-profiles/settings/`) are the reference.
|
||||
|
||||
| Platform | How a drag starts |
|
||||
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| Web | dnd-kit pointer drag. With `useDragHandle`, only the handle starts it, and the handle reorders by keyboard. Without it, the whole row starts it. |
|
||||
| Native | Hold the handle for 180 ms without moving more than 4 px. The list then owns the touch until the finger lifts. |
|
||||
|
||||
## The scroll view must host the drag
|
||||
|
||||
On native, the hold calls `drag()`, which calls `useContentDrag().setActive(true)` from `@/components/ui/content-drag` on the nearest scroll view. That scroll view stops scrolling until the drag ends. If no scroll view up the tree hosts content drags, `setActive` does nothing. The page scroll then takes the touch as soon as the finger moves past the touch slop, before the list's own pan activates. The row never moves, and the page scrolls instead.
|
||||
|
||||
These scroll views host content drags:
|
||||
|
||||
- `ScrollView` from `@/components/ui/scroll-view`, inside and outside a sheet.
|
||||
- `PageLayout`, for a settings page or any other full page.
|
||||
|
||||
If you put a reorderable list in another scroll view, such as a third-party keyboard-aware one, wrap it with `withContentDrag` from `@/components/ui/content-drag`. `packages/app/src/components/page-layout/index.tsx` shows the pattern. A plain `ScrollView` from `react-native` breaks the drag.
|
||||
|
||||
Inside a sheet, the `ScrollView` also registers the drag gesture with the sheet, so the sheet's pan-to-close waits for it.
|
||||
|
||||
## Where the grip goes
|
||||
|
||||
The grip hangs in the row's leading padding, absolutely positioned over the full row height. The row's content keeps the same left rail as rows that cannot be reordered, and the grip does not take a column. On a pointer device the grip shows on hover, focus, or while dragging. On touch and compact layouts it always shows, because there is no hover.
|
||||
|
||||
## Test with a page that scrolls
|
||||
|
||||
A list that fits on the screen does not show the bug, because the page has nothing to scroll. Test on a phone with enough rows that the page scrolls. Then check both directions:
|
||||
|
||||
1. Hold the grip and drag a row past two others. The new order is saved.
|
||||
2. Swipe quickly on a row body. The page scrolls and the order stays the same.
|
||||
|
||||
On an Android emulator, `adb shell input swipe` does not hold still long enough to arm the drag. Send `input motionevent DOWN`, wait 500 ms, then send `MOVE` events and `UP`.
|
||||
@@ -146,6 +146,22 @@ quietly relying on:
|
||||
|
||||
The fix for transforms is Gotcha 3. The fix for context is Gotcha 7.
|
||||
|
||||
### The portal patch
|
||||
|
||||
`patches/@gorhom+portal+1.0.14.patch` moves portal state out of the provider's
|
||||
context value and into a store each `PortalHost` subscribes to. Upstream keeps
|
||||
every host's portals in one context value at the app root, so each portal mount,
|
||||
update and unmount changed that value and React searched every mounted fiber
|
||||
for consumers. That cost grows with the retained panels: a hover card took
|
||||
about 3 ms of it in a fresh window and 16 ms after a few hours. With the store,
|
||||
a portal change renders only its own host.
|
||||
|
||||
Do not put per-overlay state in a context that wraps the app for the same
|
||||
reason. Give the consumers a store to subscribe to.
|
||||
|
||||
The patch also keys each portal in its host (upstream PR #62). Without the key,
|
||||
closing one overlay remounted every later overlay in the same host.
|
||||
|
||||
## Gotcha 3 — Keyboard layout and portal anchors
|
||||
|
||||
`composer/dock` owns the stationary viewport, bottom-anchored surface, composer
|
||||
@@ -443,18 +459,29 @@ Wrapping providers _around_ the modal does nothing. They land on the wrong side.
|
||||
|
||||
## Gotcha 8 — Read safe-area insets where the overlay draws
|
||||
|
||||
A compact sheet tab's body (`SheetBottomInset` in `adaptive-modal-sheet.tsx`) pads the bottom
|
||||
inset and gives its content a bottom inset of 0, so the composer dock sits the same in a sheet as
|
||||
in a tab. An overlay opened from that content and calling `useSafeAreaInsets()` at its call site
|
||||
gets that 0 and draws over the navigation bar.
|
||||
Two containers spend an inset and give their content 0 for that edge:
|
||||
|
||||
- A compact sheet tab's body (`SheetBottomInset` in `adaptive-modal-sheet.tsx`) pads the bottom
|
||||
inset, so the composer dock sits the same in a sheet as in a tab.
|
||||
- `WindowLayoutSurface` on a wide web layout pads the top inset, the status bar of an iOS Home
|
||||
Screen web app (`docs/design.md`, section 9).
|
||||
|
||||
An overlay opened from that content and calling `useSafeAreaInsets()` at its call site gets that 0
|
||||
and draws over the navigation bar or under the status bar. Read the inset where the overlay draws:
|
||||
|
||||
- A Gorhom sheet reads the inset inside its children, which render in the app's sheet host. See
|
||||
`CompactSheetBody`, `MenuSheetScrollView` and `ComboboxSheetFrame`.
|
||||
`SheetVisibleFrame` (used by `CompactSheetBody` and `ComboboxSheetFrame`) and `MenuSheetScrollView`.
|
||||
- An RN `Modal` passes the call site's context straight through, so wrap its content in
|
||||
`WindowSafeArea` from `@/window-layout` and read the inset below that. It provides the insets of
|
||||
the whole window, published by `WindowLayoutProvider`. Do not put a `SafeAreaProvider` inside the
|
||||
modal: on Android it measures the dialog window, whose bottom inset reads 24, then 0, then 24
|
||||
again over the first frames, and everything padded by it jumps. See `attachment-lightbox.tsx`.
|
||||
again over the first frames, and everything padded by it jumps. See `attachment-lightbox.tsx`
|
||||
and the Mermaid fullscreen viewer.
|
||||
- A panel in a `FloatingPanelPortalHost` reads `useSafeAreaInsets()` inside the portal, where it
|
||||
resolves at the host's position (Gotcha 2): the root host sits outside the layout surface and
|
||||
gets the window's inset, a workspace host inside it gets 0. See the autocomplete `PopoverFrame`.
|
||||
- An absolutely positioned view that covers the surface's padding, such as the overlay left
|
||||
sidebar, reads the window's insets with `useWindowSafeAreaInsets()`.
|
||||
|
||||
## Recipe for a new anchored panel
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ Authoritative terminology. UI label wins. Don't invent synonyms; use what's here
|
||||
- **Agent** — See **Agent session**. UI still says "Agent" / "New Agent" in places, but moving toward **Agent session** as the canonical term. Code: `AgentSnapshotPayload` (`packages/protocol/src/messages.ts:608`). Forbidden: "Task", "Job", "Run".
|
||||
- **Daemon** — Local Paseo server process; identified by `serverId`. UI: "Daemon" (system contexts only). Code: `serverId` in `ServerInfoStatusPayloadSchema` (`packages/protocol/src/messages.ts:1936`), `DaemonClient` (`packages/client/src/daemon-client.ts`).
|
||||
- **Host** — Client-side connection profile pointing at a daemon; bundles one or more `HostConnection`s. UI: "Host" / "Add host" / "Switch host". Code: `HostProfile` (`packages/app/src/types/host-connection.ts:37`). Forbidden: "Connection" (means `HostConnection`, not host).
|
||||
- **Device** — A computer or phone running a Paseo client. Open **Devices** in a host’s settings to connect another device.
|
||||
- **Host badge** — The item on a sidebar workspace row's meta row naming which host that workspace lives on. Three things gate it, and they compose as a lattice rather than competing: the sidebar must span more than one host (automatic), **Show → Host** in the sidebar's display preferences must be on (global, all hosts at once), and then that host's own display mode decides _how_ it draws — **Name** / **Icon only** / **Hidden**. Name, color, and display mode are per-host, per-device, and live client-side on `HostProfile.appearance`; nothing about it reaches the daemon. Never add a fourth way to hide it. UI: the "Appearance" group on a host's settings page, and the "Show" submenu in the sidebar's display preferences. Code: `selectHostBadges` (`packages/app/src/hosts/appearance.ts`) takes the first two as its `enabled` input; `WorkspaceMetaRow` (`packages/app/src/components/sidebar/workspace-meta-row/index.tsx`) draws it. Don't confuse with **Status pill**, which reports state rather than identity.
|
||||
- **Project host entry** — One row in a project for a single (project, daemon) pair, aggregating that daemon's workspaces in the project. Internal. Code: `ProjectHostEntry` (`packages/app/src/utils/projects.ts:11`). Don't introduce "Checkout" as a synonym.
|
||||
- **Placement** — One workspace's stable foreign-key relationship to its project plus its git checkout snapshot. Internal. An explicit creation `projectId` is authoritative when active.
|
||||
@@ -33,7 +34,7 @@ Authoritative terminology. UI label wins. Don't invent synonyms; use what's here
|
||||
- **Agent session** — One running instance of an agent inside a workspace (one provider, one model, one cwd, one timeline). The conceptual unit; in the UI this opens as a tab. Moving toward this as the canonical term over "Agent". Code: `AgentSnapshotPayload` (`packages/protocol/src/messages.ts:608`).
|
||||
- **Session** — Two senses: (a) per-client connection to a daemon, internal; (b) user-facing agent session, see **Agent session**. Code: `Session` (`packages/server/src/server/session.ts`) for (a). Don't confuse with: provider-side agent session log.
|
||||
- **Profile** — Internal name for the persisted shape of a host. Code: `HostProfile` (`packages/app/src/types/host-connection.ts:37`). Never user-facing. Three other things are called "profile" in this codebase, so always qualify: **Agent profile**, **Terminal profile**, and the provider aliases in [custom-providers.md](custom-providers.md). Bare "profile" is forbidden in UI copy.
|
||||
- **Agent profile** — A named launch bundle: provider, model, mode, thinking option, feature values, and free-text notes. Applying one writes those values into the **Agent controls** and is then forgotten — there is no selected profile, no default profile, and no drift tracking. The notes are written for orchestrating agents and are what the `list_profiles` MCP tool surfaces. Stored host-wide in daemon config as `agentProfiles`. UI: "Agent profiles". Code: `AgentProfile` (`packages/protocol/src/messages.ts:161`). Carries no system prompt, because a per-agent system prompt can only be set at creation. Forbidden: "Favourite", which this replaced.
|
||||
- **Agent profile** — A named launch bundle: provider, model, mode, thinking option, feature values, optional system prompt, and free-text notes. Applying one writes those values into the **Agent controls** and is then forgotten — there is no selected profile, no default profile, and no drift tracking. The system prompt applies only when creating a new agent and is ignored when applying the profile to a running one. The notes are written for orchestrating agents and are what the `list_profiles` MCP tool surfaces. Stored host-wide in daemon config as `agentProfiles`. UI: "Agent profiles". Code: `AgentProfile` (`packages/protocol/src/agent-profile.ts`). Forbidden: "Favourite", which this replaced.
|
||||
- **Terminal profile** — A named shell command a terminal can launch. Stored host-wide in daemon config as `terminalProfiles`. UI: "Terminal profiles". Code: `TerminalProfile` (`packages/protocol/src/messages.ts:135`), `resolveTerminalProfiles` (`packages/protocol/src/terminal-profiles.ts`). Also selectable as a New Workspace launch target, where the alternative is the chat agent.
|
||||
- **Provider** — Agent backend (Claude Code, Codex, Copilot, OpenCode, Pi, Oh My Pi). UI: "Provider". Code: `ProviderSnapshotEntry` (`packages/protocol/src/messages.ts:198`).
|
||||
- **Hook** — A plugin lifecycle handler registered with `server.addHook`, named `subject.operation.position` with `before` or `after`; each hook declares whether Paseo waits. See [hooks](../public-docs/plugins/hooks.md).
|
||||
|
||||
@@ -72,9 +72,7 @@ hashes, never prompts, environment values, or credentials.
|
||||
|
||||
Before messaging an archived workspace, call `workspace.recovery.inspect.request`, then
|
||||
`workspace.recovery.restore.request` and await success. The native message handler unarchives the
|
||||
agent and loads its persisted provider session. A Hub message is a direct send (no `sourceAgentId`), so
|
||||
`activeTurnBehavior: "steer"` uses the provider's native steering and interrupts the running turn
|
||||
when that provider cannot steer. The daemon rejects `queue` on a direct send.
|
||||
agent and loads its persisted provider session. A Hub message is a direct send (no `sourceAgentId`), so `activeTurnBehavior: "steer"` uses the provider's native steering and interrupts the running turn when that provider cannot steer, and `activeTurnBehavior: "queue"` waits for the running turn to end when the host advertises `server_info.features.nonAgentMessageQueue`.
|
||||
Execution completion and arrival-specific output authority remain Hub responsibilities.
|
||||
|
||||
The older `hub.execution.*` RPCs remain accepted for existing clients. Their execution ownership
|
||||
|
||||
@@ -95,9 +95,9 @@ A focused terminal excludes that binding. The source leaves terminal Escape alon
|
||||
terminal Escape/Ctrl forwarding is a separate feature.
|
||||
|
||||
Terminal arrows never pass through the shortcut pipeline. The Android hardware
|
||||
module claims them while the terminal's hidden input (`nativeID`) owns the focus.
|
||||
`TextInput.onKeyPress` only sees IME keys, and an arrow that falls through moves
|
||||
the hidden caret and desyncs the next text change, so the pipeline cannot own them.
|
||||
module claims them while the terminal's native input (`nativeID`) owns the focus,
|
||||
so Android DPAD focus search cannot move focus away from the terminal view, while
|
||||
leaving active IME composition spans untouched for candidate navigation.
|
||||
|
||||
## Keys shared with text editing
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@ Every block is separated by one gap, `density.blockGap`: 12 on compact layouts,
|
||||
|
||||
Workspace file links use the shared file-link resolver. The workspace supplies its client, root and open-file action once; chat can supply the agent's more specific context. URLs use the same link press path. Recognized inline-code paths stay tappable. The library callback carries the tapped occurrence’s syntax context. Preserve it when opening files: explicit Markdown links decode URL escapes, while recognized inline-code paths preserve literal percent characters and use suffix lookup. Identical URL strings in different occurrences must stay distinct. Explicit absolute workspace links receive a relative hover title; existing authored titles remain intact. Inside a workspace, forge references such as `#12` and `owner/repo#12` are recognized in prose (not code) and open the workspace forge; the reference pattern comes before path recognition so `group/project#12` is not read as a path. See [forge providers](forge-providers.md#gotchas).
|
||||
|
||||
Right-click on web and long press on native open one link menu per rendered part (`components/markdown/link-menu`), not one per link: a menu root cannot sit inside a paragraph without producing invalid markup on web. The native long-press event carries only the URL, with no position and no syntax context. The menu takes the position from the touch that started the press, and treats a URL that is no `](destination)` in the source as recognized text.
|
||||
|
||||
Pass `external` for author-controlled Markdown from outside the host, such as a plugin README. It follows the registry's overview contract in `packages/protocol/src/plugin-overview.ts`, which the website also uses: only absolute https links and images work, and any other destination renders as its label or alt text. The parser still autolinks bare `http://`, `www.` and email text, so a link press checks the URL again and opens only https. None of the workspace recognition above applies, so `Node.js` is prose, not a file. The lines of a paragraph join, as they do on the README's forge.
|
||||
|
||||
Resolve workspace image paths over the existing session RPC, then give the library a cached native file URL or web blob URL. HTTP(S) images pass through unchanged. This preserves relay, SSH and local socket connections, which do not expose a daemon HTTP endpoint. Each mounted renderer owns its image acquisition identity, so a later reply reads a rewritten path again while the earlier mounted reply retains its snapshot. Image taps open the attachment lightbox. File previews resolve relative images against the Markdown file's directory. An image alone on its line becomes its own paragraph before the library sees it, so it renders as a block on every platform; the library only treats sole-child paragraph images as blocks, and with hard soft breaks every newline is a break node, which left own-line images inline on iOS and web. Images that share a line with text stay inline at line height and keep their aspect ratio. A linked image counts as an image, so review-bot badges such as `[](url) Confidence` stay inline on web; the library's web renderer only checked direct paragraph children, so it rendered them as full-width block images (fixed in the fork).
|
||||
@@ -32,10 +34,11 @@ CI does not build native code or run the fork's Robolectric suites. Run `npm run
|
||||
|
||||
Some fork changes are backports. A sync past the upstream version drops them in favour of upstream's code:
|
||||
|
||||
| Fork change | Upstream | Released in |
|
||||
| ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- |
|
||||
| Android measurements survive parent clones | [#924](https://github.com/software-mansion/enriched-markdown/pull/924) | after `1.2.0-nightly-20261019-926ef06f0` |
|
||||
| Android nested list items start their text after their own marker | [#1015](https://github.com/software-mansion/enriched-markdown/pull/1015), [#1023](https://github.com/software-mansion/enriched-markdown/pull/1023) (Android) | `1.2.0` |
|
||||
| Fork change | Upstream | Released in |
|
||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- |
|
||||
| Android measurements survive parent clones | [#924](https://github.com/software-mansion/enriched-markdown/pull/924) | after `1.2.0-nightly-20261019-926ef06f0` |
|
||||
| Android long-press drag selection keeps parent intercept disallowed | [#1012](https://github.com/software-mansion/enriched-markdown/pull/1012) | `1.2.0` |
|
||||
| Android nested list items start their text after their own marker | [#1015](https://github.com/software-mansion/enriched-markdown/pull/1015), [#1023](https://github.com/software-mansion/enriched-markdown/pull/1023) (Android) | `1.2.0` |
|
||||
|
||||
## Engine constraints
|
||||
|
||||
@@ -43,7 +46,11 @@ Math and video are disabled. Task lists and admonitions are enabled; task checkb
|
||||
|
||||
Mermaid fences use the existing isolated diagram runtime and fullscreen viewer. Web dispatches them through the library’s code-block override. Native has no block-renderer hook, so the renderer extracts only Mermaid fences and places the existing WebView host between library-rendered segments. This is the only block exception; see [native selection limitations](native-text-selection.md) for diagram grouping and leading inline images. Streaming keeps the last valid diagram visible while the next revision renders.
|
||||
|
||||
Native code blocks use the library's copy control and compiled grammars. Web code blocks use `HighlightedCodeBlock` through the library's `renderers.codeBlock` override. Selection copy has to tell links Paseo recognized in the text (paths, forge references, code spans) from links in the Markdown, so the web link renderer marks the recognized ones. Plain-text paste carries them as the text the reply showed, and rich paste keeps them as links only when they point to an `http` or `https` URL. Authored links and parser autolinks such as a bare `www.example.com` copy as links. The fork also keeps the library's block spacing around the web code block override, preserves web list numbering and link titles, marks pending parses with `aria-busy` so Find waits for rendered text, and carries link syntax through native and web tap events. Web inline code inside a link inherits only the link colour; its code font, size and background stay intact. Keep link variants colour-only: native pills replace text runs and prevent paths from wrapping; Android pills also use the surrounding block’s font size. [Upstream PR #997](https://github.com/software-mansion/enriched-markdown/pull/997) tracks these changes.
|
||||
Code blocks and plain quotes have a copy control in their top trailing corner. Native code blocks use the library's compiled grammars. On native, the code block and quote container views share one control (`HeaderCopyButton` on Android, `ENRMHeaderCopyButton` on iOS). A quote reserves the code block's header band above its body, so the control never covers quote text at any font size. On web, code blocks use `HighlightedCodeBlock` through the library's `renderers.codeBlock` override, and quotes use `WebBlockquote` through `renderers.blockquote`. Both use `BlockCopyButton`. On compact layouts the control is always visible, so the web quote reserves a band above its body, as native does. On wide layouts the control appears on hover or focus, so the quote keeps a right gutter instead; a band there would leave an empty strip above every quote.
|
||||
|
||||
A quote copies its body without the `>` markers, with its nested Markdown, and reads the content at the time of the press, so a streaming quote copies what it shows. A nested quote or code block keeps its own control. Web quote copy uses the same two clipboard flavors as selection copy: `text/plain` is unescaped Markdown and `text/html` is rendered from escaped Markdown. A rendered Mermaid diagram copies as its fence because its wrapper carries the fence source. Native quote copy serializes the quote's parsed Markdown, so a workspace image copies as its cached file URL, as native selection copy does; native has no map back to the workspace path. A native Mermaid diagram in a quote renders outside it (see [native selection limitations](native-text-selection.md)), so each quote fragment copies only its own text. Admonitions get no control: web renders them with a separate library renderer. On web an admonition inside a copied quote copies as its `> [!TYPE]` source; the fork marks the box and its generated title for this. Selection copy keeps the text it shows, because the cloned range cannot tell a whole callout from part of one. On native, quotes inside list items get no control, because they render as text spans in the item. Web renders them as blocks, so they get one.
|
||||
|
||||
Selection copy has to tell links Paseo recognized in the text (paths, forge references, code spans) from links in the Markdown, so the web link renderer marks the recognized ones. Plain-text paste carries them as the text the reply showed, and rich paste keeps them as links only when they point to an `http` or `https` URL. Authored links and parser autolinks such as a bare `www.example.com` copy as links. The fork also keeps the library's block spacing around the web code block override, preserves web list numbering and link titles, marks pending parses with `aria-busy` so Find waits for rendered text, and carries link syntax through native and web tap events. Web inline code inside a link inherits only the link colour; its code font, size and background stay intact. Keep link variants colour-only: native pills replace text runs and prevent paths from wrapping; Android pills also use the surrounding block’s font size. [Upstream PR #997](https://github.com/software-mansion/enriched-markdown/pull/997) tracks these changes.
|
||||
|
||||
The fork also keeps overflowing native horizontal blocks in control of their drags: Android claims parent interception at touch-down and releases it for vertical drags so the chat list can scroll; iOS keeps its scroll recognizer active for outward drags at the leading edge. This prevents compact sidebar pans from taking block scrolling without changing sidebar swipes on prose or non-overflowing blocks. Native changes require a client rebuild.
|
||||
|
||||
@@ -55,4 +62,4 @@ The library determines how incomplete Markdown appears during streaming. Complet
|
||||
|
||||
## Verification
|
||||
|
||||
Follow [QA](qa.md) and [mobile testing](mobile-testing.md). Exercise chat, file preview, plan and PR content on all three platforms. Include cross-paragraph selection, progressive streaming, a file-link tap, code copy/highlighting, a table and a workspace image. On iPad, repeat preview selection after opening and closing Explorer and after rotation. Check web find, selection-copy and source-message navigation after DOM changes.
|
||||
Follow [QA](qa.md) and [mobile testing](mobile-testing.md). Exercise chat, file preview, plan and PR content on all three platforms. Include cross-paragraph selection, progressive streaming, a file-link tap, code copy/highlighting, quote copy (nested quote, code block in a quote, admonition, large font on native), a table and a workspace image. On iPad, repeat preview selection after opening and closing Explorer and after rotation. Check web find, selection-copy and source-message navigation after DOM changes.
|
||||
|
||||
@@ -10,10 +10,20 @@ Agent payloads name a host and agent. Ignore their workspace hint when opening:
|
||||
the agent can move after a notification is sent. Use `navigateToAgent`, which
|
||||
uses the current store record or the agent route to resolve the workspace from
|
||||
the host. Terminal payloads name their workspace and use `navigateToWorkspace`.
|
||||
Plugin payloads carry `kind: "plugin"`, `serverId`, `pluginId`, `notificationId`,
|
||||
and optional `open` and `data`; `openPluginNotification` in
|
||||
`packages/app/src/plugins/notification-open.ts` waits up to 8 seconds for the
|
||||
target host's plugin catalog to settle on cold launch, runs registered
|
||||
`client.onNotificationOpen` handlers with caught error isolation, and falls back
|
||||
to declarative `open` (`agent`, `workspace`, `screen`) or the host root route.
|
||||
|
||||
See [agent targets and deferred opens](expo-router.md#agent-targets) for route
|
||||
ownership and workspace recovery. Notification generation, presence, and push
|
||||
eligibility remain daemon concerns.
|
||||
ownership and workspace recovery. Per-device two-knob notification preferences
|
||||
(`@getpaseo/protocol/notification-preferences`) sync with mobile push tokens via
|
||||
`register_push_token` (gated on `server_info.features.pushNotificationPreferences`)
|
||||
so the daemon filters Expo pushes per token, while desktop and web clients filter
|
||||
in-app OS notifications locally before calling `sendOsNotification`. Notification
|
||||
generation and presence remain daemon concerns.
|
||||
|
||||
## Native delivery
|
||||
|
||||
@@ -53,6 +63,8 @@ An arbitrary Activity launch with data extras does not exercise Expo's FCM path.
|
||||
Foreground pushes remain in Notification Center without a banner or sound.
|
||||
This preserves notifications sent with stale presence information.
|
||||
|
||||
Native clients have no DOM events, so presence comes from `@/hooks/native-user-activity`: touches on the root `GestureHandlerRootView` and edits in the native `EditingTextInput` refresh `lastActivityAt`. Touches inside a native `Modal` open a separate window and do not reach the root.
|
||||
|
||||
## Startup and verification
|
||||
|
||||
Wait for the root navigator, host registry, remembered selection, and startup
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Plugins
|
||||
|
||||
Local plugins contribute daemon RPCs, native app surfaces, workspace panels, Command Center items,
|
||||
client slash commands, timeline items, header buttons, composer pills, app themes, composer attachment sources, and settings screens.
|
||||
client slash commands, timeline items, notifications, header buttons, composer pills, app themes, composer attachment sources, and settings screens.
|
||||
Paseo executes `index.server.ts` in a subprocess and `index.client.tsx` in every connected app.
|
||||
|
||||
> **Trust every plugin you add.** `paseo plugin add` and `paseo plugin install` mean “I trust this codebase.” Plugins are unsandboxed: server code and preparation commands run with the daemon user's access on the daemon host, and client contributions run inside Paseo. The repository's dependencies and future updates are part of that trust decision. With `--host`, preparation runs on that remote daemon host.
|
||||
@@ -103,6 +103,13 @@ The `worktree-include` built-in copies gitignored files selected by
|
||||
[`.worktreeinclude`](../public-docs/worktrees.md#copy-local-files-with-worktreeinclude)
|
||||
before setup and agents, through `worktree.create.after`.
|
||||
|
||||
The `cloudflared-tunnel` and `tailscale-funnel` built-ins register tunnel providers through
|
||||
`server.registerTunnelProvider()`. Both start without installed binaries or credentials and report
|
||||
availability through `status()`. `cloudflared-tunnel` runs quick tunnels only, with `--url` set to
|
||||
the exposure target. Named Cloudflare tunnels are not supported: the Cloudflare dashboard sets
|
||||
their routing, so their URL does not serve the exposure target. `tailscale-funnel` runs `tailscale funnel` in the foreground: with
|
||||
`--bg`, tailscaled keeps the Funnel public after a crash with no owner.
|
||||
|
||||
Desktop packaging ships the entire built-in plugin directory as an external resource,
|
||||
including declarations. The external esbuild compiler cannot read Electron's `app.asar`
|
||||
filesystem, and packaging dependencies excludes `.d.ts` files needed for import validation.
|
||||
@@ -462,8 +469,55 @@ Server entries register async handlers with `server.addHook(name, handler)`, ret
|
||||
function. Names follow `subject.operation.position`, ending in `before` or `after`. Waiting is a per-hook
|
||||
registry property, independent of position. The [hooks reference](../public-docs/plugins/hooks.md)
|
||||
owns payloads, ordering, failure behavior, and examples. `agent.create.before` edits saved
|
||||
configuration; `agent.open.before` contributes launch-only `env`, `tools`, and `mcpServers` on
|
||||
every open. Executable tool definitions stay in the plugin process; only metadata crosses the boundary.
|
||||
configuration; `agent.open.before` contributes launch-only `env`, `tools`, `mcpServers`, and a
|
||||
[launch wrap](#launch-wrap) on every open. Executable tool definitions stay in the plugin process; only metadata crosses the boundary.
|
||||
`packages/server/src/server/plugins/session-attachments.ts` records what each plugin contributed to
|
||||
each live session. A plugin start, stop, or reload reruns only that plugin's callback per session,
|
||||
swaps its tools in place, and reopens a session only when its launch would differ. A reopen closes
|
||||
the provider process, so a reload must not reopen agents the plugin does not change.
|
||||
|
||||
### Launch wrap
|
||||
|
||||
An `agent.open.before` result can carry `wrap: [executable, ...args]`. The provider then starts that
|
||||
session's harness as `[...wrap, command, ...args]` with the final hook env. It starts with no shell,
|
||||
except Windows script launchers, which go through cmd.exe like any provider launcher
|
||||
(`spawnProcess` quotes each argument). An argument with spaces stays one element. `executable` must
|
||||
be an absolute path.
|
||||
The wrap is never saved on the agent; every open asks the hooks again, and a plugin session reopen
|
||||
reuses the wrap it opened with.
|
||||
|
||||
- **Support is a provider property.** The provider snapshot entry carries `launchWrap: true` when the
|
||||
provider can apply a wrap. Read it in `agent.create.before` with `paseo.providers.snapshot()`; an
|
||||
absent field means unsupported, which is also what a host without this feature reports. Core
|
||||
providers declare it in the provider contract table in `provider-registry.ts`; every core provider
|
||||
that starts a local harness declares it, and custom ACP providers and providers that extend a core
|
||||
one inherit it. A plugin provider declares `ProviderRegistration.launchWrap`;
|
||||
`runAcpProvider({ command })` sets it, a connector declares it itself (Muse Code does). The declaration travels with the
|
||||
registration metadata, so it is in the snapshot before the provider first connects.
|
||||
- **One wrap per open.** A later hook, in the same plugin or a later one, may omit the wrap or return
|
||||
the same value. A different value fails the open.
|
||||
- **Fail closed.** `buildLaunchContext` admits a wrapped open before any session harness starts. It
|
||||
throws `LaunchWrapUnsupportedError` (`code: "launch_wrap_unsupported"`) when the provider does not
|
||||
declare support, or when a plugin provider's live connection lacks `session.launch_wrap`. A host
|
||||
that predates `wrap` rejects the key: the hook result schema is strict. A missing launcher fails the
|
||||
spawn; nothing retries the bare command.
|
||||
|
||||
Once an open selects a wrap, a supported provider runs that session's harness through it or fails
|
||||
before starting the harness. Every provider starts through `spawnProcess({ wrap })`, which owns the
|
||||
argv and Windows launcher handling; `applyLaunchWrap` covers the launches that do not go through it
|
||||
(pty terminals, MCP stdio transports, worktree commands). The wrap also covers what Paseo starts for
|
||||
the session: stdio MCP servers Paseo hosts for the agent (OMP, OpenCode v2), Pi's MCP probe, and ACP
|
||||
client terminals. OpenCode shares one server between sessions, so a wrapped session gets a dedicated
|
||||
server instead; an explicitly configured external OpenCode server cannot be wrapped and the open
|
||||
fails. The guarantee does not cover:
|
||||
|
||||
1. Paseo's host terminal tools (`create_terminal`, `send_terminal_keys`) run outside the wrap.
|
||||
2. Work before the open hook runs unwrapped: draft command and control discovery, and the catalog
|
||||
lookup during create when no model is set.
|
||||
3. Host-side operations run unwrapped: availability and capability probes (the ACP connection's
|
||||
initialize probe included), catalog and session listing, version and update commands, usage
|
||||
queries, and Codex native archive and unarchive.
|
||||
4. Losing the plugin that chose the wrap is not covered: a later open without it runs unwrapped.
|
||||
|
||||
Worktree placement is resolved before Git source planning, so a hook can change the branch and base
|
||||
without undoing fetched refs. Restores use the recorded destination and bypass creation hooks.
|
||||
@@ -483,6 +537,17 @@ change requests; `remove` and `restore` fall back to built-in Git when the plugi
|
||||
[worktree managers reference](../public-docs/plugins/reference.md#worktree-managers) and
|
||||
`plugin-examples/worktrunk`.
|
||||
|
||||
`terminal.create.before` runs in `withTerminalCreateHook`, which wraps the daemon's one terminal manager, so every creation path is covered and adopted terminals are not; callers pass an `origin` to name the source. `command.run.before` runs inside the setup and teardown runners through `commandRunHook`. Setup and archive dependencies take `lifecycle` as a required field so a new caller cannot skip the hook by omission; pass `null` only where no plugins run.
|
||||
|
||||
Both hooks change only `env` and a [launch wrap](#launch-wrap); `keepSelectedWrap` in the lifecycle
|
||||
module applies the one-wrap rule to all three wrap hooks. The terminal wrap becomes the terminal's
|
||||
`command` and `args` in `withTerminalCreateHook`, so the terminal worker protocol does not change and
|
||||
no previous-version adapter is needed. A default-shell terminal resolves the shell there through
|
||||
`default-terminal-shell.ts`, which stays apart from `terminal.ts` so the daemon does not load node-pty.
|
||||
The wrapped shell starts without Paseo's shell integration, which is why a wrapped script does not
|
||||
report command completion. A setup or teardown wrap goes in front of the
|
||||
`buildStringCommandShellInvocation` argv.
|
||||
|
||||
Emit from the operation owner, not a client subscription. Provider history replay must not trigger
|
||||
live hooks. Notifications must not be awaited inside agent mutations: a handler can send a prompt
|
||||
or answer a permission through its own daemon session. Awaiting it there deadlocks that command.
|
||||
@@ -491,6 +556,26 @@ The same holds for a hook that runs inside an agent's lifecycle lane: an `agent.
|
||||
an option, model, thinking or mode change) waits on the open, which waits on the hook. The hooks
|
||||
reference tells plugin authors to start such a write without awaiting it.
|
||||
|
||||
## Send notifications
|
||||
|
||||
Server plugins call `server.notifications.send(input)` over the `notification.send` /
|
||||
`notification.result` / `notification.error` IPC messages. `PluginNotificationDispatcher` in
|
||||
`packages/server/src/server/plugins/notifications.ts` trims and truncates `title` (<= 160 chars)
|
||||
and `body` (<= 500 chars), validates `key` (<= 128 chars), `open` (IDs <= 256 chars, serialized
|
||||
<= 1,024 UTF-8 bytes), and `data` (<= 1,024 UTF-8 bytes so APNs and FCM envelopes stay within
|
||||
4 KiB), drops duplicate `(pluginId, key)` pairs for 60 seconds, and enforces a per-plugin token
|
||||
bucket (burst 10, refill 1 per 6 seconds). Stopping a plugin clears its deduplication and
|
||||
rate-limit state.
|
||||
|
||||
`WebSocketServer.sendPluginNotification` stamps the runtime `pluginId`, `serverId`, and
|
||||
`notificationId`, runs `computeNotificationPlan` (using `open.agentId` as the focus target when
|
||||
`open.type === "agent"`), filters Expo pushes per token with `{ kind: "plugin", pluginId }`, and
|
||||
publishes `plugin.notification` to sessions subscribed to that event category. Clients gate their
|
||||
`"plugin.notification"` subscription on `server_info.features.pluginNotifications` (`COMPAT(pluginNotifications)`).
|
||||
See [notifications.md](notifications.md) for tap routing and cold-launch catalog readiness, and the
|
||||
[public notifications reference](../public-docs/plugins/reference.md#notifications) for the author
|
||||
contract.
|
||||
|
||||
## Contribute a provider
|
||||
|
||||
Register a provider from `index.server.ts`. The provider connection is callback-based and owns all
|
||||
@@ -582,6 +667,10 @@ persistence. Re-read credentials and provider-owned configuration on `session.op
|
||||
daemon launch from `connect` and the per-session env and MCP servers from `session.open`. There is
|
||||
no provider reload input.
|
||||
|
||||
Declare `ProviderRegistration.launchWrap: true` when every session spawns its own harness and can
|
||||
run it as `[...config.wrap, command, ...args]`; offer `session.launch_wrap` on the connection. See
|
||||
[Launch wrap](#launch-wrap). `runAcpProvider({ command })` does both.
|
||||
|
||||
For an ACP command, register `runAcpProvider({ id, label, command })` from
|
||||
`@getpaseo/plugin/server/acp`. The shim builds the standard row for each ACP tool `kind`
|
||||
(`acp-internal/tool-call-detail.ts`). Its transformer hooks cover narrow vendor differences; do not translate the
|
||||
@@ -883,6 +972,17 @@ its Zod schema, and mounts the component inside the normal plugin runtime and er
|
||||
optional output `id` distinguishes several stable replacements from the same source item; its output
|
||||
index is the default.
|
||||
|
||||
Each replacement keeps a reference to the source row (`source` on the projected stream item), and
|
||||
turn logic reads a replaced reply through it. A reply split into several cards stays one reply: turn
|
||||
folding keeps every card visible, and the turn footer hangs under the last card, copies the original
|
||||
reply text once, forks at its message, and shows its duration and stats. Read the reply with
|
||||
`getAssistantReply` (`packages/app/src/types/stream.ts`) instead of checking `kind ===
|
||||
"assistant_message"`.
|
||||
|
||||
A provider-only fact about a tool call goes in the item's `metadata`, which transformers already
|
||||
receive. Do not add a shared tool-call field for it. OMP's intent string is
|
||||
[`metadata.intent`](../public-docs/plugins/reference.md#timeline-items).
|
||||
|
||||
Transformers run synchronously and must be deterministic. When several transformers match, the
|
||||
first one that returns a result owns that source item. Plugin and registration ordering is stable.
|
||||
See `plugin-examples/timeline-items` for the complete contract.
|
||||
|
||||
@@ -21,7 +21,7 @@ The protocol package owns generation.
|
||||
- `packages/protocol/src/validation/ws-outbound-envelope.ts` defines the tag-only envelope schema and exposes the session message schemas that get their own validators.
|
||||
- `packages/protocol/scripts/generate-validation-aot.mjs` writes the zod-aot discovery entry and the runtime schema metadata, runs the exact-pinned compiler, and applies the small local compiler patches before generation. It also emits the `type` → validator map the boundary dispatches through.
|
||||
- `packages/protocol/scripts/watch-validation-aot.mjs` reruns generation while editing protocol sources.
|
||||
- `packages/protocol/codegen/generated/ws-outbound.compile.ts`, `packages/protocol/src/generated/validation/ws-outbound.aot.ts`, and `packages/protocol/src/generated/validation/ws-outbound-schema-metadata.ts` are generated and gitignored. The metadata module lets generated code reach schema fallback/default values.
|
||||
- `packages/protocol/codegen/generated/ws-outbound.compile.ts`, `packages/protocol/src/generated/validation/ws-outbound.aot.ts`, `packages/protocol/src/generated/validation/ws-outbound-schema-metadata.ts`, and `packages/protocol/src/generated/validation/message-defaults.ts` are generated and gitignored. The metadata module lets generated code reach schema fallback/default values, and `message-defaults.ts` lets zero-Zod clients (`packages/protocol/src/validation/message-defaults.ts`) apply every schema `.default()` without loading Zod or `ws-outbound.aot.ts`.
|
||||
|
||||
Generation runs from protocol-owned lifecycle hooks: `prebuild`, `pretypecheck`, `pretest`, and `watch`. Installs do not run generation: published packages consume protocol from prebuilt `dist`, and local build/typecheck/test flows generate the source file at the point it is actually needed.
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ V2.0.4 also removed the activation endpoint that gated a cold location, and a co
|
||||
|
||||
Paseo installs its OpenCode tool bridge through `OPENCODE_CONFIG_CONTENT`. V1 accepts a plugin file; v2 silently skips configured files and requires a package directory with a server entry point. Both versions use the daemon's private loopback bridge for caller-scoped tools. The global manifest must use agent-scoped schemas before a session is bound, because every bridge call executes in an agent session. V2 discovers definitions from each bound session's catalog: plugin-contributed tools can be absent from the global manifest, and an allowlist cannot register a missing definition. Registration is location-wide, so session filtering and caller-scoped execution must remain in place. Bridge context lives only in daemon memory and is removed when the Paseo session closes. The content-addressed plugin artifacts contain no session data or secrets. V2 also needs this plugin when native Paseo tools are disabled: its prompt API has no structured-output format, so the plugin supplies a schema-validated final-answer tool.
|
||||
|
||||
An agent with custom environment variables or user-configured MCP servers gets a dedicated OpenCode server. V2 supports session environment, but its MCP configuration remains location-scoped, so separate servers still prevent one agent from changing another agent's MCP setup. Configure custom MCP with `mcp.add`; do not follow it with `mcp.connect`, which only toggles config-backed servers.
|
||||
No v2 agent gets a dedicated OpenCode server, because a reused server cannot provide one. OpenCode's MCP configuration is location-scoped, so Paseo never calls `mcp.add` for an agent. The daemon connects the agent's MCP servers itself (`v2/session-mcp.ts`), and the v2 plugin exposes their tools under OpenCode's native `<server>_<tool>` names. Each name registers once per location. The plugin's `context` hook gives each session its own definition and removes the tool from other sessions. If the user's own OpenCode configuration registered a tool with the same name first, other sessions keep that tool and its execution. Execution routes to the calling session's root binding. The hook also adds the servers' instructions to each request. OpenCode loads instruction entries before the hook runs, so an entry written when a child is adopted would miss the child's first request. The plugin calls OpenCode's `permission.assert` before each call, so `toolPolicy.preapproved` grants still apply. That API exists from OpenCode 2.0.29. Bind reports `features.mcpTools`, so an older server or a stale plugin fails the session at creation instead of hiding its tools. Per-agent `launch.env` reaches shells through `session.environment`, which child sessions do not inherit. The plugin asks the daemon to adopt each descendant in its first `context` hook, before its first model request.
|
||||
|
||||
OpenCode owns user message IDs. Do not pass Paseo-generated IDs to OpenCode prompt APIs; let OpenCode create `msg*` IDs and record the user timeline item from the `message.updated` event.
|
||||
|
||||
@@ -225,7 +225,10 @@ aborts the shared refresh signal at the deadline, and when it stops. Shutdown wa
|
||||
probes to settle before it shuts down provider clients, so a probe cannot start provider work,
|
||||
such as an OpenCode server, after its client has cleaned up. Providers name active catalog operations and
|
||||
finish subprocess, server, or session cleanup before rejecting. Timeout errors list the operations
|
||||
that were still active when the deadline expired.
|
||||
that were still active when the deadline expired. A plugin provider's connection is shared with its
|
||||
running sessions, so the bridge cannot close it at the deadline; it sends `request.cancel` for the
|
||||
abandoned request instead, and the provider stops that request's work
|
||||
([provider guide](../public-docs/plugins/providers.md#stop-a-request-paseo-cancels)).
|
||||
|
||||
Catalogue results stay cached by identity until a refresh or a change to that provider's configuration.
|
||||
Providers change their model lists on the server without a CLI update, so the daemon refreshes
|
||||
@@ -337,6 +340,9 @@ See the [public usage source reference](../public-docs/plugins/reference.md#usag
|
||||
contract, account and window identity, provider-derived period names, login fallback, and
|
||||
read-only credential rules. Usage adapters own the interpretation of provider fields; the app
|
||||
renders their names and resolves pins without provider-specific duration guesses.
|
||||
Claude's OAuth usage endpoint is undocumented. Extra-usage amounts are reported in minor currency
|
||||
units and displayed only for USD; the balance contract does not represent other currencies.
|
||||
Codex individual spending limits provide percentages, not dollar amounts.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -4,28 +4,41 @@ All workspaces share one version and release together.
|
||||
|
||||
## Two steps
|
||||
|
||||
A release has exactly two steps. The agent does the first, the user authorizes the second.
|
||||
A release has two steps. The agent runs Preparation before approval, and the user authorizes Ship.
|
||||
|
||||
**Preparation** (reversible — agent does this on the release branch):
|
||||
### Preparation
|
||||
|
||||
- resolve the [release base](#release-base-and-source) and get the [release inventory](#release-inventory) approved when one applies
|
||||
- classify the diff from the previous stable to the release source as patch or minor, then show the
|
||||
target version and rationale to the user
|
||||
- draft `CHANGELOG.md` and `CHANGELOG.zh-CN.md`, show the draft to the user, and wait for review
|
||||
- run the pre-release sanity check (stable only) and surface findings to the user
|
||||
- commit the approved changelog and any requested ACP update, run format, lint, and typecheck, then
|
||||
run `npm run release:prep:<mode>` to create the `chore(release): cut <version>` commit without a tag
|
||||
- push the `release/vX.Y.Z` or `release/vX.Y.Z-beta.N` branch and confirm its `CI` and
|
||||
`Desktop Packages` runs pass (never wait on `main` CI)
|
||||
Preparation is reversible and runs on the release branch before the user authorizes shipping.
|
||||
|
||||
**Go-ahead** (user says "go ahead"):
|
||||
1. Resolve the [release base](#release-base-and-source) and get the [release inventory](#release-inventory) approved when one applies.
|
||||
2. Classify the diff from the previous stable release to the release source as patch or minor, then show the target version and rationale to the user.
|
||||
3. Draft `CHANGELOG.md` and `CHANGELOG.zh-CN.md`, show the draft to the user, and wait for approval.
|
||||
4. Run the [pre-release sanity check](#pre-release-sanity-check) for stable releases, and report any findings to the user.
|
||||
5. Commit the approved changelog and any requested ACP update, then run `npm run format`, `npm run lint`, and `npm run typecheck`.
|
||||
6. Run `npm run release:prep:<mode>` to create the `chore(release): cut <version>` commit without a tag.
|
||||
7. Push `release/vX.Y.Z` or `release/vX.Y.Z-beta.N` and wait for `CI` and `Desktop Packages` on that branch to pass (never wait on `main` CI).
|
||||
8. Run the [pre-release dependency checks](#pre-release-dependency-checks) on the release commit.
|
||||
|
||||
- run `npm run release:ship` (stable) or `npm run release:ship:beta` (beta), which publishes npm
|
||||
with retry and registry visibility checks, advances the `beta` dist-tag on stable when newer, and
|
||||
pushes the tag on the already-verified commit
|
||||
- create the release heartbeat immediately and babysit it to completion
|
||||
- open the [reconcile `main`](#reconcile-main) PR right away so its CI runs in parallel with release
|
||||
builds, then delete the remote release branch once the PR merges
|
||||
### Ship
|
||||
|
||||
Ship starts after the user says "go ahead". All tag-triggered GitHub Actions workflows and EAS workflows build from the checked-out tag commit with local workspace packages, so none of them install `@getpaseo/*` from the public npm registry.
|
||||
|
||||
1. Run `npm run release:push` first to verify the clean release branch and push `vX.Y.Z` or `vX.Y.Z-beta.N`. Pushing the tag takes a few seconds and starts `Desktop Release`, `Android APK Release`, `Docker`, `Release Notes Sync`, and (for stable tags) `Deploy App` on GitHub Actions, plus `Release Mobile` (stable) or `Release iOS Beta` (beta) on EAS. (`Deploy Website` runs later on the `release: published` event when `Desktop Release` publishes the stable GitHub Release.)
|
||||
2. Run `npm run release:publish` (stable) or `npm run release:publish:beta` (beta) in parallel with the remote builds. `scripts/publish-release-packages.mjs` publishes the seven `@getpaseo/*` packages in dependency waves and polls npm visibility between packages to avoid `E409` or `E404` propagation races.
|
||||
3. Open the [reconcile `main`](#reconcile-main) PR from `reconcile/vX.Y.Z` or `reconcile/vX.Y.Z-beta.N` right after `npm run release:push` finishes, so its CI run overlaps with npm publication and the release builds.
|
||||
4. Create the release heartbeat immediately with `create_heartbeat` to track every ship step to completion.
|
||||
|
||||
### Sync gates
|
||||
|
||||
Wait until every gate below passes before deleting the remote release branch or reporting the release as shipped:
|
||||
|
||||
- All seven `@getpaseo/*` npm packages are visible on `latest` (stable) or `beta` (beta), and on stable the `beta` dist-tag points to the shipped version unless an active newer beta exists.
|
||||
- All tag-triggered GitHub Actions workflows are green (`Desktop Release`, `Android APK Release`, `Docker`, `Release Notes Sync`, and `Deploy App` for stable), and `Deploy Website` ran after stable publication.
|
||||
- The GitHub Release is published and non-draft (marked prerelease for beta) with the synced changelog body, all macOS, Linux, and Windows assets, the Android APK asset, and all three channel manifests (`latest-mac.yml`, `latest-linux.yml`, `latest.yml` for stable; `beta-mac.yml`, `beta-linux.yml`, `beta.yml` for beta).
|
||||
- The matching EAS workflow is green (`Release Mobile` with all six build, distribution, screenshot, and review-submission jobs for stable; `Release iOS Beta` for beta).
|
||||
- The reconcile PR is merged into `main`.
|
||||
|
||||
Once all sync gates pass, delete the remote release branch (`git push origin --delete release/vX.Y.Z` or `release/vX.Y.Z-beta.N`), delete the heartbeat, and report the release as shipped.
|
||||
|
||||
Rules that apply to both steps:
|
||||
|
||||
@@ -47,7 +60,7 @@ the shipped source.
|
||||
The user decides when the changes on `main` warrant a release and how much risk it takes:
|
||||
|
||||
1. **Direct stable release** for a low-risk batch of polish and bug fixes. Stable desktop updates
|
||||
already ramp over 36 hours (see [Staged rollout](#staged-rollout-stable-channel)), and store
|
||||
start with a 5% canary and ramp over 18 hours (see [Staged rollout](#staged-rollout-stable-channel)), and store
|
||||
review often takes about a day, with no guaranteed timing.
|
||||
2. **Beta flow**, the default for changes that need testing. Release candidates on the `beta`
|
||||
channel. Each beta folds into the series' single changelog entry, publishes npm only on the
|
||||
@@ -105,28 +118,34 @@ An explicit user instruction can select another base.
|
||||
`chore(release): cut <version>` without a tag.
|
||||
5. Push the release branch (`git push -u origin HEAD`). Pushing any `release/**` branch triggers
|
||||
`CI` (all 21 jobs) and `Desktop Packages` (Linux user-namespace smoke) in their own concurrency
|
||||
groups, isolated from `main` traffic. Never wait on `main` CI, because `main` cancels in-progress
|
||||
runs on every merge. Wait for both runs on the release branch commit to pass before shipping.
|
||||
groups, isolated from `main` traffic. Never wait on `main` CI, because `main` runs queue behind
|
||||
each other and a newer merge replaces the pending one.
|
||||
Wait for both runs on the release branch commit to pass before shipping.
|
||||
Complete the [pre-release dependency checks](#pre-release-dependency-checks) on that commit.
|
||||
Pushing a `release/**` branch without a `v*` tag triggers no publish workflows.
|
||||
6. After go-ahead, run `npm run release:ship` (stable) or `npm run release:ship:beta` (beta). This
|
||||
publishes to npm and pushes the `v*` tag on the already-verified commit. Because the release
|
||||
branch is already pushed at `HEAD`, no second CI run starts and only the tag release workflows
|
||||
run.
|
||||
7. Start [Reconcile `main`](#reconcile-main) immediately so its PR checks overlap with desktop and
|
||||
EAS builds.
|
||||
6. After go-ahead, push the tag first with `npm run release:push` so remote builds start right away.
|
||||
Because the release branch is already pushed at `HEAD`, no second branch CI run starts, and only
|
||||
the tag release workflows run.
|
||||
7. Immediately in parallel after `npm run release:push` finishes: publish npm packages with
|
||||
`npm run release:publish` (stable) or `npm run release:publish:beta` (beta), start
|
||||
[Reconcile `main`](#reconcile-main) so its PR checks overlap with desktop and EAS builds, and
|
||||
create the release heartbeat. (`npm run release:ship` and `npm run release:ship:beta` also run
|
||||
`release:push` before `release:publish`, so tag builds never wait behind npm.)
|
||||
|
||||
When promoting or branching from a tag created before `release:prep:*`, `release:ship`, and the
|
||||
`release/**` workflow triggers existed (for example `v0.17.0-beta.1`), either cherry-pick the
|
||||
release-tooling commit onto the release branch (leaving product code unchanged) or follow the
|
||||
older tag's scripts (`version:all:*`, manual `gh workflow run ci.yml --ref <branch>`,
|
||||
`release:publish`, and `release:push`) until the next tag carries the new tooling.
|
||||
`release:push`, and `release:publish`) until the next tag carries the new tooling.
|
||||
|
||||
A stable hotfix can take the version a patch beta line would promote to, such as `0.13.3`
|
||||
shipping while `0.13.3-beta.2` soaks. Never republish or reuse a shipped version. Continue the line
|
||||
as the next unused patch beta, `0.13.4-beta.1`, from the tested beta tag. No `version:all:*` mode
|
||||
computes that from a prerelease, so run `npm run release:check`, bump with
|
||||
`npm version 0.13.4-beta.1 --include-workspace-root --no-git-tag-version && git commit -m "chore(release): cut 0.13.4-beta.1"`,
|
||||
push the release branch for `CI` and `Desktop Packages`, then ship with `npm run release:ship:beta`.
|
||||
push the release branch for `CI` and `Desktop Packages`, and complete the
|
||||
[pre-release dependency checks](#pre-release-dependency-checks) before shipping with
|
||||
`npm run release:push` and `npm run release:publish:beta` (or `npm run release:ship:beta`).
|
||||
Record the tested beta tag as its source so its soak still counts for the unchanged content.
|
||||
|
||||
## Release inventory
|
||||
@@ -155,8 +174,7 @@ For a promotion, every item defaults to defer.
|
||||
|
||||
## Reconcile main
|
||||
|
||||
Right after the tag push (in parallel with desktop and EAS builds), open a PR into `main` from a
|
||||
fresh branch off `origin/main` named `reconcile/vX.Y.Z` or `reconcile/vX.Y.Z-beta.N`:
|
||||
Right after `npm run release:push` pushes the tag (in parallel with npm publication and all desktop, APK, Docker, and EAS builds), open a PR into `main` from a fresh branch off `origin/main` named `reconcile/vX.Y.Z` or `reconcile/vX.Y.Z-beta.N`. Reconcile reads only the tagged git commit, so it does not wait for npm or any release build:
|
||||
|
||||
```bash
|
||||
git fetch origin --tags
|
||||
@@ -176,10 +194,10 @@ hunks from the release base:
|
||||
- Leaves unshipped work on `main` untouched and makes no claims about unshipped work in the
|
||||
changelog entry.
|
||||
|
||||
Commit, open the PR into `main`, and merge once its checks pass. After the reconcile PR merges and
|
||||
the release completes, delete the remote release branch (`git push origin --delete release/vX.Y.Z`
|
||||
or `release/vX.Y.Z-beta.N`). The tag is the record of shipped source; Paseo maintains no release
|
||||
track besides `main`.
|
||||
Commit, open the PR into `main`, and merge once its checks pass. Delete the remote release branch
|
||||
(`git push origin --delete release/vX.Y.Z` or `release/vX.Y.Z-beta.N`) only after the reconcile PR
|
||||
merges and every [sync gate](#sync-gates) passes. The tag is the record of shipped source, and
|
||||
Paseo maintains no release track besides `main`.
|
||||
|
||||
## ACP catalog updates
|
||||
|
||||
@@ -234,27 +252,34 @@ npm run release:prep:minor
|
||||
|
||||
# 2. Push the release branch and wait for CI + Desktop Packages on this commit.
|
||||
git push -u origin HEAD
|
||||
# Complete the pre-release dependency checks on this commit.
|
||||
|
||||
# 3. After go-ahead and green release-branch checks: publish npm and push the tag.
|
||||
npm run release:ship
|
||||
# 3. After go-ahead and green release-branch checks: push the tag first to start builds.
|
||||
npm run release:push
|
||||
|
||||
# 4. Run these in parallel immediately after step 3:
|
||||
npm run release:publish
|
||||
# Also open the reconcile/vX.Y.Z PR into main and create the release heartbeat.
|
||||
# (`npm run release:ship` runs `release:push` before `release:publish` if used standalone.)
|
||||
```
|
||||
|
||||
`release:ship` runs `scripts/publish-release-packages.mjs` and `scripts/push-current-release-tag.mjs`:
|
||||
`scripts/push-current-release-tag.mjs` refuses non-`release/*` branches, checks that `HEAD` matches `origin/release/*`, tags `HEAD` with `vX.Y.Z`, and pushes the tag. Because `HEAD` is already on the pushed release branch, no second branch CI run starts.
|
||||
|
||||
- Publishes all seven `@getpaseo/*` packages in dependency order, skips versions already on npm,
|
||||
retries transient 429/5xx/network errors, and waits until each version is visible on npm before
|
||||
continuing.
|
||||
- Checks `npm view @getpaseo/cli dist-tags` and moves npm's `beta` dist-tag to the new stable
|
||||
version across all seven packages whenever the stable version is newer than `beta` (leaving
|
||||
`beta` untouched during a stable hotfix on an older line).
|
||||
- Refuses non-`release/*` branches, tags `HEAD` with `vX.Y.Z`, and pushes the tag. Because `HEAD`
|
||||
is already on the release branch, no second CI run starts.
|
||||
`scripts/publish-release-packages.mjs` publishes the seven `@getpaseo/*` packages in dependency-wave order:
|
||||
|
||||
The tag push triggers `Desktop Release`, `Android APK Release`, `Docker`, and `Release Notes Sync` on GitHub Actions. The workflows create the GitHub Release as a draft while builds and release-note sync run. EAS picks up the same tag via the EAS GitHub app and starts the iOS + Android store builds in parallel (see "Mobile builds (EAS)" below) — there is no mobile-release workflow under `.github/workflows`.
|
||||
1. Wave 1: `@getpaseo/highlight`, `@getpaseo/relay`, and `@getpaseo/protocol` (no `@getpaseo/*` dependencies).
|
||||
2. Wave 2: `@getpaseo/client` (depends on `@getpaseo/protocol` and `@getpaseo/relay`).
|
||||
3. Wave 3: `@getpaseo/plugin` (depends on `@getpaseo/client` and `@getpaseo/protocol`).
|
||||
4. Wave 4: `@getpaseo/server` (depends on `@getpaseo/client`, `@getpaseo/highlight`, `@getpaseo/plugin`, `@getpaseo/protocol`, and `@getpaseo/relay`).
|
||||
5. Wave 5: `@getpaseo/cli` (depends on `@getpaseo/client`, `@getpaseo/protocol`, and `@getpaseo/server`).
|
||||
|
||||
Verify `npm view @getpaseo/cli dist-tags` shows `latest` at the shipped version, and `beta` at the shipped version or an active newer beta, before considering the stable release complete.
|
||||
After each `npm publish`, the script polls `npm view` (up to 12 checks, 5 seconds apart) until the published version is visible on npm before moving to the next package. Waiting for registry visibility prevents dependent publishes and manual retries from hitting `E409` conflicts or `E404` propagation lag. On stable releases, the script also checks `npm view @getpaseo/cli dist-tags` and moves npm's `beta` dist-tag to the new stable version across all seven packages whenever the stable version is newer than `beta` (leaving `beta` untouched during a stable hotfix on an older line).
|
||||
|
||||
The Docker workflow builds images from the checked-out source tree on `main` as non-publishing checks (cancelling superseded `main` runs). Stable `vX.Y.Z` tag pushes publish `ghcr.io/getpaseo/paseo:X.Y.Z` and `ghcr.io/getpaseo/paseo:latest`; beta `vX.Y.Z-beta.N` tag pushes publish only `ghcr.io/getpaseo/paseo:X.Y.Z-beta.N` and never move `latest`.
|
||||
The tag push triggers `Desktop Release`, `Android APK Release`, `Docker`, `Release Notes Sync`, and `Deploy App` (`app.paseo.sh`, stable tags only) on GitHub Actions. `Desktop Release` and `Release Notes Sync` create the GitHub Release as a draft while builds and release-note sync run. `Deploy Website` triggers later on `release: published` when `Desktop Release` publishes the non-draft stable GitHub Release. EAS picks up the same tag through the EAS GitHub app and starts `Release Mobile` (iOS and Android store builds) in parallel, with no mobile-release workflow under `.github/workflows`. None of these workflows install `@getpaseo/*` from the public npm registry because all of them build from the checked-out tag commit and workspace packages.
|
||||
|
||||
Confirm that `npm view @getpaseo/cli dist-tags` shows `latest` at the shipped version, and `beta` at the shipped version or an active newer beta, before considering the stable release complete.
|
||||
|
||||
The Docker workflow builds images from the checked-out source tree on `main` as non-publishing checks (a running check finishes, and a newer merge replaces the pending one). Stable `vX.Y.Z` tag pushes publish `ghcr.io/getpaseo/paseo:X.Y.Z` and `ghcr.io/getpaseo/paseo:latest`; beta `vX.Y.Z-beta.N` tag pushes publish only `ghcr.io/getpaseo/paseo:X.Y.Z-beta.N` and never move `latest`.
|
||||
|
||||
The production relay is the Elixir service in [getpaseo/paseo-relay](https://github.com/getpaseo/paseo-relay), with its own deployment process. Paseo releases and pushes to this repository do not deploy it. The Cloudflare relay code and workflow in this repository are legacy and are not used in production.
|
||||
|
||||
@@ -269,9 +294,12 @@ npm run release:check # Typecheck, build, dry-run pack
|
||||
npm run version:all:patch
|
||||
npm run version:all:minor
|
||||
git push -u origin HEAD # Trigger CI + Desktop Packages on release/vX.Y.Z
|
||||
# Wait for CI and Desktop Packages on this branch to pass, then after go-ahead:
|
||||
# Wait for CI and Desktop Packages and complete the pre-release dependency checks.
|
||||
# After go-ahead:
|
||||
npm run release:push # Create tag vX.Y.Z on HEAD and push (starts release builds)
|
||||
# In parallel right after release:push:
|
||||
npm run release:publish # Publish to npm (idempotent, with propagation + beta dist-tag sync)
|
||||
npm run release:push # Create tag vX.Y.Z on HEAD and push (triggers release workflows)
|
||||
# Open reconcile/vX.Y.Z PR into main and create the release heartbeat.
|
||||
```
|
||||
|
||||
## Beta flow
|
||||
@@ -286,15 +314,21 @@ npm run release:prep:beta:next # Cut X.Y.Z-beta.2, beta.3, ...
|
||||
|
||||
# 2. Push the release branch and wait for CI + Desktop Packages to pass:
|
||||
git push -u origin HEAD
|
||||
# Complete the pre-release dependency checks on this commit.
|
||||
|
||||
# 3. After go-ahead:
|
||||
npm run release:ship:beta
|
||||
# 3. After go-ahead: push the tag first, then run npm publish, reconcile, and heartbeat in parallel:
|
||||
npm run release:push
|
||||
npm run release:publish:beta
|
||||
# (Or run `npm run release:ship:beta` in one shell while opening reconcile/vX.Y.Z-beta.N.)
|
||||
|
||||
# Later, after soak, promote on release/vX.Y.Z:
|
||||
npm run release:prep:promote
|
||||
git push -u origin HEAD
|
||||
# Wait for CI + Desktop Packages to pass, then after go-ahead:
|
||||
npm run release:ship
|
||||
# Wait for CI + Desktop Packages and complete the pre-release dependency checks.
|
||||
# After go-ahead:
|
||||
npm run release:push
|
||||
npm run release:publish
|
||||
# Open reconcile/vX.Y.Z PR into main and create the release heartbeat in parallel.
|
||||
```
|
||||
|
||||
- Beta tags are published GitHub prereleases like `v0.1.41-beta.1`
|
||||
@@ -316,11 +350,33 @@ Use the beta path when you need to:
|
||||
|
||||
## Staged rollout (stable channel)
|
||||
|
||||
Stable desktop releases go out via a linear time-based rollout for automatic update checks: 0% admitted when the updater manifests appear, 100% admitted 36 hours later, linear ramp in between. Manual checks bypass the rollout so a user can install immediately when they click **Check**. Beta releases bypass the rollout entirely — beta users always receive updates immediately.
|
||||
A stable desktop release reaches automatic updates in stages, so a bad release reaches few installs before you stop it. Each install decides locally from two fields in the release manifests, `releaseDate` and `rolloutHours`. No server tracks installs.
|
||||
|
||||
The rollout is driven by a `rolloutHours` field stamped into the GitHub Release manifests (`latest-mac.yml`, `latest-linux.yml`, `latest.yml`) by the `finalize-rollout` job in `desktop-release.yml`.
|
||||
| Stage | Rule |
|
||||
| -------------- | -------------------------------------------------------------------------------------------------------- |
|
||||
| Canary | For the first 8 hours, 5% of installs are admitted. |
|
||||
| Ramp | From 8 hours to `rolloutHours` (18 by default), admission rises in a straight line from 5% to 100%. |
|
||||
| Check interval | An install asks GitHub for the latest release at most once every 6 hours. |
|
||||
| Cooldown | After an install updates, it skips paced releases for 24 hours. |
|
||||
| Staged update | An install that holds a downloaded update keeps it and does not download the paced release that follows. |
|
||||
|
||||
Desktop release builds now publish in two phases:
|
||||
A paced release is a stable release with `rolloutHours` above 0. When `rolloutHours` is under 16, the canary hold is half of `rolloutHours`.
|
||||
|
||||
Every release places each install at a new position in the rollout, so the canary group changes with each release. With one or two releases per day, an install updates at most once every 24 hours and skips the releases in between.
|
||||
|
||||
These paths skip the stages:
|
||||
|
||||
- A manual check (**Check**) always asks GitHub and always offers the latest release.
|
||||
- A release with `rolloutHours: 0` is an emergency release. Every install takes it at its next check, during a cooldown too, and it replaces a staged update.
|
||||
- The beta channel has no stages. A beta install takes each release at its next check.
|
||||
|
||||
The **Notify** update mode follows the same stages and prompts instead of downloading. **Off** makes no automatic requests.
|
||||
|
||||
`packages/desktop/src/features/app-update-rollout.ts` owns the curve. `app-update-pacing.ts` owns the check interval and the cooldown, and `app-update-service.ts` owns the staged update.
|
||||
|
||||
### How a release is published
|
||||
|
||||
The `finalize-rollout` job in `desktop-release.yml` stamps `releaseDate` and `rolloutHours` into the GitHub Release manifests (`latest-mac.yml`, `latest-linux.yml`, `latest.yml`). Desktop release builds publish in two phases:
|
||||
|
||||
- The GitHub Release stays a draft while platform build jobs upload the installers/packages (`.dmg`, `.zip`, `.exe`, `.AppImage`, etc.).
|
||||
- The final job merges and stamps every channel manifest, uploads them with the final `releaseDate` and `rolloutHours`, then publishes the GitHub Release.
|
||||
@@ -329,22 +385,21 @@ Drafts do not appear in GitHub's releases feed. Updater clients continue to see
|
||||
|
||||
### Default behavior
|
||||
|
||||
`npm run release:prep:patch` or `npm run release:prep:minor` → push release branch → green checks → `npm run release:ship` → tag push → 36h ramp. No extra action needed.
|
||||
Follow the [standard stable release procedure](#standard-release-stable). The tag push starts
|
||||
the desktop release workflow, which sets an 18-hour rollout when it publishes the release.
|
||||
|
||||
The `rollout_hours` input on `desktop-release.yml` is **only read on `workflow_dispatch`** — tag-push runs always default to 36. To get any other rollout duration on a fresh release, use the post-publish flip below.
|
||||
The `rollout_hours` input on `desktop-release.yml` is read only on `workflow_dispatch`. Tag-push runs always use 18. To get any other rollout duration on a fresh release, use the post-publish flip below.
|
||||
|
||||
### Instant-admit release (rollout_hours=0)
|
||||
### Emergency release (rollout_hours=0)
|
||||
|
||||
Tag-push runs from `npm run release:ship` always stamp 36 hours. To admit everyone immediately (hotfix, doc-only change, a release you want out fast), ship the release normally, wait for it to publish, then flip the manifests:
|
||||
Follow the [standard stable release procedure](#standard-release-stable). Wait for Desktop
|
||||
Release to publish, then update the manifests to admit everyone at once.
|
||||
|
||||
```bash
|
||||
# 1. Ship the verified release branch (36h ramp from tag push).
|
||||
npm run release:ship
|
||||
|
||||
# 2. Wait for Desktop Release to publish the GitHub Release.
|
||||
# 1. Wait for Desktop Release to publish the GitHub Release.
|
||||
gh run watch <desktop-release-run-id> --exit-status
|
||||
|
||||
# 3. Flip the published manifests to instant admit.
|
||||
# 2. Flip the published manifests to an emergency release.
|
||||
gh workflow run desktop-rollout.yml \
|
||||
-f tag=v0.1.64 \
|
||||
-f rollout_hours=0
|
||||
@@ -352,23 +407,13 @@ gh workflow run desktop-rollout.yml \
|
||||
|
||||
Dispatch only after `finalize-rollout` has published the release. Until then the release is a draft, and a draft has no tag: `desktop-rollout.yml` looks the release up by tag and fails with `release not found`. The concurrency group `desktop-rollout-<tag>` that the two workflows share orders them only once both are queued; it does not hold an early dispatch until the draft is published.
|
||||
|
||||
The first public manifests carry `rolloutHours=36` for the minutes between publish and the flip. The renderer polls every 30 minutes, so active stable users pick up the new manifest on their next check.
|
||||
The first public manifests carry `rolloutHours=18` for the minutes between publish and the flip. An install sees the flip at its next check, which is up to 6 hours after its previous one. In automatic mode it then downloads the release and installs it when the app quits.
|
||||
|
||||
### Adjusting an already-published release
|
||||
|
||||
To change the rollout duration on a release that's already shipped — e.g. flip a hotfix to instant admit, or slow a release down — use the dedicated `desktop-rollout.yml` workflow. It edits the manifests in place on the GitHub release without rebuilding anything. It only rewrites `rolloutHours`; `releaseDate` is preserved, so the rollout clock keeps ticking from the original publish time.
|
||||
To change the rollout duration on a release that already shipped, use the `desktop-rollout.yml` workflow. It edits the manifests in place on the GitHub release without rebuilding anything. It rewrites only `rolloutHours`. `releaseDate` is preserved, so the rollout clock keeps running from the original publish time.
|
||||
|
||||
**Hotfix (instant admit) on an already-shipped release:**
|
||||
|
||||
```bash
|
||||
gh workflow run desktop-rollout.yml \
|
||||
-f tag=v0.1.42 \
|
||||
-f rollout_hours=0
|
||||
```
|
||||
|
||||
`rollout_hours=0` admits 100% of stable users on their next update check (within ~30 min for active clients).
|
||||
|
||||
**Slow a rollout down** (e.g. extend total duration to 72h since the original release):
|
||||
To slow a rollout down, for example to 72 hours since the original release:
|
||||
|
||||
```bash
|
||||
gh workflow run desktop-rollout.yml \
|
||||
@@ -376,13 +421,59 @@ gh workflow run desktop-rollout.yml \
|
||||
-f rollout_hours=72
|
||||
```
|
||||
|
||||
`rollout_hours` is **total duration since the original release date**, not "extend by N more hours from now." If `v0.1.42` was published 2h ago and you set `rollout_hours=72`, the ramp finishes 70h from now.
|
||||
`rollout_hours` is the total duration since the original release date. If `v0.1.42` was published 2 hours ago and you set `rollout_hours=72`, the ramp finishes 70 hours from now.
|
||||
|
||||
A longer rollout does not stop a release. The canary group still updates. To stop a release, [halt it](#halt-a-release).
|
||||
|
||||
The dispatch is idempotent and shares the `desktop-rollout-<tag>` concurrency group with `desktop-release.yml`'s `finalize-rollout` job, so it serializes safely against an in-flight tag-push pipeline targeting the same release.
|
||||
|
||||
### Halt a release
|
||||
|
||||
Stable installs and the download page follow the release that GitHub marks as latest. To stop a release, mark the last good release as latest:
|
||||
|
||||
```bash
|
||||
# v0.1.41 is the last good release.
|
||||
gh release edit v0.1.41 --latest
|
||||
|
||||
# Prints v0.1.41 when the halt is in effect.
|
||||
gh api repos/getpaseo/paseo/releases/latest --jq .tag_name
|
||||
```
|
||||
|
||||
The halt applies to every stable install from its next check, including installs older than the staged rollout:
|
||||
|
||||
- An install that has not downloaded the halted release no longer sees it.
|
||||
- An install that downloaded it asks GitHub again before it installs at quit, and drops the download.
|
||||
- An install that already runs the halted release stays on it, because the app never downgrades. [Ship a fix](#fix-a-bad-release).
|
||||
|
||||
A halt does not reach the beta channel. Beta installs read the release list by date and still take the halted release.
|
||||
|
||||
To resume a halted release, run `gh release edit v0.1.42 --latest` with its tag.
|
||||
|
||||
### Fix a bad release
|
||||
|
||||
1. [Halt](#halt-a-release) the bad release.
|
||||
2. Ship the fix as the next patch with the [standard stable release procedure](#standard-release-stable).
|
||||
3. After Desktop Release publishes the fix, make sure that GitHub marks it as latest:
|
||||
|
||||
```bash
|
||||
gh api repos/getpaseo/paseo/releases/latest --jq .tag_name
|
||||
```
|
||||
|
||||
If the command prints another tag, run `gh release edit <fix-tag> --latest`.
|
||||
|
||||
4. Flip the fix to an [emergency release](#emergency-release-rollout_hours0):
|
||||
|
||||
```bash
|
||||
gh workflow run desktop-rollout.yml \
|
||||
-f tag=<fix-tag> \
|
||||
-f rollout_hours=0
|
||||
```
|
||||
|
||||
Do not leave the fix as a paced release. The installs that took the bad release are in their 24-hour cooldown and skip a paced release. An install that holds the bad release as a staged update, and did not check during the halt, keeps it when a paced release follows. An emergency release reaches both.
|
||||
|
||||
### Custom ramp on a manually-dispatched build
|
||||
|
||||
`desktop-release.yml` accepts `rollout_hours` only on `workflow_dispatch`, which is the path used to **rebuild an existing tag** (retry a failed release, force a rebuild on a different ref). When you go that route, you can stamp a non-default ramp directly:
|
||||
`desktop-release.yml` accepts `rollout_hours` only on `workflow_dispatch`, which is the path used to rebuild an existing tag (retry a failed release, force a rebuild on a different ref). On that path, you can stamp a different ramp directly:
|
||||
|
||||
```bash
|
||||
gh workflow run desktop-release.yml \
|
||||
@@ -390,13 +481,18 @@ gh workflow run desktop-release.yml \
|
||||
-f rollout_hours=6
|
||||
```
|
||||
|
||||
This does **not** apply to fresh releases shipped via `npm run release:ship` — tag-push runs always stamp 36. For a fresh release with a custom ramp, ship normally and then dispatch `desktop-rollout.yml` (same pattern as the instant-admit flow above, with your chosen `rollout_hours`).
|
||||
For a fresh release with a custom ramp, follow the [emergency release procedure](#emergency-release-rollout_hours0)
|
||||
and set `rollout_hours` to your chosen duration.
|
||||
|
||||
### Releasing during an active rollout
|
||||
|
||||
If you ship N+1 while N is still ramping, N+1 starts a fresh rollout from its own publish timestamp. N's rollout effectively ends — the newer manifest supersedes it. Rollout-aware clients revalidate the manifest for up to five seconds before installing a downloaded update on quit. If N+1 has replaced N but the client is not admitted to N+1 yet, it skips the downloaded N and waits rather than installing two updates in succession. If revalidation times out, the app exits without installing the cached update.
|
||||
If you ship N+1 while N is still ramping, N+1 starts a new rollout from its own publish time, and the rollout of N ends because installs no longer see its manifests.
|
||||
|
||||
If N+1 is a hotfix for a bug in N, dispatch `desktop-rollout.yml -f tag=v0.1.<N+1> -f rollout_hours=0` after N+1 publishes so the users who already got N reach the fix fast.
|
||||
An install that holds N as a staged update keeps N when N+1 is a paced release, and installs N when the app quits. It then waits out its cooldown before it takes a later paced release. The hold covers only paced patch releases that the install saw one after the other. If the install missed a release, it evaluates the newest release instead: it replaces N when it is admitted, and drops N when it is not.
|
||||
|
||||
A minor or major release always ends the hold. The version numbers do not show whether a fix shipped between `0.17.4` and `0.18.0`, so the install treats `0.18.0` as if it missed a release.
|
||||
|
||||
Before an install at quit, the app asks GitHub for the latest release for up to five seconds. If that check does not finish in time, the app exits without installing the staged update.
|
||||
|
||||
### macOS system floor
|
||||
|
||||
@@ -409,17 +505,17 @@ macOS 13 maps to Darwin 22. The two values use different version domains; do not
|
||||
|
||||
### Limitations
|
||||
|
||||
- **No pause / kill switch.** To stop new admissions, ship a superseding release. Clients revalidate on quit and will not install the superseded download, but a client that already completed installation cannot be recalled; ship a hotfix `+1` patch.
|
||||
- **No rollback.** `allowDowngrade = false`. Bad release = ship a hotfix.
|
||||
- **Bootstrap caveat.** Clients running a build older than the rollout feature ignore `rolloutHours` and admit immediately. Rollout protection only applies to clients running the rollout-aware version or later.
|
||||
- **Up to ~30 min automatic admission latency.** Renderer polls every 30 minutes, so a stable user may take up to that long to be evaluated against the rollout window. Clicking **Check** is manual and bypasses rollout admission.
|
||||
- A release cannot be recalled from an install that runs it. `allowDowngrade` is `false`. [Halt](#halt-a-release) the release to protect the other installs, then [ship a fix](#fix-a-bad-release).
|
||||
- An emergency release reaches a running install at its next check, up to 6 hours after its previous one. A manual check sees it at once.
|
||||
- Installs older than the canary and cooldown build have neither. They ramp in a straight line over `rolloutHours` and check every 30 minutes. Installs older than the staged rollout ignore `rolloutHours` and update at once.
|
||||
- The app window starts every automatic check. A release whose window does not load cannot update itself, and its users must download a new build from the website. Smoke the packaged app before you publish.
|
||||
|
||||
## Mobile builds (EAS)
|
||||
|
||||
iOS and Android store builds are not in `.github/workflows`. They are triggered by the EAS GitHub app the moment the `v*` tag is pushed:
|
||||
|
||||
- **Android (Play Store)** — EAS builds with profile `production` and auto-submits to the Play Store via `eas submit` (EAS-managed credentials). A Fastlane lane then replaces the store screenshots.
|
||||
- **iOS (TestFlight + App Store)** — EAS builds with profile `production`, uploads once through a `testflight` job, distributes the build to the `Paseo Beta` external group with Beta App Review submission, and a Fastlane lane uploads the store screenshots and submits that same build for App Store review.
|
||||
- **iOS (TestFlight + App Store)** — EAS builds with profile `production`, uploads once through a `testflight` job, distributes the build to the `Paseo Beta` external group with Beta App Review submission, and a Fastlane lane uploads the store screenshots and submits that same build for App Store review. When an earlier iOS version is already in Apple's review or release queue (`WAITING_FOR_REVIEW`, `IN_REVIEW`, `PENDING_APPLE_RELEASE`, `PENDING_DEVELOPER_RELEASE`, `PROCESSING_FOR_DISTRIBUTION`, `WAITING_FOR_EXPORT_COMPLIANCE`, or `ACCEPTED`), `submit_review` leaves it untouched, logs `IOS_REVIEW_SKIPPED` with the in-review version and the waiting TestFlight build, and exits `0` so `Release Mobile` stays green.
|
||||
- **Android APK (GitHub Release asset)** — separate, via `.github/workflows/android-apk-release.yml`. This is the only Android-related workflow that lives in this repo.
|
||||
|
||||
EAS uses the local app version source. `packages/app/app.config.js` derives the native version from the package version. Android `versionCode` is `major * 1_000_000 + minor * 1_000 + patch`. iOS reserves 1,000 build slots per app version: beta `N` uses slot `N`, and stable uses slot `999`. For example, `0.2.6-beta.2` appears in App Store Connect as version `0.2.6` build `2006002`; stable uses build `2006999`. Rebuilding the same tag produces the same native build number; if a store has already accepted a binary and you need a different binary, cut the next beta or patch instead of relying on EAS remote auto-increment.
|
||||
@@ -465,11 +561,22 @@ npx eas build:view <build-id>
|
||||
# and submit_ios_for_review.
|
||||
npx eas workflow:view <workflow-run-id> --json
|
||||
|
||||
# Read failed submit/review job logs.
|
||||
# Read submit/review job logs (also check for IOS_REVIEW_SKIPPED on green runs).
|
||||
npx eas workflow:logs <workflow-job-id> --all-steps --non-interactive
|
||||
|
||||
# Stream logs for a build.
|
||||
npx eas build:view <build-id> --json | jq '.logFiles[]'
|
||||
|
||||
# Check live App Store Connect review state + top 5 recent iOS TestFlight builds.
|
||||
npx eas workflow:run ios-review-status.yml
|
||||
|
||||
# Submit a waiting TestFlight build once the review slot is free (default replace_in_review=false skips if still active).
|
||||
npx eas workflow:run resubmit-ios-review.yml
|
||||
# Or force-replace an in-flight review for an urgent iOS hotfix:
|
||||
npx eas workflow:run resubmit-ios-review.yml -F app_version=0.18.1 -F app_build_version=18001999 -F replace_in_review=true
|
||||
|
||||
# Cancel an active in-flight iOS App Store review (pass expected_version to guard against version drift).
|
||||
npx eas workflow:run cancel-ios-review.yml -F expected_version=0.18.0
|
||||
```
|
||||
|
||||
A build's `gitCommitHash` must match the release tag commit. `status` walks through `NEW` → `IN_QUEUE` → `IN_PROGRESS` → `FINISHED` (or `ERRORED`/`CANCELED`). The EAS workflow run's `gitCommitHash` and `trigger` must also match the release tag.
|
||||
@@ -485,15 +592,14 @@ For the `Release Mobile` EAS workflow, these jobs must pass:
|
||||
- `submit_android` — Android binary submitted to the Play Store
|
||||
- `upload_android_screenshots` — Google Play screenshots replaced from the repo
|
||||
|
||||
Do not treat `build_ios: SUCCESS` or `distribute_ios: SUCCESS` as a completed iOS release. `submit_ios_for_review: FAILURE` means the iOS release is blocked even if the build is visible in TestFlight.
|
||||
Do not treat `build_ios: SUCCESS` or `distribute_ios: SUCCESS` as a completed iOS release. `submit_ios_for_review: FAILURE` means the iOS release is blocked even if the build is visible in TestFlight. Even when `submit_ios_for_review` passes, inspect its log with `npx eas workflow:logs <workflow-job-id> --all-steps --non-interactive` for `IOS_REVIEW_SKIPPED`. If App Store submission was skipped because an earlier version is already in flight, explicitly notify the maintainer with both the in-review version/state and the waiting TestFlight version/build so they can either let the current review finish and run `npx eas workflow:run resubmit-ios-review.yml` later, or replace it with `replace_in_review=true`.
|
||||
|
||||
To confirm the submission landed, inspect the EAS workflow with `npx eas workflow:view <workflow-run-id> --json`. App Store Connect (review state for the matching version/build) and the Play Console track are the final ground truth.
|
||||
|
||||
## Release completion and heartbeat
|
||||
|
||||
A release is **in progress** after npm publication and tag push. Report it as
|
||||
**shipped** only after every applicable build, publication, asset, manifest, and
|
||||
store submission passes the completion checklist.
|
||||
A release is in progress once the tag is pushed. Report it as shipped only after every applicable
|
||||
[sync gate](#sync-gates) and completion checklist item passes.
|
||||
|
||||
Immediately after every beta, stable, or promotion tag push, create a heartbeat
|
||||
that resumes the release in the current conversation. Create it automatically
|
||||
@@ -502,9 +608,10 @@ the completion checklist or finds a failure that needs new user authority.
|
||||
|
||||
Each heartbeat checks the release tag commit, `CI` and `Desktop Packages` for the release branch,
|
||||
every tag-triggered GitHub Actions run (`Desktop Release`, `Android APK Release`, `Docker`,
|
||||
`Release Notes Sync`), npm dist-tags, the GitHub Release body and assets, desktop updater
|
||||
manifests, the published Docker image, the applicable EAS workflow, the reconcile PR, and remote
|
||||
release branch cleanup. Inspect the GitHub Release itself and confirm that the macOS, Linux,
|
||||
`Release Notes Sync`, and `Deploy App` for stable), `Deploy Website` after stable release
|
||||
publication, npm dist-tags, the GitHub Release body and assets, desktop updater manifests, the
|
||||
published Docker image, the applicable EAS workflow, the reconcile PR, and remote release branch
|
||||
cleanup. Inspect the GitHub Release itself and confirm that the macOS, Linux,
|
||||
Windows, and Android APK assets are present along with the channel manifests
|
||||
(`latest-mac.yml`, `latest-linux.yml`, and `latest.yml` for stable;
|
||||
`beta-mac.yml`, `beta-linux.yml`, and `beta.yml` for beta).
|
||||
@@ -527,7 +634,7 @@ Pattern:
|
||||
"timezone": "UTC",
|
||||
"maxRuns": 120,
|
||||
"expiresIn": "24h",
|
||||
"prompt": "Resume the vX.Y.Z release babysit for commit <sha>. Check npm tags; CI and Desktop Packages on release/vX.Y.Z; every tag-triggered GitHub Actions run; the published GitHub Release body, expected desktop/APK assets, and channel manifests; the Docker image; the matching EAS workflow; and the reconcile PR into main. Completion requires every applicable checklist item. For stable, require build_ios, distribute_ios (Paseo Beta external distribution and Beta App Review submission), submit_ios_for_review, build_android, and submit_android to succeed. For beta, require the beta TestFlight distribution and Beta App Review path. If work is pending, wait for the next heartbeat. If a failure can be retried safely for the same version, follow the failed-release procedure; otherwise report the blocker. When every applicable completion-checklist item passes and the reconcile PR is merged, delete origin/release/vX.Y.Z, delete THIS heartbeat, report shipped, and stop.",
|
||||
"prompt": "Resume the vX.Y.Z release babysit for commit <sha>. Check npm tags; CI and Desktop Packages on release/vX.Y.Z; every tag-triggered GitHub Actions run (Desktop Release, Android APK Release, Docker, Release Notes Sync, and Deploy App on stable) plus Deploy Website after release publish; the published GitHub Release body, expected desktop/APK assets, and channel manifests; the Docker image; the matching EAS workflow; and the reconcile PR into main. Completion requires every applicable checklist item. For stable, require build_ios, distribute_ios (Paseo Beta external distribution and Beta App Review submission), submit_ios_for_review, build_android, submit_android, and upload_android_screenshots to succeed, and inspect the submit_ios_for_review log for IOS_REVIEW_SKIPPED (if skipped, explicitly report both the in-review version and the waiting TestFlight build to the maintainer). For beta, require the beta TestFlight distribution and Beta App Review path. If work is pending, wait for the next heartbeat. If a failure can be retried safely for the same version, follow the failed-release procedure; otherwise report the blocker. When every applicable completion-checklist item passes and the reconcile PR is merged, delete origin/release/vX.Y.Z, delete THIS heartbeat, report shipped, and stop.",
|
||||
}
|
||||
```
|
||||
|
||||
@@ -552,6 +659,8 @@ The GitHub Release body is populated automatically by the `Release Notes Sync` w
|
||||
|
||||
**NEVER bump the version to fix a build problem.** New versions are reserved for meaningful product changes (features, fixes, improvements). Build/CI failures are fixed on the current version.
|
||||
|
||||
If `npm run release:publish` or `npm run release:publish:beta` fails after `npm run release:push` pushed the tag, fix the npm authentication, OTP, or local build issue and rerun the publish command on the same commit. Do not move or force-push the `v*` tag, because `scripts/publish-release-packages.mjs` skips packages already visible on npm and resumes from the remaining packages.
|
||||
|
||||
**Do not rely on `workflow_dispatch` for tagged code fixes.** The `workflow_dispatch` trigger runs the workflow file from the default branch but checks out the code at the tag ref (`ref: ${{ inputs.tag }}`). That means fixes committed to `main` won't change the tagged source tree being built. `workflow_dispatch` only helps when the fix lives in the workflow file itself.
|
||||
|
||||
For Docker-only retries, **do not push or force-push a `v*` release tag**.
|
||||
@@ -636,9 +745,7 @@ intentionally unavailable to desktop updater clients.
|
||||
- The npm `version` lifecycle regenerates F-Droid changelog files from `CHANGELOG.md` for stable releases only (`npm run fdroid:changelogs`) and stages them, so the release commit and tag carry them. Betas are a no-op. A stable run **aborts the release** if `CHANGELOG.md` has no entry for the version being cut — commit the changelog entry first. See [docs/android.md](android.md) for why these files are generated per ABI.
|
||||
- `release:prepare` refreshes workspace `node_modules` links to prevent stale types.
|
||||
- `npm run dev:desktop` and `npm run build:desktop` target the Electron desktop package in `packages/desktop`.
|
||||
- `release:publish` and `release:publish:beta` run `scripts/publish-release-packages.mjs`: if a run
|
||||
fails partway through, re-running skips versions already published on npm, retries transient
|
||||
registry errors, and waits for each version to become visible on npm before continuing.
|
||||
- `release:publish` and `release:publish:beta` run `scripts/publish-release-packages.mjs`. They publish the seven `@getpaseo/*` packages in dependency waves, skip versions already visible on npm, retry transient registry errors, and poll `npm view` between packages so dependents do not hit `E409` or `E404` propagation lag. `release:ship` and `release:ship:beta` run `release:push` before `release:publish` or `release:publish:beta`.
|
||||
- The website uses GitHub's latest published release API for download links, so published beta prereleases do not replace the stable download target.
|
||||
|
||||
## Changelog format
|
||||
@@ -859,6 +966,18 @@ Bullets within each section (Added, Changed, Fixed) follow this order:
|
||||
2. **Quality-of-life improvements** — polish, performance, smoother interactions.
|
||||
3. **Internal/infra changes last** — only include if they have a tangible user benefit (e.g. "faster startup" is user-facing even if the fix was internal).
|
||||
|
||||
## Pre-release dependency checks
|
||||
|
||||
Run these checks from the repository root on the release commit before shipping a beta or stable release.
|
||||
Use Linux x64 so the audit includes the platform-specific dependencies that the CI job checked.
|
||||
|
||||
1. Review changes to dependency versions, download URLs, and integrity hashes in `git diff <previous-release-tag> HEAD -- package-lock.json`.
|
||||
2. Install the exact dependencies from the release lockfile with `npm ci`.
|
||||
3. Run `npm audit signatures`. Investigate failures before shipping. See [Dependency signature audit](development.md#dependency-signature-audit) for help.
|
||||
|
||||
Checking signatures and reviewing the lockfile diff reduce the risk of shipping compromised dependencies.
|
||||
These checks help prevent supply-chain attacks from reaching users through Paseo.
|
||||
|
||||
## Pre-release sanity check
|
||||
|
||||
Before cutting a **stable** release, the release agent reviews the diff as a last line of defence against shipping bugs. Skip this for betas — the beta itself is the smoke test, and gating each beta on a code review defeats the point of using betas as fast release candidates.
|
||||
@@ -886,8 +1005,9 @@ Every entry covers `previous stable release → release source`: first beta, lat
|
||||
- [ ] Fold this beta into the series' single `CHANGELOG.md` entry (heading `## X.Y.Z-beta.N - YYYY-MM-DD`, previous stable → release source), review it against the changelog policy, get approval, and commit it with its [`CHANGELOG.zh-CN.md` translation](#changelog-translations) before running `release:prep:*`
|
||||
- [ ] The diff from the previous stable to the resolved release source is classified as patch or minor, with the target version and rationale approved
|
||||
- [ ] `npm run release:prep:beta:patch`, `release:prep:beta:minor`, or `release:prep:beta:next` created the version commit on `release/vX.Y.Z-beta.N` without a tag, and the pushed branch passed `CI` and `Desktop Packages` before shipping (never relying on `main` CI)
|
||||
- [ ] After go-ahead, `npm run release:ship:beta` published npm and pushed the `vX.Y.Z-beta.N` tag without triggering a second CI run
|
||||
- [ ] npm shows the version under the `beta` dist-tag, not `latest`
|
||||
- [ ] Complete the [pre-release dependency checks](#pre-release-dependency-checks) on the release commit
|
||||
- [ ] After go-ahead, `npm run release:push` pushed the `vX.Y.Z-beta.N` tag without triggering a second CI run, while `npm run release:publish:beta`, the `reconcile/vX.Y.Z-beta.N` PR, and the release heartbeat started in parallel
|
||||
- [ ] All seven `@getpaseo/*` npm packages show the version under the `beta` dist-tag, not `latest`
|
||||
- [ ] The GitHub prerelease was published only after the three beta manifests were uploaded, and it has the changelog body and every expected macOS, Linux, Windows, and Android APK asset
|
||||
- [ ] GitHub `Desktop Release` workflow for the `v*-beta.N` tag is green
|
||||
- [ ] The GitHub prerelease contains `beta-mac.yml`, `beta-linux.yml`, and `beta.yml`
|
||||
@@ -895,7 +1015,7 @@ Every entry covers `previous stable release → release source`: first beta, lat
|
||||
- [ ] GitHub `Docker` workflow is green and the versioned beta image is published without moving `latest`
|
||||
- [ ] GitHub `Release Notes Sync` mirrored the beta entry into the prerelease body
|
||||
- [ ] EAS `Release iOS Beta` completed its build, TestFlight distribution, external beta group, and Beta App Review path
|
||||
- [ ] The [reconcile PR](#reconcile-main) brought the shipped changelog entries and version into `main`, and `origin/release/vX.Y.Z-beta.N` was deleted
|
||||
- [ ] The [reconcile PR](#reconcile-main) brought the shipped changelog entries and version into `main` and merged before cleanup, and `origin/release/vX.Y.Z-beta.N` was deleted after all sync gates passed
|
||||
- [ ] The release heartbeat was created after the tag push and deleted only after every item above passed
|
||||
|
||||
### Stable release (or promotion)
|
||||
@@ -905,12 +1025,13 @@ Every entry covers `previous stable release → release source`: first beta, lat
|
||||
- [ ] The release base and changes match the [release base table](#release-base-and-source) and any approved [inventory](#release-inventory)
|
||||
- [ ] A promotion ships the tested beta's product content after its soak, unless the user explicitly overrode either default
|
||||
- [ ] Every PR in the release range has been opened, and its full description and every linked issue have been read before drafting the changelog
|
||||
- [ ] Update `CHANGELOG.md` with user-facing release notes (features, fixes — not refactors). Promotion renames the series' `## X.Y.Z-beta.N` entry to `## X.Y.Z - YYYY-MM-DD` and re-checks it covers the full release. Commit the matching [`CHANGELOG.zh-CN.md` entry](#changelog-translations) with it
|
||||
- [ ] Update `CHANGELOG.md` with user-facing release notes (features, fixes, not refactors). Promotion renames the series' `## X.Y.Z-beta.N` entry to `## X.Y.Z - YYYY-MM-DD` and re-checks it covers the full release. Commit the matching [`CHANGELOG.zh-CN.md` entry](#changelog-translations) with it
|
||||
- [ ] Verify the changelog heading follows strict `## X.Y.Z - YYYY-MM-DD` format
|
||||
- [ ] Ensure local format, lint, and typecheck pass and the working tree is clean before running `release:prep:*`
|
||||
- [ ] `npm run release:prep:patch`, `release:prep:minor`, or `release:prep:promote` created the version commit on `release/vX.Y.Z` without a tag, and the pushed branch passed `CI` and `Desktop Packages` before shipping (never relying on `main` CI)
|
||||
- [ ] After go-ahead, `npm run release:ship` published npm, updated dist-tags, and pushed the `vX.Y.Z` tag without triggering a second CI run
|
||||
- [ ] `latest` resolves to the new stable, and `beta` resolves to it too unless an active newer beta holds `beta`
|
||||
- [ ] Complete the [pre-release dependency checks](#pre-release-dependency-checks) on the release commit
|
||||
- [ ] After go-ahead, `npm run release:push` pushed the `vX.Y.Z` tag without triggering a second CI run, while `npm run release:publish`, the `reconcile/vX.Y.Z` PR, and the release heartbeat started in parallel
|
||||
- [ ] All seven `@getpaseo/*` npm packages show `latest` at the new stable, and `beta` at the new stable too unless an active newer beta holds `beta`
|
||||
- [ ] The GitHub Release was published only after the three stable manifests were uploaded, and it has the changelog body and every expected macOS, Linux, Windows, and Android APK asset
|
||||
- [ ] GitHub `Desktop Release` workflow for the `v*` tag is green
|
||||
- [ ] The GitHub Release contains `latest-mac.yml`, `latest-linux.yml`, and `latest.yml`
|
||||
@@ -918,11 +1039,13 @@ Every entry covers `previous stable release → release source`: first beta, lat
|
||||
- [ ] GitHub `Android APK Release` workflow for the same tag is green
|
||||
- [ ] GitHub `Docker` workflow is green and both the versioned and `latest` images are published
|
||||
- [ ] GitHub `Release Notes Sync` is green and the release body matches the stable changelog entry
|
||||
- [ ] GitHub `Deploy App` workflow for the same tag is green, and `Deploy Website` succeeded after the release published
|
||||
- [ ] EAS `Release Mobile` workflow for the same tag is green
|
||||
- [ ] EAS iOS `build_ios` completes for the same tag
|
||||
- [ ] EAS iOS `distribute_ios` succeeds, uploading the binary once, distributing it to `Paseo Beta`, and submitting it for Beta App Review
|
||||
- [ ] EAS iOS `submit_ios_for_review` succeeds, putting the build into App Store review
|
||||
- [ ] EAS iOS `submit_ios_for_review` succeeds, putting the build into App Store review (or its log was checked for `IOS_REVIEW_SKIPPED` and the maintainer was notified with both the in-review version and the waiting TestFlight build)
|
||||
- [ ] EAS Android `build_android` completes for the same tag
|
||||
- [ ] EAS Android `submit_android` succeeds, putting the build on its Play Store track
|
||||
- [ ] The [reconcile PR](#reconcile-main) brought the shipped changelog entries, F-Droid changelogs, and version into `main`, and `origin/release/vX.Y.Z` was deleted
|
||||
- [ ] EAS Android `upload_android_screenshots` succeeds for the same tag
|
||||
- [ ] The [reconcile PR](#reconcile-main) brought the shipped changelog entries, F-Droid changelogs, and version into `main` and merged before cleanup, and `origin/release/vX.Y.Z` was deleted after all sync gates passed
|
||||
- [ ] The release heartbeat was created after the tag push and deleted only after every item above passed
|
||||
|
||||
@@ -30,7 +30,7 @@ Terminal directory snapshots (`terminalsChanged`) and workspace contribution cha
|
||||
|
||||
Each `onChange` delivers both the new snapshot and the `previous` one (`{ state, changedAt }`). The transition flows unchanged up through `TerminalSession.onActivityChange` (as `{ activity, previous }`), the worker protocol's `terminalActivityChange` event, and the manager-level `subscribeTerminalActivity(listener)` stream (`{ terminalId, name, cwd, activity, previous }`).
|
||||
|
||||
The daemon consumes these transitions, not snapshots. When a transition moves from `working` to `idle`, the tracker records finished attention, so the terminal shows the same green finished dot as an idle agent that needs review. The websocket layer also fires a "Terminal finished" attention notification. A terminal that exits while still working emits no turn-end notification.
|
||||
The daemon consumes these transitions, not snapshots. When a transition moves from `working` to `idle`, the tracker records finished attention, so the terminal shows the same green finished dot as an idle agent that needs review. Focusing the terminal tab or using Mark as read on its owning workspace clears finished attention. Mark as read leaves needs-input attention alone, the same way it leaves an agent's pending permission. The websocket layer also fires a "Terminal finished" attention notification. A terminal that exits while still working emits no turn-end notification.
|
||||
|
||||
Terminal list visibility is `workspaceId`-scoped: a terminal belongs to the workspace that created it, and same-`cwd` sibling workspaces do not see it in their terminal lists. Terminal status routing starts from that owning workspace, uses the owning workspace's `cwd`, then fans the status bucket out to every active workspace with the same `cwd`.
|
||||
|
||||
|
||||
@@ -200,7 +200,7 @@ Test suites in this repo are heavy. Running them in bulk freezes the machine, es
|
||||
|
||||
## Pull-request test routing
|
||||
|
||||
PR checks are routed by the behavior each suite proves, using `.github/ci-paths.yml`. A package does not inherit every test suite of its runtime consumers: app changes do not run CLI or Electron-wrapper tests, and protocol changes do not run every package that imports the protocol. Cross-package static compatibility belongs to `typecheck`; full integration coverage runs after merge on main and in manual CI runs.
|
||||
PR checks are routed by the behavior each suite proves, using `.github/ci-paths.yml`. A package does not inherit every test suite of its runtime consumers: app changes do not run CLI or Electron-wrapper tests, and protocol changes do not run every package that imports the protocol. The CLI E2E tests are the exception: they drive a real daemon, so changes to the server or built-in plugins run them too. Cross-package static compatibility belongs to `typecheck`; full integration coverage runs after merge on main and in manual CI runs.
|
||||
|
||||
Required matrix legs are declared as statically named jobs. Their shared steps use YAML anchors, while job-level `if` conditions let GitHub report an unaffected leg as genuinely skipped without allocating a runner or losing the exact required-check name.
|
||||
|
||||
|
||||
@@ -61,6 +61,11 @@ the chat and its replica cache would keep only the end of the reply. A recovery
|
||||
running catch-up starts after whatever that catch-up applied, because the app applies a forward page
|
||||
row by row and an older cursor repeats rows.
|
||||
|
||||
A live row whose epoch differs from the local cursor is a rewind or replacement this client never
|
||||
saw as an invalidation, not a stale row. The app recovers like a gap: it asks `after` its own
|
||||
cursor, and the daemon answers that stale epoch with a reset tail. Dropping the rows instead would
|
||||
leave the chat on pre-rewind history while the new epoch streams.
|
||||
|
||||
Initialization timeouts guard lack of catch-up progress, not the full multi-page sync. A successful page that queues the next `after` page refreshes the watchdog.
|
||||
|
||||
Opening or resuming an agent fetches the latest available turns with a soft target of 40
|
||||
@@ -202,10 +207,23 @@ owner wraps cached preparation, network catch-up, accepted timeline application,
|
||||
behind one interface. React supplies transport and projection operations without selecting a cache
|
||||
path or issuing a separate persistence notification.
|
||||
|
||||
Active-agent list reconciliation does not own transcript lifetime. An archived agent's fresh
|
||||
history response can arrive before the active-list response that omits it. Clearing history there
|
||||
would discard accepted rows while the viewed owner still considers them synchronized. Entity
|
||||
deletion clears the transcript; list membership changes do not.
|
||||
The viewed-timeline owner also owns how long a transcript stays in memory. An active agent's
|
||||
transcript stays resident while its chat is hidden, so switching back to it needs no fetch. An
|
||||
archived agent's transcript stays resident only while its chat is shown, for example when it is
|
||||
opened from History. When an agent is archived, or the active list drops it because its workspace
|
||||
was archived, the owner releases the transcript unless the chat is shown. It also releases the
|
||||
transcript when the chat stops being shown. A released chat leaves the opened chats. When it is
|
||||
shown again, it reads the replica cache and catches up again. A history page, live event, or cache
|
||||
read that arrives after the release is dropped.
|
||||
|
||||
The active-list reconciliation does not release transcripts itself. An archived agent's fresh
|
||||
history response can arrive before the active-list response that omits it, while the chat is
|
||||
open in History. Clearing history there would discard rows the user is reading.
|
||||
|
||||
An agent counts as archived when the active list omits it, when its row has an archive timestamp,
|
||||
or when the workspace list omits its workspace. The workspace check matters because a workspace
|
||||
archive can complete while one of its agents keeps a row with no archive timestamp. Until a list
|
||||
first hydrates, it marks no agent as archived. Deleting the agent clears the transcript.
|
||||
|
||||
Removing the host from the registry is the destructive boundary: it stops the runtime and clears the
|
||||
session and host-scoped setup state together.
|
||||
@@ -312,19 +330,35 @@ that starts or accepts them. Received messages retain sender attribution, while
|
||||
notifications remain visible events. Collapse, timing and locally mounted history share
|
||||
these boundaries.
|
||||
|
||||
Agent-message XML belongs to the daemon's `agent/agent-messages` boundary. Prompt delivery encodes
|
||||
Agent-message markup belongs to the daemon's `agent/agent-messages` boundary. Prompt delivery encodes
|
||||
provenance; acceptance, provider echoes, import, and replay share its projection. The delivery ID is
|
||||
also the projected call ID, so a provider echo cannot create a second row. Sender IDs are opaque and
|
||||
do not imply local ownership or authorization. Capture the sender title at delivery: archived or
|
||||
removed senders must remain understandable without a live directory lookup.
|
||||
|
||||
The optional `agentMessage` payload carries event, sender, and delivered text. Shared client
|
||||
presentation (`protocol/paseo-tool-presentation`) owns its heading and expanded details, next to the
|
||||
labels for every Paseo MCP tool. The daemon
|
||||
must not construct UI labels or prepend sender labels to the semantic message body. The existing
|
||||
`tool_call` / `plain_text` envelope is a compatibility adapter: older clients still parse the row and
|
||||
expand its body. New clients use the typed payload, never infer the event from a tool name or parse
|
||||
XML. Stream reduction and disk-cache serialization preserve the payload without rendering it.
|
||||
Each delivered message keeps its text first and ends with a `<paseo-message … length="N"/>` marker.
|
||||
Text at character 0 stays the sender's, so a provider still reads a slash command there, and bodies
|
||||
are never escaped. `length` bounds the text before the marker, so marker syntax inside a body cannot
|
||||
split it, and a batch splits back into rows by reading markers from the end. A person's prompt gets a
|
||||
marker only when it shares a provider turn with other deliveries or contains `<paseo-message` or
|
||||
`<paseo-system`. Transcripts written before markers open with a `<paseo-system>` envelope; the
|
||||
projection still reads those (`COMPAT(leadingPaseoSystemEnvelope)`).
|
||||
|
||||
The daemon decides whether a delivery is a message or a tool call, and clients render what it sends:
|
||||
|
||||
- A person's text is a `user_message`.
|
||||
- A peer message is an `agent_message` tool call whose `agentMessage` carries sender and text. The
|
||||
wire has no sender on `user_message`, so clients present it as a "Sent by" bubble.
|
||||
- Lifecycle notifications (`agent_finished`, `agent_errored`, `agent_needs_permission`,
|
||||
`agent_closed`), schedule fires (`heartbeat`), and change-request updates
|
||||
are plain tool calls. `plain_text` detail carries the sender in `label`, the body in `text`, and
|
||||
the icon. Clients render the heading from the tool name, so no notification event reaches them.
|
||||
|
||||
`isTimelineTurnTrigger` (`packages/protocol/src/timeline-turn.ts`) lists the delivered tool names that
|
||||
start a turn. Add a name there when the daemon projects a new delivery. Rows that older daemons stored
|
||||
with notification `agentMessage` metadata are rewritten to the plain call at presentation
|
||||
(`COMPAT(agentNotificationMetadata)`). Stream reduction and disk-cache serialization preserve the
|
||||
payload without rendering it.
|
||||
|
||||
The compatibility boundary for older daemons is snapshot normalization: running/idle status becomes an
|
||||
anonymous active turn or idle state once, and downstream code consumes the same activity shape. The app
|
||||
|
||||
@@ -86,7 +86,7 @@ mounts—never at module evaluation time.
|
||||
|
||||
## Dynamic Pixel Styles On Web
|
||||
|
||||
Avoid feeding changing pixel values such as `{ top, left }`, `{ maxHeight }`, or `{ minWidth }` into the `style` prop of Unistyles-managed React Native components on web. The web runtime hashes each distinct style object by value and appends a CSS rule to `#unistyles-web`; those rules are not reclaimed during the page lifetime, so pointer-driven positioning can turn into steady stylesheet growth.
|
||||
Avoid feeding changing pixel values such as `{ top, left }`, `{ maxHeight }`, or `{ minWidth }` into the `style` prop of Unistyles-managed React Native components on web. The web runtime hashes each distinct style object by value and inserts a CSS rule into `#unistyles-web` for it, then deletes the rule when the last element using it unmounts. Pointer-driven positioning turns into a rule insert and delete per move.
|
||||
|
||||
Use the inline style escape hatch below for high-churn values. Do not split a component into plain/web/native variants just to keep one measured value out of the CSS registry. Raw DOM wrappers are reserved for real DOM infrastructure, such as terminal hosts, virtualized web rows, or third-party drag wrappers.
|
||||
|
||||
@@ -224,6 +224,7 @@ Quick confirmation in DevTools console:
|
||||
```js
|
||||
[...document.styleSheets]
|
||||
.flatMap((s) => [...(s.cssRules || [])])
|
||||
.flatMap((r) => (r.cssRules ? [...r.cssRules] : [r]))
|
||||
.map((r) => r.cssText)
|
||||
.filter((t) => t.includes("unistyles") && t.includes("> *"));
|
||||
```
|
||||
@@ -366,6 +367,14 @@ colors. Keep this patch until upstream reads the scheme through separate lists.
|
||||
The desktop browser E2E checks both transition directions in an isolated Electron
|
||||
process, because Playwright's focus emulation prevents real hidden-page behavior.
|
||||
|
||||
The stylesheet patch backports upstream PR #1354 (3.8.0). Unistyles 3.2.4 rewrote
|
||||
the whole text of `#unistyles-web` whenever a class was added or removed, and
|
||||
the browser then restyled the entire document: about 5 ms each time, several
|
||||
times for one hover card. The backport changes one CSSOM rule per class instead.
|
||||
The tag therefore has no text; read its rules through `sheet.cssRules`. Classes
|
||||
without a media query sit inside an `@media all` group. Assert on the stylesheet
|
||||
in E2E with `packages/app/e2e/support/helpers/shared-stylesheet.ts`.
|
||||
|
||||
Register every dependency patch in `scripts/postinstall-patches.mjs`. A file in
|
||||
`patches/` is inert unless that script knows which installed package activates
|
||||
it.
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
Fixed
|
||||
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android
|
||||
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning
|
||||
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system
|
||||
- Fixed interrupt and steer messages to archived agents being queued without starting a turn
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,7 @@
|
||||
Fixed
|
||||
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android
|
||||
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning
|
||||
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system
|
||||
- Fixed interrupt and steer messages to archived agents being queued without starting a turn
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,7 @@
|
||||
Fixed
|
||||
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android
|
||||
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning
|
||||
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system
|
||||
- Fixed interrupt and steer messages to archived agents being queued without starting a turn
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,7 @@
|
||||
Fixed
|
||||
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android
|
||||
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning
|
||||
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system
|
||||
- Fixed interrupt and steer messages to archived agents being queued without starting a turn
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,5 @@
|
||||
- Archive workspaces together: Cmd/Ctrl+click a workspace in the sidebar to select multiple workspaces and archive them in one step.
|
||||
- Copy quoted drafts: Copy a quote from a reply with one tap, without the > markers.
|
||||
- Redesigned agent profiles page: Agent profiles have their own dedicated settings page, and the model picker saves a new profile in one tap.
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,5 @@
|
||||
- Archive workspaces together: Cmd/Ctrl+click a workspace in the sidebar to select multiple workspaces and archive them in one step.
|
||||
- Copy quoted drafts: Copy a quote from a reply with one tap, without the > markers.
|
||||
- Redesigned agent profiles page: Agent profiles have their own dedicated settings page, and the model picker saves a new profile in one tap.
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,5 @@
|
||||
- Archive workspaces together: Cmd/Ctrl+click a workspace in the sidebar to select multiple workspaces and archive them in one step.
|
||||
- Copy quoted drafts: Copy a quote from a reply with one tap, without the > markers.
|
||||
- Redesigned agent profiles page: Agent profiles have their own dedicated settings page, and the model picker saves a new profile in one tap.
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,5 @@
|
||||
- Archive workspaces together: Cmd/Ctrl+click a workspace in the sidebar to select multiple workspaces and archive them in one step.
|
||||
- Copy quoted drafts: Copy a quote from a reply with one tap, without the > markers.
|
||||
- Redesigned agent profiles page: Agent profiles have their own dedicated settings page, and the model picker saves a new profile in one tap.
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,12 @@
|
||||
Improved
|
||||
- Reorganized Settings into Device and Host sections and consolidated sparse pages
|
||||
- Added arrow-key navigation for models, providers, and profiles in the model picker
|
||||
- Added an in-place Refresh control for Tailscale availability in host settings and setup
|
||||
|
||||
Changed
|
||||
- Removed the Antigravity usage source that ran agy -p /usage in the background
|
||||
|
||||
Fixed
|
||||
- Fixed Paseo Android crashing on Samsung devices when a chat shows a code block or quote
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,12 @@
|
||||
Improved
|
||||
- Reorganized Settings into Device and Host sections and consolidated sparse pages
|
||||
- Added arrow-key navigation for models, providers, and profiles in the model picker
|
||||
- Added an in-place Refresh control for Tailscale availability in host settings and setup
|
||||
|
||||
Changed
|
||||
- Removed the Antigravity usage source that ran agy -p /usage in the background
|
||||
|
||||
Fixed
|
||||
- Fixed Paseo Android crashing on Samsung devices when a chat shows a code block or quote
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,12 @@
|
||||
Improved
|
||||
- Reorganized Settings into Device and Host sections and consolidated sparse pages
|
||||
- Added arrow-key navigation for models, providers, and profiles in the model picker
|
||||
- Added an in-place Refresh control for Tailscale availability in host settings and setup
|
||||
|
||||
Changed
|
||||
- Removed the Antigravity usage source that ran agy -p /usage in the background
|
||||
|
||||
Fixed
|
||||
- Fixed Paseo Android crashing on Samsung devices when a chat shows a code block or quote
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,12 @@
|
||||
Improved
|
||||
- Reorganized Settings into Device and Host sections and consolidated sparse pages
|
||||
- Added arrow-key navigation for models, providers, and profiles in the model picker
|
||||
- Added an in-place Refresh control for Tailscale availability in host settings and setup
|
||||
|
||||
Changed
|
||||
- Removed the Antigravity usage source that ran agy -p /usage in the background
|
||||
|
||||
Fixed
|
||||
- Fixed Paseo Android crashing on Samsung devices when a chat shows a code block or quote
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,4 @@
|
||||
- Remote workspace browser proxy: Desktop browser tabs in remote workspaces now route through the workspace daemon, so remote localhost servers open directly in Paseo.
|
||||
- Per-device notification preferences: Each device can choose which agent, terminal, and plugin events send notifications, and plugins can send notifications and handle taps.
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,4 @@
|
||||
- Remote workspace browser proxy: Desktop browser tabs in remote workspaces now route through the workspace daemon, so remote localhost servers open directly in Paseo.
|
||||
- Per-device notification preferences: Each device can choose which agent, terminal, and plugin events send notifications, and plugins can send notifications and handle taps.
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,4 @@
|
||||
- Remote workspace browser proxy: Desktop browser tabs in remote workspaces now route through the workspace daemon, so remote localhost servers open directly in Paseo.
|
||||
- Per-device notification preferences: Each device can choose which agent, terminal, and plugin events send notifications, and plugins can send notifications and handle taps.
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,4 @@
|
||||
- Remote workspace browser proxy: Desktop browser tabs in remote workspaces now route through the workspace daemon, so remote localhost servers open directly in Paseo.
|
||||
- Per-device notification preferences: Each device can choose which agent, terminal, and plugin events send notifications, and plugins can send notifications and handle taps.
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,8 @@
|
||||
- Host metadata instructions: Set host-wide instructions once to guide language, tone, and formatting for generated workspace titles, branch names, commit messages, and pull requests.
|
||||
- Enterprise spending usage: Usage now shows Claude extra-usage spending and Codex individual spending limits with reset times.
|
||||
|
||||
Fixed
|
||||
- Fixed Android agent push notifications arriving minutes late during Doze
|
||||
- Fixed Command Center results reordering mid-word while typing
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,8 @@
|
||||
- Host metadata instructions: Set host-wide instructions once to guide language, tone, and formatting for generated workspace titles, branch names, commit messages, and pull requests.
|
||||
- Enterprise spending usage: Usage now shows Claude extra-usage spending and Codex individual spending limits with reset times.
|
||||
|
||||
Fixed
|
||||
- Fixed Android agent push notifications arriving minutes late during Doze
|
||||
- Fixed Command Center results reordering mid-word while typing
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,8 @@
|
||||
- Host metadata instructions: Set host-wide instructions once to guide language, tone, and formatting for generated workspace titles, branch names, commit messages, and pull requests.
|
||||
- Enterprise spending usage: Usage now shows Claude extra-usage spending and Codex individual spending limits with reset times.
|
||||
|
||||
Fixed
|
||||
- Fixed Android agent push notifications arriving minutes late during Doze
|
||||
- Fixed Command Center results reordering mid-word while typing
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
@@ -0,0 +1,8 @@
|
||||
- Host metadata instructions: Set host-wide instructions once to guide language, tone, and formatting for generated workspace titles, branch names, commit messages, and pull requests.
|
||||
- Enterprise spending usage: Usage now shows Claude extra-usage spending and Codex individual spending limits with reset times.
|
||||
|
||||
Fixed
|
||||
- Fixed Android agent push notifications arriving minutes late during Doze
|
||||
- Fixed Command Center results reordering mid-word while typing
|
||||
|
||||
Full notes: https://paseo.sh/changelog
|
||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
@@ -47,8 +47,14 @@
|
||||
"ignore": ["android/**", "ios/**", ".expo/**", "dist/**", "scripts/reset-project.js"]
|
||||
},
|
||||
"packages/cli": {
|
||||
"entry": ["src/index.ts", "bin/paseo", "src/**/*.test.{ts,tsx}", "tests/**/*.{ts,tsx}"],
|
||||
"project": ["src/**/*.{ts,tsx}", "tests/**/*.{ts,tsx}"]
|
||||
"entry": [
|
||||
"src/index.ts",
|
||||
"bin/paseo",
|
||||
"scripts/**/*.mjs",
|
||||
"src/**/*.test.{ts,tsx}",
|
||||
"tests/**/*.{ts,tsx}"
|
||||
],
|
||||
"project": ["src/**/*.{ts,tsx}", "scripts/**/*.mjs", "tests/**/*.{ts,tsx}"]
|
||||
},
|
||||
"packages/relay": {
|
||||
"entry": ["src/index.ts", "src/e2ee.ts", "src/cloudflare-adapter.ts", "src/**/*.test.ts"],
|
||||
|
||||
@@ -128,6 +128,8 @@ buildNpmPackage {
|
||||
cd packages/desktop
|
||||
# The Nix output is not a distributable DMG, so leave it unsigned and
|
||||
# disable the hardened runtime that requires a matching signature.
|
||||
# Compiling the Icon Composer document needs Xcode, which the build
|
||||
# does not have, so use the prebuilt icns.
|
||||
CSC_IDENTITY_AUTO_DISCOVERY=false \
|
||||
npm exec --offline -- electron-builder \
|
||||
--config electron-builder.yml \
|
||||
@@ -138,7 +140,8 @@ buildNpmPackage {
|
||||
--config.buildVersion=${lib.escapeShellArg buildVersion} \
|
||||
--config.mac.identity=null \
|
||||
--config.mac.hardenedRuntime=false \
|
||||
--config.mac.notarize=false
|
||||
--config.mac.notarize=false \
|
||||
--config.mac.icon=assets/icon.icns
|
||||
)
|
||||
''}
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
sha256-W725BRG14xajMsR4t8Y3NmxppMnJ8AUd7Kdb6F7LmMw=
|
||||
sha256-aal9eR571blWuL7CZt1LR+KfA4QPJ0ivVl/GSTWy93o=
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "paseo",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "paseo",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"hasInstallScript": true,
|
||||
"license": "Apache-2.0",
|
||||
"workspaces": [
|
||||
@@ -37541,7 +37541,7 @@
|
||||
},
|
||||
"packages/app": {
|
||||
"name": "@getpaseo/app",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"dependencies": {
|
||||
"@codemirror/commands": "6.10.4",
|
||||
"@codemirror/language": "6.12.4",
|
||||
@@ -39694,13 +39694,13 @@
|
||||
},
|
||||
"packages/cli": {
|
||||
"name": "@getpaseo/cli",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@clack/prompts": "^1.0.0",
|
||||
"@getpaseo/client": "0.17.3",
|
||||
"@getpaseo/protocol": "0.17.3",
|
||||
"@getpaseo/server": "0.17.3",
|
||||
"@getpaseo/client": "0.18.1",
|
||||
"@getpaseo/protocol": "0.18.1",
|
||||
"@getpaseo/server": "0.18.1",
|
||||
"chalk": "^5.3.0",
|
||||
"commander": "^12.0.0",
|
||||
"mime-types": "^2.1.35",
|
||||
@@ -39947,11 +39947,11 @@
|
||||
},
|
||||
"packages/client": {
|
||||
"name": "@getpaseo/client",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@getpaseo/protocol": "0.17.3",
|
||||
"@getpaseo/relay": "0.17.3",
|
||||
"@getpaseo/protocol": "0.18.1",
|
||||
"@getpaseo/relay": "0.18.1",
|
||||
"ws": "^8.20.0",
|
||||
"zod": "^4.4.3"
|
||||
},
|
||||
@@ -39963,7 +39963,7 @@
|
||||
},
|
||||
"packages/desktop": {
|
||||
"name": "@getpaseo/desktop",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@getpaseo/cli": "*",
|
||||
@@ -40206,7 +40206,7 @@
|
||||
},
|
||||
"packages/expo-two-way-audio": {
|
||||
"name": "@getpaseo/expo-two-way-audio",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.14",
|
||||
@@ -40252,7 +40252,7 @@
|
||||
},
|
||||
"packages/highlight": {
|
||||
"name": "@getpaseo/highlight",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@codemirror/language": "6.12.4",
|
||||
@@ -40282,7 +40282,7 @@
|
||||
},
|
||||
"packages/plugin": {
|
||||
"name": "@getpaseo/plugin",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@agentclientprotocol/sdk": "^1.4.0",
|
||||
@@ -40290,8 +40290,8 @@
|
||||
"use-sync-external-store": "^1.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@getpaseo/client": "0.17.3",
|
||||
"@getpaseo/protocol": "0.17.3",
|
||||
"@getpaseo/client": "0.18.1",
|
||||
"@getpaseo/protocol": "0.18.1",
|
||||
"@types/node": "^20.9.0",
|
||||
"@types/react": "~19.2.0",
|
||||
"react": "19.2.3",
|
||||
@@ -40301,8 +40301,8 @@
|
||||
"zod": "^4.4.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@getpaseo/client": "0.17.3",
|
||||
"@getpaseo/protocol": "0.17.3",
|
||||
"@getpaseo/client": "0.18.1",
|
||||
"@getpaseo/protocol": "0.18.1",
|
||||
"react": ">=19.1.0 <20",
|
||||
"react-native": ">=0.81.5",
|
||||
"zod": "^4.4.3"
|
||||
@@ -40324,7 +40324,7 @@
|
||||
},
|
||||
"packages/protocol": {
|
||||
"name": "@getpaseo/protocol",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"semver": "^7.8.5",
|
||||
@@ -40351,7 +40351,7 @@
|
||||
}
|
||||
},
|
||||
"packages/react-native-enriched-markdown": {
|
||||
"version": "0.17.1",
|
||||
"version": "0.18.1",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
@@ -40367,7 +40367,7 @@
|
||||
},
|
||||
"packages/relay": {
|
||||
"name": "@getpaseo/relay",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@noble/ciphers": "^2.4.0",
|
||||
@@ -40589,17 +40589,17 @@
|
||||
},
|
||||
"packages/server": {
|
||||
"name": "@getpaseo/server",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@agentclientprotocol/sdk": "^0.17.1",
|
||||
"@anthropic-ai/claude-agent-sdk": "0.3.326",
|
||||
"@anthropic-ai/sdk": "^0.104.2",
|
||||
"@getpaseo/client": "0.17.3",
|
||||
"@getpaseo/highlight": "0.17.3",
|
||||
"@getpaseo/plugin": "0.17.3",
|
||||
"@getpaseo/protocol": "0.17.3",
|
||||
"@getpaseo/relay": "0.17.3",
|
||||
"@getpaseo/client": "0.18.1",
|
||||
"@getpaseo/highlight": "0.18.1",
|
||||
"@getpaseo/plugin": "0.18.1",
|
||||
"@getpaseo/protocol": "0.18.1",
|
||||
"@getpaseo/relay": "0.18.1",
|
||||
"@isaacs/ttlcache": "^2.1.4",
|
||||
"@modelcontextprotocol/node": "2.1.2",
|
||||
"@modelcontextprotocol/sdk": "1.29.0",
|
||||
@@ -40625,6 +40625,7 @@
|
||||
"p-limit": "^7.3.0",
|
||||
"p-memoize": "^8.0.0",
|
||||
"p-throttle": "^8.1.0",
|
||||
"parse5": "^7.3.0",
|
||||
"pino": "^10.2.0",
|
||||
"pino-pretty": "^13.1.3",
|
||||
"qrcode": "^1.5.4",
|
||||
@@ -41549,7 +41550,7 @@
|
||||
},
|
||||
"packages/website": {
|
||||
"name": "@getpaseo/website",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"dependencies": {
|
||||
"@cloudflare/vite-plugin": "^1.29.1",
|
||||
"@cloudflare/workers-types": "^4.20260317.1",
|
||||
@@ -43160,7 +43161,7 @@
|
||||
},
|
||||
"plugins": {
|
||||
"name": "@getpaseo/builtin-plugins",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"dependencies": {
|
||||
"@getpaseo/plugin": "*",
|
||||
"zod": "^4.4.3"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "paseo",
|
||||
"version": "0.17.3",
|
||||
"version": "0.18.1",
|
||||
"private": true,
|
||||
"description": "Paseo: voice-controlled development environment for local AI coding agents",
|
||||
"keywords": [
|
||||
@@ -124,8 +124,8 @@
|
||||
"release:publish": "node scripts/publish-release-packages.mjs",
|
||||
"release:publish:beta": "node scripts/publish-release-packages.mjs --beta",
|
||||
"release:push": "node scripts/push-current-release-tag.mjs",
|
||||
"release:ship": "node scripts/push-current-release-tag.mjs --check && npm run release:publish && npm run release:push",
|
||||
"release:ship:beta": "node scripts/push-current-release-tag.mjs --check && npm run release:publish:beta && npm run release:push",
|
||||
"release:ship": "npm run release:push && npm run release:publish",
|
||||
"release:ship:beta": "npm run release:push && npm run release:publish:beta",
|
||||
"release:reconcile": "node scripts/reconcile-release.mjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
name: Cancel iOS App Store review
|
||||
|
||||
# Cancel an active in-flight iOS App Store review submission on App Store
|
||||
# Connect. Pass expected_version to abort safely if Apple has already moved on
|
||||
# to a different version.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
expected_version:
|
||||
type: string
|
||||
required: false
|
||||
description: "Expected marketing version currently in review, e.g. 0.18.0. Fails without cancelling if the active submission is for a different version."
|
||||
|
||||
jobs:
|
||||
cancel_ios_review:
|
||||
name: Cancel iOS App Store review
|
||||
environment: production
|
||||
runs_on: macos-medium
|
||||
steps:
|
||||
- uses: eas/checkout
|
||||
- name: Install fastlane
|
||||
run: bundle install
|
||||
- name: Cancel review
|
||||
run: |
|
||||
export EXPECTED_VERSION="${{ inputs.expected_version }}"
|
||||
bundle exec fastlane ios cancel_review
|
||||
@@ -0,0 +1,20 @@
|
||||
name: Check iOS App Store review status
|
||||
|
||||
# Inspect live App Store Connect state for sh.paseo: the live App Store
|
||||
# version, any active or pending App Store versions, active review submissions,
|
||||
# and the five most recently uploaded iOS TestFlight builds.
|
||||
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
check_ios_review_status:
|
||||
name: Check iOS App Store review status
|
||||
environment: production
|
||||
runs_on: macos-medium
|
||||
steps:
|
||||
- uses: eas/checkout
|
||||
- name: Install fastlane
|
||||
run: bundle install
|
||||
- name: Check review status
|
||||
run: bundle exec fastlane ios review_status
|
||||
@@ -69,4 +69,5 @@ jobs:
|
||||
run: |
|
||||
export APP_VERSION="${{ needs.build_ios.outputs.app_version }}"
|
||||
export APP_BUILD_VERSION="${{ needs.build_ios.outputs.app_build_version }}"
|
||||
export REPLACE_IN_REVIEW="false"
|
||||
bundle exec fastlane ios submit_review
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
name: Resubmit iOS for App Store review
|
||||
|
||||
# Standalone re-trigger for the App Store review submission step. The iOS
|
||||
# binary is already uploaded to TestFlight via the EAS GitHub app's tag-push
|
||||
# build; this workflow just runs the fastlane submit_review lane against the
|
||||
# latest TestFlight build, without rebuilding or re-uploading.
|
||||
# Standalone trigger for the App Store review submission step. The iOS binary
|
||||
# is already uploaded to TestFlight via the EAS GitHub app's tag-push build;
|
||||
# this workflow runs fastlane ios submit_review without rebuilding or
|
||||
# re-uploading. By default (replace_in_review=false) it skips cleanly if
|
||||
# another App Store review is already in flight; pass replace_in_review=true
|
||||
# to cancel an in-flight review and submit an urgent replacement.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -16,6 +18,11 @@ on:
|
||||
type: string
|
||||
required: false
|
||||
description: "CFBundleVersion to resubmit, e.g. 2. Only used when app_version is set."
|
||||
replace_in_review:
|
||||
type: boolean
|
||||
required: false
|
||||
default: false
|
||||
description: "Cancel an in-flight App Store review and submit this build instead. Leave false to skip safely while another review is active."
|
||||
|
||||
jobs:
|
||||
submit_ios_for_review:
|
||||
@@ -30,4 +37,5 @@ jobs:
|
||||
run: |
|
||||
export APP_VERSION="${{ inputs.app_version }}"
|
||||
export APP_BUILD_VERSION="${{ inputs.app_build_version }}"
|
||||
export REPLACE_IN_REVIEW="${{ inputs.replace_in_review }}"
|
||||
bundle exec fastlane ios submit_review
|
||||
|
||||
@@ -2,6 +2,7 @@ const fs = require("node:fs");
|
||||
const path = require("node:path");
|
||||
const pkg = require("./package.json");
|
||||
const withAndroidAsyncStorageSize = require("./plugins/with-android-async-storage-size");
|
||||
const withAndroidIgnoreBoldText = require("./plugins/with-android-ignore-bold-text");
|
||||
const withAndroidOptionalCamera = require("./plugins/with-android-optional-camera");
|
||||
const withAndroidProfileable = require("./plugins/with-android-profileable");
|
||||
const withFdroidAutolinking = require("./plugins/with-fdroid-autolinking");
|
||||
@@ -148,6 +149,7 @@ export default {
|
||||
withPasteInput,
|
||||
withAndroidScroll,
|
||||
withAndroidDisplayMetrics,
|
||||
withAndroidIgnoreBoldText,
|
||||
[withAndroidAsyncStorageSize, 64],
|
||||
...buildProfile.cameraPlugins,
|
||||
withAndroidOptionalCamera,
|
||||
|
||||
@@ -112,3 +112,92 @@ describe("hardware keyboard scene integration", () => {
|
||||
expect(configureHardwareKeyboardAppDelegate(configured)).toBe(configured);
|
||||
});
|
||||
});
|
||||
|
||||
// Android Bold text bolds unstyled text at draw time after React Native measured it
|
||||
// unbolded, which clips trailing words (#4057, #10152, #10850). The activity must opt out
|
||||
// with a sparse Configuration() so other configuration fields still update live.
|
||||
describe("Android Bold text opt-out", () => {
|
||||
const {
|
||||
configureIgnoreBoldTextMainActivity,
|
||||
} = require("./plugins/with-android-ignore-bold-text.js");
|
||||
const {
|
||||
configureDisplayMetricsActivity,
|
||||
} = require("./modules/paseo-display-metrics/app.plugin.js");
|
||||
const mainActivity = [
|
||||
"package sh.paseo",
|
||||
"import expo.modules.splashscreen.SplashScreenManager",
|
||||
"",
|
||||
"import android.os.Build",
|
||||
"import android.os.Bundle",
|
||||
"",
|
||||
"import com.facebook.react.ReactActivity",
|
||||
"",
|
||||
"class MainActivity : ReactActivity() {",
|
||||
" override fun onCreate(savedInstanceState: Bundle?) {",
|
||||
" super.onCreate(null)",
|
||||
" }",
|
||||
"}",
|
||||
"",
|
||||
].join("\n");
|
||||
|
||||
it("zeroes fontWeightAdjustment on a sparse Configuration before attaching and is idempotent", () => {
|
||||
const configured = configureIgnoreBoldTextMainActivity(mainActivity);
|
||||
expect(configured).toMatch(/^import android\.content\.Context$/m);
|
||||
expect(configured).toMatch(/^import android\.content\.res\.Configuration$/m);
|
||||
expect(configured).toContain("override fun attachBaseContext(newBase: Context)");
|
||||
expect(configured).toContain("val override = Configuration()");
|
||||
expect(configured).not.toContain("Configuration(configuration)");
|
||||
expect(configured).toContain("override.fontWeightAdjustment = 0");
|
||||
expect(configured).toContain(
|
||||
"super.attachBaseContext(newBase.createConfigurationContext(override))",
|
||||
);
|
||||
expect(configured.indexOf("attachBaseContext")).toBeLessThan(configured.indexOf("onCreate"));
|
||||
expect(configureIgnoreBoldTextMainActivity(configured)).toBe(configured);
|
||||
});
|
||||
|
||||
it("composes cleanly with withAndroidDisplayMetrics in both plugin orders", () => {
|
||||
const displayFirst = configureIgnoreBoldTextMainActivity(
|
||||
configureDisplayMetricsActivity(mainActivity),
|
||||
);
|
||||
const boldFirst = configureDisplayMetricsActivity(
|
||||
configureIgnoreBoldTextMainActivity(mainActivity),
|
||||
);
|
||||
|
||||
for (const configured of [displayFirst, boldFirst]) {
|
||||
expect(configured).toContain("override fun attachBaseContext(newBase: Context)");
|
||||
expect(configured).toContain("val override = Configuration()");
|
||||
expect(configured).toContain("override.fontWeightAdjustment = 0");
|
||||
expect(configured).toContain("override fun onContentChanged()");
|
||||
expect(configured).toContain(
|
||||
"override fun onConfigurationChanged(newConfig: android.content.res.Configuration)",
|
||||
);
|
||||
expect(configured).toContain(
|
||||
"sh.paseo.displaymetrics.PaseoDisplayMetrics.syncWithWindow(this)",
|
||||
);
|
||||
expect(configureIgnoreBoldTextMainActivity(configured)).toBe(configured);
|
||||
expect(configureDisplayMetricsActivity(configured)).toBe(configured);
|
||||
}
|
||||
});
|
||||
|
||||
it("fails the prebuild when the MainActivity template changes shape", () => {
|
||||
expect(() => configureIgnoreBoldTextMainActivity("package sh.paseo\n")).toThrow(
|
||||
/MainActivity class declaration/,
|
||||
);
|
||||
});
|
||||
|
||||
it("fails the prebuild rather than duplicate an existing attachBaseContext override", () => {
|
||||
const withExistingOverride = mainActivity.replace(
|
||||
"override fun onCreate",
|
||||
"override fun attachBaseContext(newBase: Context) { super.attachBaseContext(newBase) }\n\n override fun onCreate",
|
||||
);
|
||||
expect(() => configureIgnoreBoldTextMainActivity(withExistingOverride)).toThrow(
|
||||
/existing attachBaseContext override/,
|
||||
);
|
||||
});
|
||||
|
||||
it("is registered in the app config", async () => {
|
||||
const { exp } = await getPrebuildConfigAsync(__dirname, { platforms: ["android"] });
|
||||
// Expo records function plugins by name.
|
||||
expect(exp.plugins).toContain("withAndroidIgnoreBoldText");
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 43 KiB |
@@ -5,27 +5,26 @@ import path from "node:path";
|
||||
import { test, expect } from "../support/fixtures";
|
||||
import {
|
||||
addProjectFlow,
|
||||
chooseAddHostFromProjectFlow,
|
||||
addProjectFlowBack,
|
||||
addProjectFlowHost,
|
||||
addProjectFlowHostTrigger,
|
||||
addProjectFlowInput,
|
||||
addProjectFlowMethod,
|
||||
chooseAddProjectMethod,
|
||||
expectAddProjectPage,
|
||||
expectNewWorkspaceForAddedProject,
|
||||
addProjectFlowSubmit,
|
||||
chooseAddHostFromProjectFlow,
|
||||
chooseAddProjectHost,
|
||||
chooseAddProjectLocation,
|
||||
chooseAddProjectTab,
|
||||
expectAddProjectResultVisible,
|
||||
expectAddProjectTab,
|
||||
expectNewWorkspaceForAddedProject,
|
||||
navigateAddProjectResults,
|
||||
navigateAndDismissAddProject,
|
||||
watchAddProjectRenderWarnings,
|
||||
openAddProjectFlow,
|
||||
openAddProjectHostSelection,
|
||||
watchAddProjectRenderWarnings,
|
||||
} from "../support/helpers/add-project-flow";
|
||||
import { gotoAppShell } from "../support/helpers/app";
|
||||
import {
|
||||
disconnectAllHostsAndReload,
|
||||
addConnectedHostAndReload,
|
||||
addConnectedHostsAndReload,
|
||||
addOfflineHostAndReload,
|
||||
disconnectAllHostsAndReload,
|
||||
waitForConnectedHost,
|
||||
} from "../support/helpers/hosts";
|
||||
import {
|
||||
@@ -36,6 +35,8 @@ import { expectOpenedProject } from "../support/helpers/project-picker-ui";
|
||||
import { connectSeedClient } from "../support/helpers/seed-client";
|
||||
import { getServerId } from "../support/helpers/server-id";
|
||||
|
||||
const MOD = process.platform === "darwin" ? "Meta" : "Control";
|
||||
|
||||
const SECONDARY_HOST_ID = "add-project-flow-secondary";
|
||||
const SECONDARY_HOST_LABEL = "Secondary Host";
|
||||
|
||||
@@ -70,13 +71,14 @@ async function expectProjectHasNoWorkspaces(projectId: string): Promise<void> {
|
||||
}
|
||||
}
|
||||
|
||||
test.describe("Add Project command-center flow", () => {
|
||||
test.describe("Add project sheet", () => {
|
||||
test.describe.configure({ timeout: 180_000 });
|
||||
|
||||
test("Add host replaces the project dialog when no hosts are connected", async ({ page }) => {
|
||||
test("Add host replaces the project sheet when no hosts are connected", async ({ page }) => {
|
||||
await gotoAppShell(page);
|
||||
await disconnectAllHostsAndReload(page);
|
||||
await openAddProjectHostSelection(page);
|
||||
await page.locator('[data-testid="sidebar-add-project"]:visible').click();
|
||||
await expect(addProjectFlow(page)).toContainText("No connected hosts");
|
||||
const originalUrl = page.url();
|
||||
await chooseAddHostFromProjectFlow(page);
|
||||
await expect(addProjectFlow(page)).toBeHidden();
|
||||
@@ -86,22 +88,36 @@ test.describe("Add Project command-center flow", () => {
|
||||
await expect(page).toHaveURL(originalUrl);
|
||||
});
|
||||
|
||||
test("method selection shows the daemon's available project sources without search", async ({
|
||||
test("opens on Existing, switches tabs with Mod+1/2/3, keeps each draft, and closes on Escape", async ({
|
||||
page,
|
||||
}) => {
|
||||
const renderWarnings = watchAddProjectRenderWarnings(page);
|
||||
await gotoAppShell(page);
|
||||
|
||||
await openAddProjectFlow(page);
|
||||
|
||||
await expect(addProjectFlowMethod(page, "directory-search")).toBeVisible();
|
||||
await expect(addProjectFlowMethod(page, "github")).toContainText("Clone from GitHub");
|
||||
await expect(addProjectFlowMethod(page, "new-directory")).toContainText("New directory");
|
||||
await expect(addProjectFlowInput(page)).toHaveCount(0);
|
||||
await expect(addProjectFlow(page).getByRole("textbox")).toHaveCount(0);
|
||||
await expect(page.getByTestId("add-project-flow-page-host")).toHaveCount(0);
|
||||
await page.keyboard.type("paseo");
|
||||
await page.keyboard.press(`${MOD}+2`);
|
||||
await expectAddProjectTab(page, "clone");
|
||||
await expect(addProjectFlowInput(page)).toBeFocused();
|
||||
await page.keyboard.type("getpaseo/");
|
||||
await page.keyboard.press(`${MOD}+3`);
|
||||
await expectAddProjectTab(page, "new-folder");
|
||||
await expect(addProjectFlowSubmit(page)).toBeDisabled();
|
||||
|
||||
await page.keyboard.press(`${MOD}+1`);
|
||||
await expectAddProjectTab(page, "existing");
|
||||
await expect(addProjectFlowInput(page)).toHaveValue("paseo");
|
||||
await chooseAddProjectTab(page, "clone");
|
||||
await expect(addProjectFlowInput(page)).toHaveValue("getpaseo/");
|
||||
|
||||
await navigateAndDismissAddProject(page);
|
||||
await expect(addProjectFlow(page)).not.toBeVisible();
|
||||
expect(renderWarnings).toEqual([]);
|
||||
});
|
||||
|
||||
test("an offline extra host neither appears nor forces host selection", async ({ page }) => {
|
||||
test("a single connected host shows no host picker, even with an offline host", async ({
|
||||
page,
|
||||
}) => {
|
||||
await gotoAppShell(page);
|
||||
await addOfflineHostAndReload(page, {
|
||||
serverId: "add-project-flow-offline",
|
||||
@@ -110,8 +126,7 @@ test.describe("Add Project command-center flow", () => {
|
||||
|
||||
await openAddProjectFlow(page);
|
||||
|
||||
await expect(addProjectFlowHost(page, "add-project-flow-offline")).toHaveCount(0);
|
||||
await expect(addProjectFlowMethod(page, "directory-search")).toBeVisible();
|
||||
await expect(addProjectFlowHostTrigger(page)).toHaveCount(0);
|
||||
});
|
||||
|
||||
test.describe("with two connected hosts", () => {
|
||||
@@ -125,73 +140,7 @@ test.describe("Add Project command-center flow", () => {
|
||||
await secondaryHost?.close();
|
||||
});
|
||||
|
||||
test("keyboard selection chooses the second host", async ({ page }) => {
|
||||
await gotoAppShell(page);
|
||||
await addConnectedHostAndReload(page, {
|
||||
serverId: secondaryHost.serverId,
|
||||
label: SECONDARY_HOST_LABEL,
|
||||
port: secondaryHost.port,
|
||||
});
|
||||
await waitForConnectedHost(page, {
|
||||
serverId: SECONDARY_HOST_ID,
|
||||
endpoint: `localhost:${secondaryHost.port}`,
|
||||
});
|
||||
await openAddProjectHostSelection(page);
|
||||
|
||||
await page.keyboard.press("ArrowDown");
|
||||
await page.keyboard.press("Enter");
|
||||
|
||||
await expectAddProjectPage(page, "method");
|
||||
await expect(addProjectFlow(page)).toContainText(SECONDARY_HOST_LABEL);
|
||||
});
|
||||
|
||||
test("Escape and Back restore searchable page input before closing at the root", async ({
|
||||
page,
|
||||
}) => {
|
||||
const renderWarnings = watchAddProjectRenderWarnings(page);
|
||||
await gotoAppShell(page);
|
||||
await addConnectedHostAndReload(page, {
|
||||
serverId: secondaryHost.serverId,
|
||||
label: SECONDARY_HOST_LABEL,
|
||||
port: secondaryHost.port,
|
||||
});
|
||||
await waitForConnectedHost(page, {
|
||||
serverId: SECONDARY_HOST_ID,
|
||||
endpoint: `localhost:${secondaryHost.port}`,
|
||||
});
|
||||
await openAddProjectHostSelection(page);
|
||||
|
||||
await addProjectFlowInput(page).fill("o");
|
||||
await page.keyboard.press("ArrowDown");
|
||||
await page.keyboard.press("Enter");
|
||||
await expectAddProjectPage(page, "method");
|
||||
|
||||
await chooseAddProjectMethod(page, "new-directory");
|
||||
await expectAddProjectPage(page, "new-directory-parent");
|
||||
await page.keyboard.press("Escape");
|
||||
|
||||
await expectAddProjectPage(page, "method");
|
||||
await expect(addProjectFlowInput(page)).toHaveCount(0);
|
||||
await chooseAddProjectMethod(page, "new-directory");
|
||||
await expectAddProjectPage(page, "new-directory-parent");
|
||||
await addProjectFlowBack(page).click();
|
||||
|
||||
await expectAddProjectPage(page, "method");
|
||||
await addProjectFlowBack(page).click();
|
||||
await expectAddProjectPage(page, "host");
|
||||
await expect(addProjectFlowInput(page)).toHaveValue("o");
|
||||
await page.keyboard.press("Enter");
|
||||
await expectAddProjectPage(page, "method");
|
||||
await expect(addProjectFlow(page)).toContainText(SECONDARY_HOST_LABEL);
|
||||
|
||||
await page.keyboard.press("Escape");
|
||||
await expectAddProjectPage(page, "host");
|
||||
await navigateAndDismissAddProject(page);
|
||||
await expect(addProjectFlow(page)).not.toBeVisible();
|
||||
expect(renderWarnings).toEqual([]);
|
||||
});
|
||||
|
||||
test("New directory creates a Project on the selected remote host", async ({ page }) => {
|
||||
test("New folder creates a Project on the host chosen in the sheet", async ({ page }) => {
|
||||
const parentDirectory = await mkdtemp(path.join(tmpdir(), "paseo-e2e-remote-project-"));
|
||||
const directoryName = `remote-${randomUUID().slice(0, 8)}`;
|
||||
const directoryPath = path.join(parentDirectory, directoryName);
|
||||
@@ -207,18 +156,15 @@ test.describe("Add Project command-center flow", () => {
|
||||
serverId: SECONDARY_HOST_ID,
|
||||
endpoint: `localhost:${secondaryHost.port}`,
|
||||
});
|
||||
await openAddProjectHostSelection(page);
|
||||
await addProjectFlowHost(page, SECONDARY_HOST_ID).click();
|
||||
await expectAddProjectPage(page, "method");
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectTab(page, "new-folder");
|
||||
await addProjectFlowInput(page).fill(directoryName);
|
||||
|
||||
await expect(addProjectFlowMethod(page, "new-directory")).toContainText(
|
||||
`Create an empty directory on ${SECONDARY_HOST_LABEL}`,
|
||||
);
|
||||
await chooseAddProjectMethod(page, "new-directory");
|
||||
await addProjectFlowInput(page).fill(parentDirectory);
|
||||
await page.keyboard.press("Enter");
|
||||
await expectAddProjectPage(page, "new-directory-name");
|
||||
await page.keyboard.type(directoryName);
|
||||
await chooseAddProjectHost(page, SECONDARY_HOST_ID);
|
||||
await expect(addProjectFlowHostTrigger(page)).toContainText(SECONDARY_HOST_LABEL);
|
||||
await expect(addProjectFlowInput(page)).toHaveValue(directoryName);
|
||||
await chooseAddProjectLocation(page, parentDirectory);
|
||||
await addProjectFlowInput(page).focus();
|
||||
await page.keyboard.press("Enter");
|
||||
|
||||
const projectId = await expectOpenedProject(page, directoryName);
|
||||
@@ -236,57 +182,35 @@ test.describe("Add Project command-center flow", () => {
|
||||
});
|
||||
});
|
||||
|
||||
test("filtered hosts keep the keyboard-selected row visible", async ({ page }) => {
|
||||
const hosts: IsolatedHostDaemon[] = [];
|
||||
test("a host that disconnects keeps its draft and blocks submit instead of moving it", async ({
|
||||
page,
|
||||
}) => {
|
||||
const droppingHost = await startIsolatedHostDaemon("add-project-flow-dropping");
|
||||
try {
|
||||
for (let index = 1; index <= 3; index += 1) {
|
||||
hosts.push(await startIsolatedHostDaemon(`scroll-host-${index}`));
|
||||
}
|
||||
await page.setViewportSize({ width: 1280, height: 360 });
|
||||
await gotoAppShell(page);
|
||||
await addConnectedHostsAndReload(
|
||||
page,
|
||||
hosts.map((host, index) => ({
|
||||
serverId: host.serverId,
|
||||
port: host.port,
|
||||
label: index < 2 ? `Fleet 0${index + 1}` : "Other host",
|
||||
})),
|
||||
{ primaryLabel: "Fleet 00" },
|
||||
await addConnectedHostAndReload(page, {
|
||||
serverId: droppingHost.serverId,
|
||||
label: "Dropping Host",
|
||||
port: droppingHost.port,
|
||||
});
|
||||
await waitForConnectedHost(page, {
|
||||
serverId: droppingHost.serverId,
|
||||
endpoint: `localhost:${droppingHost.port}`,
|
||||
});
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectHost(page, droppingHost.serverId);
|
||||
await addProjectFlowInput(page).fill(homedir());
|
||||
|
||||
await droppingHost.close();
|
||||
await expect(page.getByTestId("add-project-flow-error")).toHaveText(
|
||||
"Dropping Host is offline",
|
||||
{ timeout: 30_000 },
|
||||
);
|
||||
for (const host of hosts) {
|
||||
await waitForConnectedHost(page, {
|
||||
serverId: host.serverId,
|
||||
endpoint: `localhost:${host.port}`,
|
||||
});
|
||||
}
|
||||
await openAddProjectHostSelection(page);
|
||||
await expect(
|
||||
addProjectFlow(page).getByRole("button").filter({ hasText: "Other host" }),
|
||||
).toBeVisible();
|
||||
|
||||
await addProjectFlowInput(page).fill("Fleet");
|
||||
await expect(addProjectFlowHost(page, hosts[2]!.serverId)).toHaveCount(0);
|
||||
await navigateAddProjectResults(page, "ArrowDown", 2);
|
||||
await expectAddProjectResultVisible(page, "Fleet 02");
|
||||
|
||||
// Filtering out the first host moves retained rows to new positions.
|
||||
await addProjectFlowInput(page).fill("scroll-host");
|
||||
await expect(addProjectFlowHost(page, getServerId())).toHaveCount(0);
|
||||
await expectAddProjectResultVisible(page, "Fleet 01");
|
||||
await navigateAddProjectResults(page, "ArrowDown", 2);
|
||||
await expectAddProjectResultVisible(page, "Other host");
|
||||
await navigateAddProjectResults(page, "ArrowDown", 1);
|
||||
await expectAddProjectResultVisible(page, "Fleet 01");
|
||||
|
||||
await addProjectFlowInput(page).fill("Fleet");
|
||||
await expectAddProjectResultVisible(page, "Fleet 00");
|
||||
await navigateAddProjectResults(page, "ArrowDown", 2);
|
||||
await expectAddProjectResultVisible(page, "Fleet 02");
|
||||
await page.keyboard.press("Enter");
|
||||
await expectAddProjectPage(page, "method");
|
||||
await expect(addProjectFlow(page)).toContainText("Fleet 02");
|
||||
await expect(addProjectFlowHostTrigger(page)).toContainText("Dropping Host");
|
||||
await expect(addProjectFlowInput(page)).toHaveValue(homedir());
|
||||
await expect(addProjectFlowSubmit(page)).toBeDisabled();
|
||||
} finally {
|
||||
await Promise.all(hosts.map((host) => host.close()));
|
||||
await droppingHost.close();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -297,9 +221,6 @@ test.describe("Add Project command-center flow", () => {
|
||||
await gotoAppShell(page);
|
||||
await openAddProjectFlow(page);
|
||||
|
||||
await page.keyboard.press("Enter");
|
||||
await expectAddProjectPage(page, "directory-search");
|
||||
await expect(addProjectFlowInput(page)).toBeFocused();
|
||||
await page.keyboard.type(projectPickerFixture.fuzzyQuery);
|
||||
await expect(addProjectFlow(page)).toContainText(projectPickerFixture.projectName, {
|
||||
timeout: 30_000,
|
||||
@@ -323,45 +244,32 @@ test.describe("Add Project command-center flow", () => {
|
||||
const parentDirectory = await mkdtemp(path.join(homedir(), "paseo-e2e-scroll-"));
|
||||
const rowPath = (index: number) =>
|
||||
path.join(parentDirectory, `scroll-probe-${String(index).padStart(2, "0")}`);
|
||||
const rowName = (index: number) => path.basename(rowPath(index));
|
||||
let projectId: string | null = null;
|
||||
try {
|
||||
await Promise.all(Array.from({ length: 16 }, (_, index) => mkdir(rowPath(index))));
|
||||
await gotoAppShell(page);
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectMethod(page, "directory-search");
|
||||
await addProjectFlowInput(page).fill(path.basename(parentDirectory));
|
||||
await addProjectFlowInput(page).fill(`${path.basename(parentDirectory)}/scroll-probe`);
|
||||
const results = page.getByTestId("add-project-flow-results");
|
||||
await expect(results.getByRole("button", { name: /scroll-probe-/ })).toHaveCount(16, {
|
||||
timeout: 30_000,
|
||||
});
|
||||
|
||||
await navigateAddProjectResults(page, "ArrowDown", 12);
|
||||
await expectAddProjectResultVisible(page, rowPath(11));
|
||||
await navigateAddProjectResults(page, "ArrowDown", 11);
|
||||
await expectAddProjectResultVisible(page, rowName(11));
|
||||
await navigateAddProjectResults(page, "ArrowUp", 12);
|
||||
await expectAddProjectResultVisible(page, parentDirectory);
|
||||
await navigateAddProjectResults(page, "ArrowUp", 1);
|
||||
await expectAddProjectResultVisible(page, rowPath(15));
|
||||
await expectAddProjectResultVisible(page, rowName(15));
|
||||
await navigateAddProjectResults(page, "ArrowDown", 1);
|
||||
await expectAddProjectResultVisible(page, parentDirectory);
|
||||
await expectAddProjectResultVisible(page, rowName(0));
|
||||
|
||||
await navigateAddProjectResults(page, "ArrowDown", 12);
|
||||
await expectAddProjectResultVisible(page, rowPath(11));
|
||||
await addProjectFlowInput(page).fill(`${path.basename(parentDirectory)}probe`);
|
||||
await expect(results.getByRole("button")).toHaveCount(16);
|
||||
await expectAddProjectResultVisible(page, rowPath(0));
|
||||
await navigateAddProjectResults(page, "ArrowDown", 12);
|
||||
await expectAddProjectResultVisible(page, rowPath(12));
|
||||
await addProjectFlowInput(page).fill(path.basename(parentDirectory));
|
||||
await expect(results.getByRole("button")).toHaveCount(17);
|
||||
await expectAddProjectResultVisible(page, parentDirectory);
|
||||
await navigateAddProjectResults(page, "ArrowDown", 12);
|
||||
await expectAddProjectResultVisible(page, rowPath(11));
|
||||
await navigateAddProjectResults(page, "ArrowDown", 11);
|
||||
await page.keyboard.press("Enter");
|
||||
projectId = await expectOpenedProject(page, "scroll-probe-11");
|
||||
projectId = await expectOpenedProject(page, rowName(11));
|
||||
await expectNewWorkspaceForAddedProject(page, {
|
||||
serverId: getServerId(),
|
||||
projectId,
|
||||
projectName: "scroll-probe-11",
|
||||
projectName: rowName(11),
|
||||
projectPath: rowPath(11),
|
||||
});
|
||||
} finally {
|
||||
@@ -370,28 +278,146 @@ test.describe("Add Project command-center flow", () => {
|
||||
}
|
||||
});
|
||||
|
||||
test("a complete repository URL remains selectable without a GitHub search result", async ({
|
||||
test("Enter on a focused result adds that folder, not the one picked before", async ({
|
||||
page,
|
||||
}) => {
|
||||
const parentDirectory = await mkdtemp(path.join(homedir(), "paseo-e2e-focus-"));
|
||||
const firstPath = path.join(parentDirectory, "focus-probe-a");
|
||||
const secondPath = path.join(parentDirectory, "focus-probe-b");
|
||||
let projectId: string | null = null;
|
||||
try {
|
||||
await Promise.all([mkdir(firstPath), mkdir(secondPath)]);
|
||||
await gotoAppShell(page);
|
||||
await openAddProjectFlow(page);
|
||||
await addProjectFlowInput(page).fill(`${path.basename(parentDirectory)}/focus-probe`);
|
||||
const results = page.getByTestId("add-project-flow-results");
|
||||
await expect(results.getByRole("button", { name: /focus-probe-/ })).toHaveCount(2, {
|
||||
timeout: 30_000,
|
||||
});
|
||||
|
||||
await results.getByRole("button", { name: /focus-probe-b/ }).focus();
|
||||
await page.keyboard.press("Enter");
|
||||
projectId = await expectOpenedProject(page, "focus-probe-b");
|
||||
await expectNewWorkspaceForAddedProject(page, {
|
||||
serverId: getServerId(),
|
||||
projectId,
|
||||
projectName: "focus-probe-b",
|
||||
projectPath: secondPath,
|
||||
});
|
||||
} finally {
|
||||
if (projectId) await removeCreatedProject(secondPath, projectId);
|
||||
await rm(parentDirectory, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
test("Enter while a new search runs does not open a row from the previous search", async ({
|
||||
page,
|
||||
}) => {
|
||||
const parentDirectory = await mkdtemp(path.join(homedir(), "paseo-e2e-stale-"));
|
||||
try {
|
||||
await mkdir(path.join(parentDirectory, "stale-probe-a"));
|
||||
await gotoAppShell(page);
|
||||
await openAddProjectFlow(page);
|
||||
const prefix = path.basename(parentDirectory);
|
||||
await addProjectFlowInput(page).fill(`${prefix}/stale-probe`);
|
||||
const results = page.getByTestId("add-project-flow-results");
|
||||
await expect(results.getByRole("button", { name: /stale-probe-a/ })).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
|
||||
await addProjectFlowInput(page).fill(`${prefix}/no-such-folder`);
|
||||
await page.keyboard.press("Enter");
|
||||
await expect(addProjectFlow(page).getByText("No matching folders")).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
await expect(addProjectFlow(page)).toBeVisible();
|
||||
await expect(addProjectFlowSubmit(page)).toBeDisabled();
|
||||
} finally {
|
||||
await rm(parentDirectory, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
test("a complete repository URL is cloneable without a GitHub search result", async ({
|
||||
page,
|
||||
}) => {
|
||||
await gotoAppShell(page);
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectMethod(page, "github");
|
||||
await chooseAddProjectTab(page, "clone");
|
||||
|
||||
const remote = "https://github.invalid/acme/manual.git";
|
||||
await addProjectFlowInput(page).fill(remote);
|
||||
await expect(addProjectFlow(page).getByText("manual", { exact: true })).toBeVisible();
|
||||
await page.keyboard.press("Enter");
|
||||
|
||||
await expectAddProjectPage(page, "github-location");
|
||||
const title = addProjectFlow(page).getByTestId("add-project-flow-title");
|
||||
await expect(title.getByText("Choose destination", { exact: true })).toBeVisible();
|
||||
await expect(title.getByText("localhost", { exact: true })).toBeVisible();
|
||||
await expect(title).not.toContainText("Where should Paseo create");
|
||||
await addProjectFlowBack(page).click();
|
||||
await expect(addProjectFlowInput(page)).toHaveValue(remote);
|
||||
await expect(page.getByTestId("add-project-flow-location")).toContainText("/manual");
|
||||
await expect(addProjectFlowSubmit(page)).toBeEnabled();
|
||||
});
|
||||
|
||||
test("New directory validates the name, restores parent and name state, then creates a Project", async ({
|
||||
test("Enter activates a focused button instead of the primary action", async ({ page }) => {
|
||||
await gotoAppShell(page);
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectTab(page, "clone");
|
||||
await addProjectFlowInput(page).fill("https://github.invalid/acme/manual.git");
|
||||
await expect(addProjectFlowSubmit(page)).toBeEnabled();
|
||||
|
||||
await addProjectFlow(page).getByRole("button", { name: "Close", exact: true }).focus();
|
||||
await page.keyboard.press("Enter");
|
||||
await expect(addProjectFlow(page)).toBeHidden();
|
||||
});
|
||||
|
||||
test("a row picked during a search is not replaced by the answer's first row", async ({
|
||||
page,
|
||||
}) => {
|
||||
const parentDirectory = await mkdtemp(path.join(homedir(), "paseo-e2e-dropped-pick-"));
|
||||
try {
|
||||
await Promise.all([
|
||||
mkdir(path.join(parentDirectory, "previous-probe")),
|
||||
mkdir(path.join(parentDirectory, "incoming-probe")),
|
||||
]);
|
||||
await gotoAppShell(page);
|
||||
await openAddProjectFlow(page);
|
||||
const prefix = path.basename(parentDirectory);
|
||||
const results = page.getByTestId("add-project-flow-results");
|
||||
await addProjectFlowInput(page).fill(`${prefix}/previous-probe`);
|
||||
await expect(results.getByRole("button", { name: /previous-probe/ })).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
|
||||
await addProjectFlowInput(page).fill(`${prefix}/incoming-probe`);
|
||||
await page.keyboard.press("ArrowDown");
|
||||
await expect(results.getByRole("button", { name: /incoming-probe/ })).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
await expect(addProjectFlowSubmit(page)).toBeDisabled();
|
||||
} finally {
|
||||
await rm(parentDirectory, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
test("Enter in Location while a new search runs keeps the current location", async ({ page }) => {
|
||||
const parentDirectory = await mkdtemp(path.join(homedir(), "paseo-e2e-stale-location-"));
|
||||
try {
|
||||
await mkdir(path.join(parentDirectory, "stale-probe-a"));
|
||||
await gotoAppShell(page);
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectTab(page, "new-folder");
|
||||
const location = page.getByTestId("add-project-flow-location");
|
||||
const locationBefore = await location.textContent();
|
||||
await location.click();
|
||||
const search = page.getByPlaceholder("Search folders or enter a path").last();
|
||||
const prefix = path.basename(parentDirectory);
|
||||
await search.fill(`${prefix}/stale-probe`);
|
||||
await expect(page.getByText(/stale-probe-a/).last()).toBeVisible({ timeout: 30_000 });
|
||||
|
||||
await search.fill(`${prefix}/no-such-folder`);
|
||||
await page.keyboard.press("Enter");
|
||||
await expect(page.getByText("No matching folders")).toBeVisible({ timeout: 30_000 });
|
||||
await expect(search).toBeVisible();
|
||||
await expect(location).toHaveText(locationBefore ?? "");
|
||||
} finally {
|
||||
await rm(parentDirectory, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
test("New folder validates the name, then creates a Project in the chosen location", async ({
|
||||
page,
|
||||
}) => {
|
||||
const parentDirectory = await mkdtemp(path.join(tmpdir(), "paseo-e2e-new-project-"));
|
||||
@@ -402,27 +428,23 @@ test.describe("Add Project command-center flow", () => {
|
||||
try {
|
||||
await gotoAppShell(page);
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectMethod(page, "new-directory");
|
||||
await chooseAddProjectTab(page, "new-folder");
|
||||
await chooseAddProjectLocation(page, parentDirectory);
|
||||
|
||||
await page.keyboard.type(parentDirectory);
|
||||
await page.keyboard.press("Enter");
|
||||
await expectAddProjectPage(page, "new-directory-name");
|
||||
await page.keyboard.type("../invalid");
|
||||
await page.keyboard.press("Enter");
|
||||
await addProjectFlowInput(page).fill("../invalid");
|
||||
const nameError = page.getByTestId("add-project-flow-name-field-error");
|
||||
await expect(nameError).toHaveText("Use a name without slashes");
|
||||
await expect(addProjectFlowSubmit(page)).toBeDisabled();
|
||||
|
||||
const error = page.getByTestId("add-project-flow-error");
|
||||
await expect(error).toBeVisible();
|
||||
await expect(error).toContainText(/name|separator|directory/i);
|
||||
await expectAddProjectPage(page, "new-directory-name");
|
||||
await addProjectFlowInput(page).fill("C:repo");
|
||||
await expect(nameError).toHaveText("Use a name without a drive letter");
|
||||
await expect(addProjectFlowSubmit(page)).toBeDisabled();
|
||||
|
||||
await addProjectFlowInput(page).fill(directoryName);
|
||||
await addProjectFlowBack(page).click();
|
||||
await expectAddProjectPage(page, "new-directory-parent");
|
||||
await expect(addProjectFlowInput(page)).toHaveValue(parentDirectory);
|
||||
await page.keyboard.press("Enter");
|
||||
await expectAddProjectPage(page, "new-directory-name");
|
||||
await expect(addProjectFlowInput(page)).toHaveValue(directoryName);
|
||||
await page.keyboard.press("Enter");
|
||||
await expect(nameError).toBeHidden();
|
||||
await expect(addProjectFlowSubmit(page)).toBeEnabled();
|
||||
await expect(page.getByTestId("add-project-flow-location")).toContainText(directoryName);
|
||||
await addProjectFlowSubmit(page).click();
|
||||
|
||||
projectId = await expectOpenedProject(page, directoryName);
|
||||
await expectNewWorkspaceForAddedProject(page, {
|
||||
@@ -461,10 +483,11 @@ test.describe("Compact Add project context", () => {
|
||||
await gotoAppShell(page);
|
||||
await page.getByRole("button", { name: "Open menu", exact: true }).click();
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectMethod(page, "directory-search");
|
||||
await addProjectFlowInput(page).fill(projectPickerFixture.fuzzyQuery);
|
||||
await expect(addProjectFlow(page)).toContainText(projectPickerFixture.projectName);
|
||||
await page.keyboard.press("Enter");
|
||||
await expect(
|
||||
page.getByRole("button", { name: new RegExp(projectPickerFixture.projectName) }).first(),
|
||||
).toBeVisible({ timeout: 30_000 });
|
||||
await addProjectFlowSubmit(page).click();
|
||||
const projectId = await expectOpenedProject(page, projectPickerFixture.projectName);
|
||||
projectPickerFixture.rememberProjectId(projectId);
|
||||
await expectNewWorkspaceForAddedProject(page, {
|
||||
|
||||
@@ -4,10 +4,9 @@ import path from "node:path";
|
||||
import { expect, test } from "../support/fixtures";
|
||||
import {
|
||||
addProjectFlow,
|
||||
addProjectFlowBack,
|
||||
addProjectFlowInput,
|
||||
chooseAddProjectMethod,
|
||||
expectAddProjectPage,
|
||||
chooseAddProjectLocation,
|
||||
chooseAddProjectTab,
|
||||
expectNewWorkspaceForAddedProject,
|
||||
openAddProjectFlow,
|
||||
} from "../support/helpers/add-project-flow";
|
||||
@@ -39,28 +38,22 @@ test.describe("Add Project GitHub flow", () => {
|
||||
|
||||
await gotoAppShell(page);
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectMethod(page, "github");
|
||||
await chooseAddProjectTab(page, "clone");
|
||||
|
||||
await addProjectFlowInput(page).fill("getpaseo/paseo");
|
||||
await expect(addProjectFlow(page).getByText("getpaseo/paseo", { exact: true })).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
await addProjectFlowInput(page).fill("");
|
||||
await addProjectFlowInput(page).fill(repository.fullName);
|
||||
|
||||
const repositoryRow = addProjectFlow(page).getByText(repository.fullName, { exact: true });
|
||||
await expect(repositoryRow).toBeVisible({ timeout: 30_000 });
|
||||
await repositoryRow.click();
|
||||
await expectAddProjectPage(page, "github-location");
|
||||
|
||||
await addProjectFlowInput(page).fill(parentDirectory);
|
||||
await expect(addProjectFlow(page)).toContainText(checkoutPath, { timeout: 30_000 });
|
||||
|
||||
await addProjectFlowBack(page).click();
|
||||
await expectAddProjectPage(page, "github-search");
|
||||
await expect(repositoryRow).toBeVisible();
|
||||
await repositoryRow.click();
|
||||
await expectAddProjectPage(page, "github-location");
|
||||
await expect(addProjectFlowInput(page)).toHaveValue(parentDirectory);
|
||||
await chooseAddProjectLocation(page, parentDirectory);
|
||||
await expect(page.getByTestId("add-project-flow-location")).toContainText(
|
||||
path.join(path.basename(parentDirectory), repository.name),
|
||||
);
|
||||
await addProjectFlowInput(page).focus();
|
||||
|
||||
await mkdir(checkoutPath);
|
||||
await page.keyboard.press("Enter");
|
||||
|
||||
@@ -32,6 +32,7 @@ import {
|
||||
waitForWorkspaceTabsVisible,
|
||||
} from "../support/helpers/workspace-tabs";
|
||||
import { getServerId } from "../support/helpers/server-id";
|
||||
import { openSettingsSection } from "../support/helpers/settings";
|
||||
import { buildHostWorkspaceRoute } from "@/utils/host-routes";
|
||||
import { WORKSPACE_DECK_MAX_MOUNTED_WORKSPACES } from "@/screens/workspace/workspace-deck-retention";
|
||||
import { delayBrowserAgentCreatedStatus } from "../support/helpers/new-workspace";
|
||||
@@ -350,6 +351,7 @@ async function selectSendBehaviorInSettings(
|
||||
behaviorLabel: string,
|
||||
stored: string,
|
||||
): Promise<void> {
|
||||
await openSettingsSection(page, "chat");
|
||||
await page.getByRole("button", { name: /^Default send: / }).click();
|
||||
await page.getByRole("menuitem", { name: behaviorLabel, exact: true }).click();
|
||||
await expect
|
||||
|
||||
@@ -2,22 +2,33 @@ import { expect, test } from "../support/fixtures";
|
||||
import {
|
||||
applyProfileFromPicker,
|
||||
closeModelPicker,
|
||||
expectAgentProfileNameDraft,
|
||||
expectComposerDoesNotName,
|
||||
expectAgentProfilesEmptyPrompt,
|
||||
expectProfileEditTooltip,
|
||||
expectHostAgentProfiles,
|
||||
expectComposerMode,
|
||||
expectCreateProfileFromModelRow,
|
||||
expectComposerModel,
|
||||
expectModelRowProfileActionBesideRow,
|
||||
expectModelRowSelected,
|
||||
expectProfileEditIsPencilOnly,
|
||||
expectProfileVisibleForProvider,
|
||||
expectProfileReachableByScrolling,
|
||||
expectProfileSearchResult,
|
||||
expectPickerProfile,
|
||||
expectProfilesEditLink,
|
||||
fillAgentProfileName,
|
||||
openEditProfileFromModelRow,
|
||||
openModelPicker,
|
||||
openAgentProfilesFromEmptyPrompt,
|
||||
removeOpenModalAgentProfileWithConfirm,
|
||||
searchModelPicker,
|
||||
seedAgentProfiles,
|
||||
selectModelRow,
|
||||
} from "../support/helpers/agent-profiles";
|
||||
import { expectWorkspaceAgentConfiguration } from "../support/helpers/command-center-agent-controls";
|
||||
import {
|
||||
chooseCommandCenterAgentControl,
|
||||
expectWorkspaceAgentConfiguration,
|
||||
openCommandCenterForAgent,
|
||||
} from "../support/helpers/command-center-agent-controls";
|
||||
import { expectComposerVisible } from "../support/helpers/composer";
|
||||
import { openAgentRoute, seedMockAgentWorkspace } from "../support/helpers/mock-agent";
|
||||
|
||||
@@ -74,17 +85,19 @@ test.describe("Agent profiles in the model picker", () => {
|
||||
await expectComposerMode(page, "Load test");
|
||||
});
|
||||
|
||||
await test.step("the sole provider opens directly", async () => {
|
||||
await test.step("the picker opens on the agent's provider with Profiles beside it", async () => {
|
||||
await openModelPicker(page);
|
||||
await expect(page.getByTestId("model-search-input").first()).toBeVisible();
|
||||
await expect(page.getByTestId("sheet-header-back")).toHaveCount(0);
|
||||
await expect(page.locator('[data-testid^="model-provider-"]')).toHaveCount(0);
|
||||
await expectProfileVisibleForProvider(page, {
|
||||
await expect(page.getByTestId("model-search-input").first()).toBeFocused();
|
||||
await expect(page.getByTestId("model-provider-mock")).toHaveAttribute(
|
||||
"data-active",
|
||||
"true",
|
||||
);
|
||||
await expectModelRowSelected(page, { provider: "mock", modelId: "ten-second-stream" });
|
||||
await expectPickerProfile(page, {
|
||||
name: PROFILE.name,
|
||||
summary: PROFILE_SUMMARY,
|
||||
});
|
||||
await expectProfileEditIsPencilOnly(page);
|
||||
await expectProfileEditTooltip(page);
|
||||
await expectProfilesEditLink(page);
|
||||
});
|
||||
|
||||
await test.step("applying it writes its model and mode into the composer", async () => {
|
||||
@@ -103,14 +116,13 @@ test.describe("Agent profiles in the model picker", () => {
|
||||
await expectComposerDoesNotName(page, PROFILE.name);
|
||||
});
|
||||
|
||||
await test.step("reopening returns directly to the provider models", async () => {
|
||||
await test.step("reopening returns to the provider models with the new model checked", async () => {
|
||||
await openModelPicker(page);
|
||||
await expect(page.getByTestId("model-search-input").first()).toBeVisible();
|
||||
await expectProfileVisibleForProvider(page, {
|
||||
await expectModelRowSelected(page, { provider: "mock", modelId: "one-minute-stream" });
|
||||
await expectPickerProfile(page, {
|
||||
name: PROFILE.name,
|
||||
summary: PROFILE_SUMMARY,
|
||||
});
|
||||
await expectModelRowSelected(page, { provider: "mock", modelId: "one-minute-stream" });
|
||||
await closeModelPicker(page);
|
||||
});
|
||||
} finally {
|
||||
@@ -139,10 +151,129 @@ test.describe("Agent profiles in the model picker", () => {
|
||||
await openModelPicker(page);
|
||||
await expectModelRowProfileActionBesideRow(page, oneMinute);
|
||||
await expectCreateProfileFromModelRow(page, oneMinute);
|
||||
await expectComposerModel(page, "Ten second stream");
|
||||
await openModelPicker(page);
|
||||
await selectModelRow(page, oneMinute);
|
||||
await expectComposerModel(page, oneMinute.modelLabel);
|
||||
await openModelPicker(page);
|
||||
await selectModelRow(page, { provider: "mock", modelId: "ten-second-stream" });
|
||||
await expectComposerModel(page, "Ten second stream");
|
||||
} finally {
|
||||
await workspace.cleanup();
|
||||
await seed.restore();
|
||||
}
|
||||
});
|
||||
|
||||
test("a profile is found by searching the model picker or the command center", async ({
|
||||
page,
|
||||
}) => {
|
||||
const seed = await seedAgentProfiles([PROFILE]);
|
||||
const workspace = await seedMockAgentWorkspace({
|
||||
repoPrefix: "agent-profiles-search-",
|
||||
title: "Agent profiles search",
|
||||
model: "ten-second-stream",
|
||||
modeId: "load-test",
|
||||
});
|
||||
|
||||
try {
|
||||
await test.step("searching its name in the model picker lists only the profile", async () => {
|
||||
await openAgentRoute(page, workspace);
|
||||
await expectComposerVisible(page);
|
||||
await openModelPicker(page);
|
||||
await searchModelPicker(page, "ui work");
|
||||
await expectProfileSearchResult(page, { name: PROFILE.name });
|
||||
});
|
||||
|
||||
await test.step("searching its model lists the profile above the model", async () => {
|
||||
await searchModelPicker(page, "one minute");
|
||||
await expectProfileSearchResult(page, {
|
||||
name: PROFILE.name,
|
||||
model: { provider: "mock", modelId: "one-minute-stream" },
|
||||
});
|
||||
await closeModelPicker(page);
|
||||
});
|
||||
|
||||
await test.step("choosing it from the command center applies it", async () => {
|
||||
await openCommandCenterForAgent(page, workspace);
|
||||
await chooseCommandCenterAgentControl({
|
||||
page,
|
||||
query: "ui work",
|
||||
choice: `Profile › ${PROFILE.name}`,
|
||||
});
|
||||
await expectComposerModel(page, "One minute stream");
|
||||
await expectComposerMode(page, "Approval test");
|
||||
await expectWorkspaceAgentConfiguration(workspace, {
|
||||
id: workspace.agentId,
|
||||
provider: "mock",
|
||||
model: "one-minute-stream",
|
||||
modeId: "approval-test",
|
||||
});
|
||||
});
|
||||
} finally {
|
||||
await workspace.cleanup();
|
||||
await seed.restore();
|
||||
}
|
||||
});
|
||||
|
||||
test("profile-only search results scroll inside the picker", async ({ page }) => {
|
||||
const profiles = Array.from({ length: 12 }, (_, index) => ({
|
||||
id: `agent_profile_e2e_release_${index + 1}`,
|
||||
name: `Release review ${String(index + 1).padStart(2, "0")}`,
|
||||
provider: "mock",
|
||||
model: "one-minute-stream",
|
||||
}));
|
||||
const seed = await seedAgentProfiles(profiles);
|
||||
const workspace = await seedMockAgentWorkspace({
|
||||
repoPrefix: "agent-profiles-search-scroll-",
|
||||
title: "Agent profiles search scroll",
|
||||
model: "ten-second-stream",
|
||||
modeId: "load-test",
|
||||
});
|
||||
|
||||
try {
|
||||
await openAgentRoute(page, workspace);
|
||||
await expectComposerVisible(page);
|
||||
await openModelPicker(page);
|
||||
await searchModelPicker(page, "release review");
|
||||
await expectProfileSearchResult(page, { name: "Release review 01" });
|
||||
await expectProfileReachableByScrolling(page, "Release review 12");
|
||||
} finally {
|
||||
await workspace.cleanup();
|
||||
await seed.restore();
|
||||
}
|
||||
});
|
||||
|
||||
test("canceling Remove in the composer profile editor keeps the editor and draft open", async ({
|
||||
page,
|
||||
}) => {
|
||||
const seed = await seedAgentProfiles([PROFILE]);
|
||||
const workspace = await seedMockAgentWorkspace({
|
||||
repoPrefix: "agent-profiles-remove-cancel-",
|
||||
title: "Agent profiles remove cancel",
|
||||
model: "ten-second-stream",
|
||||
modeId: "load-test",
|
||||
});
|
||||
|
||||
try {
|
||||
await openAgentRoute(page, workspace);
|
||||
await expectComposerVisible(page);
|
||||
await openModelPicker(page);
|
||||
await openEditProfileFromModelRow(page, {
|
||||
provider: "mock",
|
||||
modelId: "one-minute-stream",
|
||||
});
|
||||
await fillAgentProfileName(page, "Draft name");
|
||||
|
||||
await test.step("canceling Remove keeps the modal and draft intact", async () => {
|
||||
await removeOpenModalAgentProfileWithConfirm(page, "dismiss");
|
||||
await expect(page.getByTestId("agent-profile-edit-modal")).toBeVisible();
|
||||
await expectAgentProfileNameDraft(page, "Draft name");
|
||||
});
|
||||
|
||||
await test.step("confirming Remove deletes the profile and closes the modal", async () => {
|
||||
await removeOpenModalAgentProfileWithConfirm(page, "accept");
|
||||
await expect(page.getByTestId("agent-profile-edit-modal")).toHaveCount(0, {
|
||||
timeout: 30_000,
|
||||
});
|
||||
await expectHostAgentProfiles([]);
|
||||
});
|
||||
} finally {
|
||||
await workspace.cleanup();
|
||||
await seed.restore();
|
||||
|
||||
@@ -1,19 +1,32 @@
|
||||
import { test } from "../support/fixtures";
|
||||
import { expect, test } from "../support/fixtures";
|
||||
import {
|
||||
browserBackWithConfirm,
|
||||
browserHistoryJumpWithConfirm,
|
||||
createAgentProfile,
|
||||
createAgentProfileFromEmptyState,
|
||||
duplicateOpenAgentProfileWithConfirm,
|
||||
editAgentProfile,
|
||||
expectAgentProfile,
|
||||
expectAgentProfileForm,
|
||||
expectAgentProfileNameDraft,
|
||||
expectAgentProfileNotesDraft,
|
||||
expectAgentProfileOrder,
|
||||
expectAgentProfileTagsGone,
|
||||
expectHostAgentProfiles,
|
||||
expectNoAgentProfiles,
|
||||
fillAgentProfileName,
|
||||
fillAgentProfileNotes,
|
||||
moveAgentProfileUp,
|
||||
openAgentProfileEditor,
|
||||
openAgentProfileSettings,
|
||||
openCompactAgentProfileSettings,
|
||||
openCreateAgentProfileEditor,
|
||||
removeAgentProfile,
|
||||
saveOpenAgentProfile,
|
||||
seedAgentProfiles,
|
||||
stageLegacyFavoritesForHostMigration,
|
||||
switchSettingsSectionWithConfirm,
|
||||
toggleAgentProfileCustomize,
|
||||
} from "../support/helpers/agent-profiles";
|
||||
|
||||
const MOCK_PROVIDER_LABEL = "Mock Load Test";
|
||||
@@ -54,6 +67,9 @@ test.describe("Agent profiles settings", () => {
|
||||
try {
|
||||
await test.step("the section starts empty", async () => {
|
||||
await openAgentProfileSettings(page);
|
||||
await expect(page.getByTestId("agent-profiles-description")).toHaveText(
|
||||
"Save agent settings that you can pick quickly and that agents can use to delegate work",
|
||||
);
|
||||
await expectNoAgentProfiles(page);
|
||||
});
|
||||
|
||||
@@ -64,11 +80,18 @@ test.describe("Agent profiles settings", () => {
|
||||
model: "Ten second stream",
|
||||
thinking: "High",
|
||||
mode: "Approval test",
|
||||
systemPrompt: "Focus on layout, accessibility, and design tokens.",
|
||||
notes: "Use for UI work — components, layout and design tokens.",
|
||||
});
|
||||
await expectAgentProfile(page, {
|
||||
name: "UI work",
|
||||
tags: [MOCK_PROVIDER_LABEL, "Ten second stream", "Approval test", "High"],
|
||||
tags: [
|
||||
MOCK_PROVIDER_LABEL,
|
||||
"Ten second stream",
|
||||
"Approval test",
|
||||
"High",
|
||||
"System prompt",
|
||||
],
|
||||
notes: "Use for UI work — components, layout and design tokens.",
|
||||
});
|
||||
});
|
||||
@@ -76,11 +99,12 @@ test.describe("Agent profiles settings", () => {
|
||||
await test.step("editing to a model without thinking levels drops the level", async () => {
|
||||
await editAgentProfile(page, "UI work", {
|
||||
model: "One minute stream",
|
||||
systemPrompt: "Keep replies concise.",
|
||||
notes: "Now for quick checks.",
|
||||
});
|
||||
await expectAgentProfile(page, {
|
||||
name: "UI work",
|
||||
tags: [MOCK_PROVIDER_LABEL, "One minute stream", "Approval test"],
|
||||
tags: [MOCK_PROVIDER_LABEL, "One minute stream", "Approval test", "System prompt"],
|
||||
notes: "Now for quick checks.",
|
||||
});
|
||||
await expectAgentProfileTagsGone(page, {
|
||||
@@ -94,6 +118,7 @@ test.describe("Agent profiles settings", () => {
|
||||
provider: MOCK_PROVIDER_LABEL,
|
||||
model: "One minute stream",
|
||||
mode: "Approval test",
|
||||
systemPrompt: "Keep replies concise.",
|
||||
notes: "Now for quick checks.",
|
||||
});
|
||||
});
|
||||
@@ -125,4 +150,254 @@ test.describe("Agent profiles settings", () => {
|
||||
await seed.restore();
|
||||
}
|
||||
});
|
||||
|
||||
test("remounting the profile form keeps draft text across resize and collapsible toggles", async ({
|
||||
page,
|
||||
}) => {
|
||||
const seed = await seedAgentProfiles([
|
||||
{
|
||||
id: "agent_profile_e2e_remount",
|
||||
name: "Original profile",
|
||||
provider: "mock",
|
||||
model: "one-minute-stream",
|
||||
notes: "Original note",
|
||||
},
|
||||
]);
|
||||
|
||||
try {
|
||||
await page.setViewportSize({ width: 1680, height: 900 });
|
||||
await openAgentProfileSettings(page);
|
||||
|
||||
await test.step("drawer-to-modal and compact resizes keep the edited name and save it", async () => {
|
||||
await openAgentProfileEditor(page, "Original profile");
|
||||
await expect(page.getByTestId("agent-profile-drawer")).toBeVisible();
|
||||
await fillAgentProfileName(page, "Draft rename");
|
||||
|
||||
await page.setViewportSize({ width: 1000, height: 900 });
|
||||
await expect(page.getByTestId("agent-profile-edit-modal")).toBeVisible({ timeout: 30_000 });
|
||||
await expectAgentProfileNameDraft(page, "Draft rename");
|
||||
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await expect(page.getByTestId("agent-profile-edit-modal")).toBeVisible({ timeout: 30_000 });
|
||||
await expectAgentProfileNameDraft(page, "Draft rename");
|
||||
|
||||
await saveOpenAgentProfile(page);
|
||||
await expectAgentProfile(page, {
|
||||
name: "Draft rename",
|
||||
tags: [MOCK_PROVIDER_LABEL, "One minute stream"],
|
||||
notes: "Original note",
|
||||
});
|
||||
});
|
||||
|
||||
await test.step("collapsing and reopening advanced settings keeps the draft note", async () => {
|
||||
await page.setViewportSize({ width: 1000, height: 900 });
|
||||
await openCreateAgentProfileEditor(page);
|
||||
await expect(page.getByTestId("agent-profile-edit-modal")).toBeVisible({ timeout: 30_000 });
|
||||
await toggleAgentProfileCustomize(page);
|
||||
await fillAgentProfileNotes(page, "Draft routing note");
|
||||
await toggleAgentProfileCustomize(page);
|
||||
await toggleAgentProfileCustomize(page);
|
||||
await expectAgentProfileNotesDraft(page, "Draft routing note");
|
||||
});
|
||||
} finally {
|
||||
await seed.restore();
|
||||
}
|
||||
});
|
||||
|
||||
test("duplicating while editing asks before discarding unsaved changes", async ({ page }) => {
|
||||
const seed = await seedAgentProfiles([
|
||||
{
|
||||
id: "agent_profile_e2e_duplicate",
|
||||
name: "UI work",
|
||||
provider: "mock",
|
||||
model: "one-minute-stream",
|
||||
},
|
||||
]);
|
||||
|
||||
try {
|
||||
await page.setViewportSize({ width: 1680, height: 900 });
|
||||
await openAgentProfileSettings(page);
|
||||
await openAgentProfileEditor(page, "UI work");
|
||||
await expect(page.getByTestId("agent-profile-drawer")).toBeVisible();
|
||||
await fillAgentProfileName(page, "Draft name");
|
||||
|
||||
await test.step("dismissing the prompt keeps the draft and does not create a copy", async () => {
|
||||
await duplicateOpenAgentProfileWithConfirm(page, "dismiss");
|
||||
await expectAgentProfileNameDraft(page, "Draft name");
|
||||
await expectAgentProfileOrder(page, ["UI work"]);
|
||||
});
|
||||
|
||||
await test.step("accepting the prompt creates and opens the copy", async () => {
|
||||
await duplicateOpenAgentProfileWithConfirm(page, "accept");
|
||||
await expectAgentProfileOrder(page, ["UI work", "UI work (copy)"]);
|
||||
await expectAgentProfileNameDraft(page, "UI work (copy)");
|
||||
});
|
||||
} finally {
|
||||
await seed.restore();
|
||||
}
|
||||
});
|
||||
|
||||
test("docked drawer allows roster search and section switches ask before discarding a draft", async ({
|
||||
page,
|
||||
}) => {
|
||||
const seed = await seedAgentProfiles([
|
||||
{
|
||||
id: "agent_profile_e2e_docked_1",
|
||||
name: "UI work",
|
||||
provider: "mock",
|
||||
model: "one-minute-stream",
|
||||
},
|
||||
{
|
||||
id: "agent_profile_e2e_docked_2",
|
||||
name: "Deep review",
|
||||
provider: "mock",
|
||||
model: "five-minute-stream",
|
||||
},
|
||||
]);
|
||||
|
||||
try {
|
||||
await page.setViewportSize({ width: 1680, height: 900 });
|
||||
await openAgentProfileSettings(page);
|
||||
await openAgentProfileEditor(page, "UI work");
|
||||
await expect(page.getByTestId("agent-profile-drawer")).toBeVisible();
|
||||
|
||||
await test.step("typing in roster search works while the docked drawer is open", async () => {
|
||||
const searchInput = page.getByTestId("agent-profiles-search-input");
|
||||
await searchInput.click();
|
||||
await page.keyboard.type("Deep");
|
||||
await expect(searchInput).toHaveValue("Deep");
|
||||
await expect(page.getByTestId("agent-profile-drawer")).toBeVisible();
|
||||
await expectAgentProfileOrder(page, ["Deep review"]);
|
||||
await page.getByTestId("agent-profiles-search-clear").click();
|
||||
});
|
||||
|
||||
await test.step("browser Back asks before discarding a draft and canceling keeps route and draft", async () => {
|
||||
await fillAgentProfileName(page, "Unsaved browser back edit");
|
||||
const profilesUrl = page.url();
|
||||
|
||||
await browserBackWithConfirm(page, "dismiss");
|
||||
await expect(page).toHaveURL(profilesUrl, { timeout: 15_000 });
|
||||
await expect(page.getByTestId("agent-profile-drawer")).toBeVisible();
|
||||
await expectAgentProfileNameDraft(page, "Unsaved browser back edit");
|
||||
});
|
||||
|
||||
await test.step("switching Settings sections asks before discarding an edited draft", async () => {
|
||||
await fillAgentProfileName(page, "Unsaved sidebar edit");
|
||||
|
||||
await switchSettingsSectionWithConfirm(page, "Tools & prompts", "dismiss");
|
||||
await expect(page.getByTestId("agent-profile-drawer")).toBeVisible();
|
||||
await expectAgentProfileNameDraft(page, "Unsaved sidebar edit");
|
||||
|
||||
await switchSettingsSectionWithConfirm(page, "Tools & prompts", "accept");
|
||||
await expect(page.getByTestId("agent-profile-drawer")).toHaveCount(0, { timeout: 30_000 });
|
||||
await expect(page.getByTestId("settings-detail-header-title")).toHaveText(
|
||||
"Tools & prompts",
|
||||
);
|
||||
});
|
||||
|
||||
await test.step("confirming browser Back leaves Agent profiles and discards the draft", async () => {
|
||||
await page.getByRole("button", { name: "Agent profiles", exact: true }).click();
|
||||
await expect(page.getByTestId("agent-profiles-card")).toBeVisible({ timeout: 30_000 });
|
||||
await openAgentProfileEditor(page, "UI work");
|
||||
await fillAgentProfileName(page, "Discard on browser back");
|
||||
const profilesUrl = page.url();
|
||||
|
||||
await browserBackWithConfirm(page, "accept");
|
||||
await expect(page).not.toHaveURL(profilesUrl, { timeout: 15_000 });
|
||||
await expect(page.getByTestId("agent-profile-drawer")).toHaveCount(0, { timeout: 30_000 });
|
||||
});
|
||||
} finally {
|
||||
await seed.restore();
|
||||
}
|
||||
});
|
||||
|
||||
test("canceling a multi-step Back jump keeps intervening browser history and confirming reaches the destination", async ({
|
||||
page,
|
||||
}) => {
|
||||
const seed = await seedAgentProfiles([
|
||||
{
|
||||
id: "agent_profile_e2e_multistep",
|
||||
name: "UI work",
|
||||
provider: "mock",
|
||||
model: "one-minute-stream",
|
||||
},
|
||||
]);
|
||||
|
||||
try {
|
||||
// Narrow viewport pushes Open project -> Settings -> Agent profiles onto history.
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await openCompactAgentProfileSettings(page);
|
||||
const profilesUrl = page.url();
|
||||
|
||||
await openAgentProfileEditor(page, "UI work");
|
||||
await fillAgentProfileName(page, "Unsaved multi-step edit");
|
||||
|
||||
await test.step("canceling a two-step Back jump keeps Agent profiles, draft, and Settings in history", async () => {
|
||||
await browserHistoryJumpWithConfirm(page, -2, "dismiss");
|
||||
await expect(page).toHaveURL(profilesUrl, { timeout: 15_000 });
|
||||
await expect(page.getByTestId("agent-profile-edit-modal")).toBeVisible();
|
||||
await expectAgentProfileNameDraft(page, "Unsaved multi-step edit");
|
||||
});
|
||||
|
||||
await test.step("canceling a two-step Back jump after reload still restores the Agent profiles URL", async () => {
|
||||
await page.reload();
|
||||
await expect(page.getByTestId("agent-profiles-card")).toBeVisible({ timeout: 30_000 });
|
||||
await openAgentProfileEditor(page, "UI work");
|
||||
await fillAgentProfileName(page, "Post-reload draft");
|
||||
|
||||
await browserHistoryJumpWithConfirm(page, -2, "dismiss");
|
||||
await expect(page).toHaveURL(profilesUrl, { timeout: 15_000 });
|
||||
await expect(page.getByTestId("agent-profile-edit-modal")).toBeVisible();
|
||||
await expectAgentProfileNameDraft(page, "Post-reload draft");
|
||||
});
|
||||
|
||||
await test.step("confirming a two-step Back jump lands directly on the selected destination", async () => {
|
||||
await browserHistoryJumpWithConfirm(page, -2, "accept");
|
||||
await expect(page).toHaveURL(/\/open-project/, { timeout: 15_000 });
|
||||
await expect(page.getByTestId("agent-profile-edit-modal")).toHaveCount(0, {
|
||||
timeout: 30_000,
|
||||
});
|
||||
});
|
||||
|
||||
await test.step("forward navigation confirms the intervening Settings entry survived", async () => {
|
||||
await page.goForward();
|
||||
await expect(page).toHaveURL(/\/settings(?:\?|$)/, { timeout: 15_000 });
|
||||
});
|
||||
} finally {
|
||||
await seed.restore();
|
||||
}
|
||||
});
|
||||
|
||||
test("canceling an untouched provider-and-model-only profile closes without a discard prompt", async ({
|
||||
page,
|
||||
}) => {
|
||||
const seed = await seedAgentProfiles([
|
||||
{
|
||||
id: "legacy_favorite:mock:one-minute-stream",
|
||||
name: "One minute stream",
|
||||
provider: "mock",
|
||||
model: "one-minute-stream",
|
||||
},
|
||||
]);
|
||||
|
||||
let dialogTriggered = false;
|
||||
const onDialog = async (dialog: { dismiss: () => Promise<void> }) => {
|
||||
dialogTriggered = true;
|
||||
await dialog.dismiss();
|
||||
};
|
||||
page.on("dialog", onDialog);
|
||||
|
||||
try {
|
||||
await page.setViewportSize({ width: 1680, height: 900 });
|
||||
await openAgentProfileSettings(page);
|
||||
await openAgentProfileEditor(page, "One minute stream");
|
||||
await expect(page.getByTestId("agent-profile-drawer")).toBeVisible();
|
||||
await page.getByTestId("agent-profile-cancel-button").click();
|
||||
await expect(page.getByTestId("agent-profile-drawer")).toHaveCount(0, { timeout: 30_000 });
|
||||
expect(dialogTriggered).toBe(false);
|
||||
} finally {
|
||||
page.off("dialog", onDialog);
|
||||
await seed.restore();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -0,0 +1,559 @@
|
||||
import type { DaemonClient } from "@getpaseo/client/internal/daemon-client";
|
||||
import { connectDaemonClient } from "../support/helpers/daemon-client-loader";
|
||||
import {
|
||||
beginTextReveal,
|
||||
retargetTextReveal,
|
||||
visibleRevealedText,
|
||||
} from "../../src/agent-stream/text-reveal";
|
||||
import type { Page } from "@playwright/test";
|
||||
import { test, expect } from "../support/fixtures";
|
||||
import { expectComposerVisible } from "../support/helpers/composer";
|
||||
import { scrollChatAwayFromBottom } from "../support/helpers/agent-bottom-anchor";
|
||||
import { openAgentRoute, seedMockAgentWorkspace } from "../support/helpers/mock-agent";
|
||||
|
||||
test.use({
|
||||
e2eDaemonConfig: {
|
||||
version: 1,
|
||||
agents: {
|
||||
providers: Object.fromEntries(
|
||||
[
|
||||
"claude",
|
||||
"codex",
|
||||
"copilot",
|
||||
"opencode",
|
||||
"pi",
|
||||
"omp",
|
||||
"antigravity",
|
||||
"hoplite",
|
||||
"muse",
|
||||
].map((id) => [id, { enabled: false }]),
|
||||
),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
interface ClosingFenceFrameSample {
|
||||
text: string;
|
||||
codeBlockHeights: number[];
|
||||
codeBlockTexts: string[];
|
||||
messageHeights: number[];
|
||||
partialFenceLines: string[];
|
||||
}
|
||||
|
||||
interface ClosingFenceFrameReport {
|
||||
finished: boolean;
|
||||
samples: ClosingFenceFrameSample[];
|
||||
}
|
||||
|
||||
async function sampleClosingFenceFrames(page: Page): Promise<ClosingFenceFrameReport> {
|
||||
return await page.evaluate(async () => {
|
||||
const samples: ClosingFenceFrameSample[] = [];
|
||||
let finished = false;
|
||||
|
||||
await new Promise<void>((resolve) => {
|
||||
const tick = () => {
|
||||
const messages = Array.from(
|
||||
document.querySelectorAll<HTMLElement>('[data-testid="assistant-message"]'),
|
||||
);
|
||||
const text = messages.map((message) => message.textContent ?? "").join("");
|
||||
const sample: ClosingFenceFrameSample = {
|
||||
text,
|
||||
codeBlockHeights: [],
|
||||
codeBlockTexts: [],
|
||||
messageHeights: messages.map((message) =>
|
||||
Math.round(message.getBoundingClientRect().height),
|
||||
),
|
||||
partialFenceLines: [],
|
||||
};
|
||||
|
||||
for (const message of messages) {
|
||||
for (const block of message.querySelectorAll<HTMLElement>(
|
||||
'pre, [data-paseo-markdown-tag="pre"]',
|
||||
)) {
|
||||
const code = block.querySelector<HTMLElement>('code, [data-paseo-markdown-tag="code"]');
|
||||
const codeText = code?.textContent ?? block.textContent ?? "";
|
||||
sample.codeBlockTexts.push(codeText.trimEnd());
|
||||
// Opening fence prefixes render as prose; closing artifacts live inside code blocks.
|
||||
for (const line of codeText.split(/\r?\n/)) {
|
||||
if (/^\s*`{1,2}\s*$/.test(line)) sample.partialFenceLines.push(line);
|
||||
}
|
||||
sample.codeBlockHeights.push(Math.round(block.getBoundingClientRect().height));
|
||||
}
|
||||
}
|
||||
|
||||
samples.push(sample);
|
||||
|
||||
finished = text.includes("Both blocks are closed.");
|
||||
if (finished) {
|
||||
resolve();
|
||||
return;
|
||||
}
|
||||
requestAnimationFrame(tick);
|
||||
};
|
||||
requestAnimationFrame(tick);
|
||||
});
|
||||
|
||||
return { finished, samples };
|
||||
});
|
||||
}
|
||||
|
||||
const FIRST_PAUSE_TEXT = "Here is the first snippet:const answer = 42;\nconsole.log(answer);";
|
||||
const SECOND_PAUSE_TEXT = `${FIRST_PAUSE_TEXT}And a second one:echo done`;
|
||||
|
||||
for (const { label, html } of [
|
||||
{ label: "semantic", html: "<pre><code>const answer = 42;\n`\n``</code></pre>" },
|
||||
{
|
||||
label: "annotated",
|
||||
html: '<div data-paseo-markdown-tag="pre"><span data-paseo-markdown-tag="code">const answer = 42;\n`\n``</span><button>Copy</button></div>',
|
||||
},
|
||||
{
|
||||
label: "annotated semantic",
|
||||
html: '<pre data-paseo-markdown-tag="pre"><code data-paseo-markdown-tag="code">const answer = 42;\n`\n``</code></pre>',
|
||||
},
|
||||
]) {
|
||||
test(`samples ${label} code block DOM without duplicate blocks or controls`, async ({ page }) => {
|
||||
await page.setContent(
|
||||
`<div data-testid="assistant-message">${html}<p>Both blocks are closed.</p></div>`,
|
||||
);
|
||||
const report = await sampleClosingFenceFrames(page);
|
||||
const sample = report.samples.at(-1)!;
|
||||
expect(report.finished).toBe(true);
|
||||
expect(sample.codeBlockTexts).toEqual(["const answer = 42;\n`\n``"]);
|
||||
expect(sample.partialFenceLines).toEqual(["`", "``"]);
|
||||
expect(sample.codeBlockHeights).toHaveLength(1);
|
||||
expect(sample.codeBlockHeights[0]).toBeGreaterThan(0);
|
||||
});
|
||||
}
|
||||
|
||||
function closingFencePauseSamples(
|
||||
samples: readonly ClosingFenceFrameSample[],
|
||||
pauseText: string,
|
||||
): ClosingFenceFrameSample[] {
|
||||
return samples.filter((sample) => sample.text === pauseText);
|
||||
}
|
||||
|
||||
function expectStableGeometry(
|
||||
samples: readonly ClosingFenceFrameSample[],
|
||||
expectedCodeBlockTexts: readonly string[],
|
||||
): void {
|
||||
expect(samples.length, "the paused text state should be sampled").toBeGreaterThan(0);
|
||||
expect(
|
||||
samples.every(
|
||||
(sample) => JSON.stringify(sample.codeBlockTexts) === JSON.stringify(expectedCodeBlockTexts),
|
||||
),
|
||||
"the sampled code should contain only the authored lines",
|
||||
).toBe(true);
|
||||
const geometries = new Set(
|
||||
samples.map((sample) => JSON.stringify([sample.messageHeights, sample.codeBlockHeights])),
|
||||
);
|
||||
expect(
|
||||
geometries.size,
|
||||
"message and code block geometry should stay fixed during the pause",
|
||||
).toBe(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* A closing fence that is still being typed must not be painted as code.
|
||||
*
|
||||
* The mock reply closes each code block in two arrivals: one backtick, a pause,
|
||||
* then the other two. Painted, that first backtick is a line of code that
|
||||
* vanishes when the fence completes, so the block grows and shrinks and every
|
||||
* row below it moves twice. Each pause is sampled and its text geometry checked.
|
||||
*/
|
||||
test("does not paint a closing fence while it is still being typed", async ({ page }, testInfo) => {
|
||||
test.setTimeout(90_000);
|
||||
const agent = await seedMockAgentWorkspace({
|
||||
repoPrefix: "closing-fence-",
|
||||
title: "Closing fence",
|
||||
model: "e2e-fast-stream",
|
||||
});
|
||||
try {
|
||||
await openAgentRoute(page, agent);
|
||||
await expectComposerVisible(page);
|
||||
const reportPromise = sampleClosingFenceFrames(page);
|
||||
await agent.client.sendAgentMessage(
|
||||
agent.agentId,
|
||||
"Stream a code block with a split closing fence.",
|
||||
);
|
||||
const report = await reportPromise;
|
||||
|
||||
await testInfo.attach("closing-fence-frames", {
|
||||
body: JSON.stringify(report, null, 2),
|
||||
contentType: "application/json",
|
||||
});
|
||||
expect(report.finished, "the reply should finish streaming").toBe(true);
|
||||
expect(
|
||||
report.samples.flatMap((sample) => sample.partialFenceLines),
|
||||
"no frame, including transitions outside the pause windows, may show a partial fence inside code",
|
||||
).toEqual([]);
|
||||
const firstPauseSamples = closingFencePauseSamples(report.samples, FIRST_PAUSE_TEXT);
|
||||
const secondPauseSamples = closingFencePauseSamples(report.samples, SECOND_PAUSE_TEXT);
|
||||
expectStableGeometry(firstPauseSamples, ["const answer = 42;\nconsole.log(answer);"]);
|
||||
expectStableGeometry(secondPauseSamples, [
|
||||
"const answer = 42;\nconsole.log(answer);",
|
||||
"echo done",
|
||||
]);
|
||||
expect(secondPauseSamples[0]?.codeBlockHeights[0]).toBe(
|
||||
firstPauseSamples[0]?.codeBlockHeights[0],
|
||||
);
|
||||
} finally {
|
||||
await agent.cleanup();
|
||||
}
|
||||
});
|
||||
|
||||
test("excludes each revealed character of the next paragraph from both pauses", () => {
|
||||
for (const [pauseText, paragraph] of [
|
||||
[FIRST_PAUSE_TEXT, "And a second one:"],
|
||||
[SECOND_PAUSE_TEXT, "Both blocks are closed."],
|
||||
]) {
|
||||
const state = retargetTextReveal(beginTextReveal(pauseText), pauseText + paragraph);
|
||||
const samples = Array.from({ length: paragraph.length + 1 }, (_, index) => ({
|
||||
text: visibleRevealedText({ ...state, revealed: pauseText.length + index }),
|
||||
codeBlockHeights: [],
|
||||
codeBlockTexts: [],
|
||||
messageHeights: [index],
|
||||
partialFenceLines: [],
|
||||
}));
|
||||
expect(closingFencePauseSamples(samples, pauseText)).toEqual([samples[0]]);
|
||||
}
|
||||
});
|
||||
|
||||
for (const { label, markdown, expectedCode, expectedPartialFenceLines } of [
|
||||
{
|
||||
label: "opening prefixes in prose",
|
||||
markdown: "And a second one:\n\n`\n\n``\n\nBoth blocks are closed.",
|
||||
expectedCode: [],
|
||||
expectedPartialFenceLines: [],
|
||||
},
|
||||
{
|
||||
label: "partial fences inside rendered code",
|
||||
markdown: "```ts\nconst answer = 42;\n`\n``\n```\n\nBoth blocks are closed.",
|
||||
expectedCode: ["const answer = 42;\n`\n``"],
|
||||
expectedPartialFenceLines: ["`", "``"],
|
||||
},
|
||||
]) {
|
||||
test(`samples ${label} in the correct container`, async ({ page }, testInfo) => {
|
||||
const agent = await seedMockAgentWorkspace({
|
||||
repoPrefix: "fence-sample-container-",
|
||||
title: "Fence sample container",
|
||||
featureValues: { mockAssistantResponse: markdown },
|
||||
});
|
||||
try {
|
||||
await openAgentRoute(page, agent);
|
||||
await expectComposerVisible(page);
|
||||
const reportPromise = sampleClosingFenceFrames(page);
|
||||
await agent.client.sendAgentMessage(agent.agentId, "Show the fence sampling fixture.");
|
||||
const report = await reportPromise;
|
||||
await testInfo.attach("fence-container-frames", {
|
||||
body: JSON.stringify(report, null, 2),
|
||||
contentType: "application/json",
|
||||
});
|
||||
expect(report.finished).toBe(true);
|
||||
const messageText = await page.getByTestId("assistant-message").innerText();
|
||||
const messageLines = messageText.split(/\r?\n/);
|
||||
const messageFenceLines = messageLines.filter((line) => /^\s*`{1,2}\s*$/.test(line));
|
||||
expect(messageFenceLines).toEqual(["`", "``"]);
|
||||
const finalSample = report.samples.at(-1);
|
||||
expect(finalSample?.codeBlockTexts).toEqual(expectedCode);
|
||||
expect(finalSample?.partialFenceLines).toEqual(expectedPartialFenceLines);
|
||||
} finally {
|
||||
await agent.cleanup();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
test("shows the complete reasoning after a streamed turn finishes", async ({ page }, testInfo) => {
|
||||
test.setTimeout(90_000);
|
||||
await page.setViewportSize({ width: 1280, height: 900 });
|
||||
await page.addInitScript(() => {
|
||||
localStorage.setItem(
|
||||
"@paseo:app-settings",
|
||||
JSON.stringify({ toolCallDetailLevel: "detailed", autoExpandReasoning: true }),
|
||||
);
|
||||
});
|
||||
const reasoning =
|
||||
"Need to find the scroll container, the layout effect that watches for new messages, and any gesture handler that might fight with programmatic scrolling. Probably a ref on the FlatList plus a near-bottom threshold.";
|
||||
const agent = await seedMockAgentWorkspace({
|
||||
repoPrefix: "finished-reasoning-",
|
||||
title: "Finished reasoning",
|
||||
model: "ten-second-stream",
|
||||
});
|
||||
const historyClient = await connectDaemonClient<
|
||||
Pick<DaemonClient, "connect" | "close" | "fetchAgentTimeline">
|
||||
>({ clientIdPrefix: "finished-reasoning-history" });
|
||||
try {
|
||||
await openAgentRoute(page, agent);
|
||||
await expectComposerVisible(page);
|
||||
await agent.client.sendAgentMessage(
|
||||
agent.agentId,
|
||||
"Stream briefly to check finished reasoning.",
|
||||
);
|
||||
await agent.client.waitForFinish(agent.agentId, 30_000);
|
||||
const history = await historyClient.fetchAgentTimeline(agent.agentId, { limit: 500 });
|
||||
const thoughts = history.entries
|
||||
.map((entry) => entry.item)
|
||||
.filter((item) => item.type === "reasoning");
|
||||
await testInfo.attach("canonical-reasoning", {
|
||||
body: JSON.stringify(thoughts, null, 2),
|
||||
contentType: "application/json",
|
||||
});
|
||||
expect(thoughts[0]?.text).toBe(reasoning);
|
||||
const expectedCounts = new Map<string, number>();
|
||||
for (const thought of thoughts)
|
||||
expectedCounts.set(thought.text, (expectedCounts.get(thought.text) ?? 0) + 1);
|
||||
const rendered = page.getByText(reasoning, { exact: true });
|
||||
for (const [text, count] of expectedCounts)
|
||||
await expect(page.getByText(text, { exact: true })).toHaveCount(count);
|
||||
await expect(rendered.first()).toBeVisible();
|
||||
await testInfo.attach("finished-reasoning", {
|
||||
body: await page.screenshot(),
|
||||
contentType: "image/png",
|
||||
});
|
||||
await page.reload();
|
||||
for (const [text, count] of expectedCounts)
|
||||
await expect(page.getByText(text, { exact: true })).toHaveCount(count);
|
||||
await expect(rendered.first()).toBeVisible();
|
||||
} catch (error) {
|
||||
await testInfo.attach("reasoning-before-cleanup", {
|
||||
body: await page.screenshot(),
|
||||
contentType: "image/png",
|
||||
});
|
||||
throw error;
|
||||
} finally {
|
||||
await historyClient.close();
|
||||
await agent.cleanup();
|
||||
}
|
||||
});
|
||||
|
||||
test("records equal-input long-reply rendering metrics", async ({ page }, testInfo) => {
|
||||
test.setTimeout(120_000);
|
||||
await page.setViewportSize({ width: 1280, height: 900 });
|
||||
const markdown =
|
||||
Array.from({ length: 15 }, (_, index) =>
|
||||
[
|
||||
"### Block " + index,
|
||||
"",
|
||||
"\x60\x60\x60ts",
|
||||
...Array.from(
|
||||
{ length: 12 },
|
||||
(_value, line) => "const value_" + index + "_" + line + " = " + (index * 12 + line) + ";",
|
||||
),
|
||||
"\x60\x60\x60",
|
||||
"",
|
||||
].join("\n"),
|
||||
).join("\n") + "\nEqual-input stream complete.";
|
||||
const agent = await seedMockAgentWorkspace({
|
||||
repoPrefix: "equal-input-long-reply-",
|
||||
title: "Equal-input long reply",
|
||||
featureValues: {
|
||||
mockStreamingAssistantResponse: markdown,
|
||||
mockStreamingAssistantIntervalMs: 5,
|
||||
},
|
||||
});
|
||||
try {
|
||||
await openAgentRoute(page, agent);
|
||||
await expectComposerVisible(page);
|
||||
const session = await page.context().newCDPSession(page);
|
||||
await session.send("Performance.enable");
|
||||
const before = await session.send("Performance.getMetrics");
|
||||
const sampler = await page.evaluateHandle(() => {
|
||||
const state = {
|
||||
frames: [] as number[],
|
||||
longTasks: [] as number[],
|
||||
running: true,
|
||||
last: performance.now(),
|
||||
};
|
||||
const observer = new PerformanceObserver((list) => {
|
||||
state.longTasks.push(...list.getEntries().map((entry) => entry.duration));
|
||||
});
|
||||
observer.observe({ type: "longtask", buffered: false });
|
||||
const tick = (now: number) => {
|
||||
state.frames.push(now - state.last);
|
||||
state.last = now;
|
||||
if (state.running) requestAnimationFrame(tick);
|
||||
};
|
||||
requestAnimationFrame(tick);
|
||||
return { state, observer };
|
||||
});
|
||||
await agent.client.sendAgentMessage(agent.agentId, "Render the fixed fifteen-block fixture.");
|
||||
await agent.client.waitForFinish(agent.agentId, 60_000);
|
||||
const message = page.getByTestId("assistant-message").last();
|
||||
await expect(message).toContainText("Equal-input stream complete.", { timeout: 30_000 });
|
||||
const blocks = message.locator('pre, [data-paseo-markdown-tag="pre"]');
|
||||
await expect(blocks).toHaveCount(15);
|
||||
for (let index = 0; index < 15; index++) {
|
||||
await expect(blocks.nth(index)).toContainText(
|
||||
"const value_" + index + "_11 = " + (index * 12 + 11) + ";",
|
||||
);
|
||||
}
|
||||
const samples = await sampler.evaluate(({ state, observer }) => {
|
||||
state.running = false;
|
||||
state.longTasks.push(...observer.takeRecords().map((entry) => entry.duration));
|
||||
observer.disconnect();
|
||||
return state;
|
||||
});
|
||||
const after = await session.send("Performance.getMetrics");
|
||||
const frames = [...samples.frames].sort((a, b) => a - b);
|
||||
await testInfo.attach("equal-input-rendering", {
|
||||
body: JSON.stringify(
|
||||
{
|
||||
markdown,
|
||||
viewport: page.viewportSize(),
|
||||
intervalMs: 5,
|
||||
frameCount: frames.length,
|
||||
frameP95Ms: frames[Math.floor(frames.length * 0.95)],
|
||||
maxFrameMs: frames.at(-1),
|
||||
longTasksMs: samples.longTasks,
|
||||
before: before.metrics,
|
||||
after: after.metrics,
|
||||
},
|
||||
null,
|
||||
2,
|
||||
),
|
||||
contentType: "application/json",
|
||||
});
|
||||
await sampler.dispose();
|
||||
await session.detach();
|
||||
} finally {
|
||||
await agent.cleanup();
|
||||
}
|
||||
});
|
||||
|
||||
test("manually expands complete reasoning after leaving output following", async ({
|
||||
page,
|
||||
}, testInfo) => {
|
||||
test.setTimeout(90_000);
|
||||
await page.setViewportSize({ width: 1280, height: 900 });
|
||||
await page.addInitScript(() => {
|
||||
localStorage.setItem(
|
||||
"@paseo:app-settings",
|
||||
JSON.stringify({ chatDisplay: "full", autoExpandReasoning: false }),
|
||||
);
|
||||
});
|
||||
const agent = await seedMockAgentWorkspace({
|
||||
repoPrefix: "manual-finished-reasoning-",
|
||||
title: "Manual finished reasoning",
|
||||
model: "ten-second-stream",
|
||||
});
|
||||
const historyClient = await connectDaemonClient<
|
||||
Pick<DaemonClient, "connect" | "close" | "fetchAgentTimeline">
|
||||
>({ clientIdPrefix: "manual-finished-reasoning-history" });
|
||||
try {
|
||||
await openAgentRoute(page, agent);
|
||||
await expectComposerVisible(page);
|
||||
await agent.client.sendAgentMessage(
|
||||
agent.agentId,
|
||||
"Stream briefly to check finished reasoning.",
|
||||
);
|
||||
const finished = await agent.client.waitForFinish(agent.agentId, 30_000);
|
||||
expect(finished.status).toBe("idle");
|
||||
await testInfo.attach("manual-completed-turn", {
|
||||
body: JSON.stringify(finished),
|
||||
contentType: "application/json",
|
||||
});
|
||||
const history = await historyClient.fetchAgentTimeline(agent.agentId, { limit: 500 });
|
||||
const thoughts = history.entries
|
||||
.map((entry) => entry.item)
|
||||
.filter((item) => item.type === "reasoning");
|
||||
expect(thoughts.length).toBeGreaterThan(0);
|
||||
expect(thoughts.every((thought) => thought.text.length > 0)).toBe(true);
|
||||
const expectedCounts = new Map<string, number>();
|
||||
for (const thought of thoughts)
|
||||
expectedCounts.set(thought.text, (expectedCounts.get(thought.text) ?? 0) + 1);
|
||||
await testInfo.attach("manual-canonical-reasoning", {
|
||||
body: JSON.stringify(thoughts, null, 2),
|
||||
contentType: "application/json",
|
||||
});
|
||||
const pointerCapture = await page.evaluateHandle(() => {
|
||||
const events: {
|
||||
type: string;
|
||||
timestamp: number;
|
||||
tag: string;
|
||||
label: string;
|
||||
scrollTop: number | null;
|
||||
}[] = [];
|
||||
const observe = (event: Event) => {
|
||||
const target = event.target;
|
||||
if (!(target instanceof HTMLElement)) return;
|
||||
const scroll = document.querySelector<HTMLElement>('[data-testid="agent-chat-scroll"]');
|
||||
events.push({
|
||||
type: event.type,
|
||||
timestamp: event.timeStamp,
|
||||
tag: target.tagName,
|
||||
label: target.textContent?.slice(0, 80) ?? "",
|
||||
scrollTop: scroll?.scrollTop ?? null,
|
||||
});
|
||||
};
|
||||
for (const type of ["pointerdown", "pointerup", "wheel"])
|
||||
document.addEventListener(type, observe, true);
|
||||
return {
|
||||
events,
|
||||
stop: () => {
|
||||
for (const type of ["pointerdown", "pointerup", "wheel"])
|
||||
document.removeEventListener(type, observe, true);
|
||||
},
|
||||
};
|
||||
});
|
||||
const badges = page.getByTestId("tool-call-badge").filter({ hasText: "Thinking" });
|
||||
await expect(badges).toHaveCount(thoughts.length);
|
||||
// Locator scrolling alone leaves output-following armed, so pointer-down can
|
||||
// snap the feed to its tail before pointer-up reaches the Thinking control.
|
||||
await scrollChatAwayFromBottom(page, { deltaY: -600, minDistanceFromBottom: 100 });
|
||||
for (let index = 0; index < thoughts.length; index++) {
|
||||
await badges
|
||||
.nth(index)
|
||||
.getByRole("button", { name: "Thinking", exact: true })
|
||||
.first()
|
||||
.click();
|
||||
await expect(
|
||||
badges.nth(index).getByText(thoughts[index].text, { exact: true }),
|
||||
).toBeVisible();
|
||||
}
|
||||
for (const [text, count] of expectedCounts)
|
||||
await expect(page.getByText(text, { exact: true })).toHaveCount(count);
|
||||
const first = badges.first();
|
||||
await first.getByRole("button", { name: "Thinking", exact: true }).first().click();
|
||||
await expect(first.getByText(thoughts[0].text, { exact: true })).not.toBeVisible();
|
||||
await first.getByRole("button", { name: "Thinking", exact: true }).first().click();
|
||||
await expect(first.getByText(thoughts[0].text, { exact: true })).toBeVisible();
|
||||
for (const [text, count] of expectedCounts)
|
||||
await expect(page.getByText(text, { exact: true })).toHaveCount(count);
|
||||
await testInfo.attach("manual-expanded-reasoning", {
|
||||
body: await page.screenshot(),
|
||||
contentType: "image/png",
|
||||
});
|
||||
const pointerEvents = await pointerCapture.evaluate(({ events, stop }) => {
|
||||
stop();
|
||||
return events;
|
||||
});
|
||||
await pointerCapture.dispose();
|
||||
await testInfo.attach("manual-pointer-events", {
|
||||
body: JSON.stringify(pointerEvents, null, 2),
|
||||
contentType: "application/json",
|
||||
});
|
||||
await page.reload();
|
||||
await expect(badges).toHaveCount(thoughts.length);
|
||||
await scrollChatAwayFromBottom(page, { deltaY: -600, minDistanceFromBottom: 100 });
|
||||
for (let index = 0; index < thoughts.length; index++) {
|
||||
await badges
|
||||
.nth(index)
|
||||
.getByRole("button", { name: "Thinking", exact: true })
|
||||
.first()
|
||||
.click();
|
||||
await expect(
|
||||
badges.nth(index).getByText(thoughts[index].text, { exact: true }),
|
||||
).toBeVisible();
|
||||
}
|
||||
for (const [text, count] of expectedCounts)
|
||||
await expect(page.getByText(text, { exact: true })).toHaveCount(count);
|
||||
} catch (error) {
|
||||
await testInfo.attach("manual-before-cleanup", {
|
||||
body: await page.screenshot(),
|
||||
contentType: "image/png",
|
||||
});
|
||||
throw error;
|
||||
} finally {
|
||||
await historyClient.close();
|
||||
await agent.cleanup();
|
||||
}
|
||||
});
|
||||
@@ -757,6 +757,161 @@ test("pasting an assistant selection preserves literal underscores and authored
|
||||
}
|
||||
});
|
||||
|
||||
const QUOTE_BODY = [
|
||||
"Draft for the team: **ship it** with [the notes](https://example.com/notes).",
|
||||
"",
|
||||
"> Nested reply.",
|
||||
"",
|
||||
"```ts",
|
||||
"const quoted = 1;",
|
||||
"```",
|
||||
"",
|
||||
"```mermaid",
|
||||
"flowchart LR",
|
||||
" Start --> Done",
|
||||
"```",
|
||||
"",
|
||||
"Thanks!",
|
||||
].join("\n");
|
||||
|
||||
const QUOTE_MARKDOWN = [
|
||||
"Text before the quote.",
|
||||
"",
|
||||
...QUOTE_BODY.split("\n").map((line) => (line ? `> ${line}` : ">")),
|
||||
"",
|
||||
"> [!NOTE]",
|
||||
"> Heads up before you paste.",
|
||||
"",
|
||||
"Text after the quote.",
|
||||
].join("\n");
|
||||
|
||||
function assistantQuote(page: Page, index: number): Locator {
|
||||
return assistantMessageBlocks(page).getByRole("blockquote").nth(index);
|
||||
}
|
||||
|
||||
/** A quote's own control is its first, ahead of any nested quote's. */
|
||||
function quoteCopyControl(quote: Locator): Locator {
|
||||
return quote.getByRole("button", { name: "Copy quote" }).first();
|
||||
}
|
||||
|
||||
async function copyQuote(quote: Locator): Promise<void> {
|
||||
await quote.hover();
|
||||
await quoteCopyControl(quote).click();
|
||||
await expect(quote.getByRole("button", { name: "Copied" })).toBeVisible();
|
||||
}
|
||||
|
||||
async function pasteIntoPlainAndRichFields(page: Page): Promise<{ plain: Locator; rich: Locator }> {
|
||||
await page.evaluate(() => {
|
||||
const fields = document.createElement("div");
|
||||
fields.style.cssText = "position: fixed; bottom: 0; left: 0; z-index: 10000; background: white";
|
||||
const plainText = document.createElement("textarea");
|
||||
plainText.setAttribute("aria-label", "Plain text paste");
|
||||
const richText = document.createElement("div");
|
||||
richText.contentEditable = "true";
|
||||
richText.setAttribute("role", "textbox");
|
||||
richText.setAttribute("aria-label", "Rich text paste");
|
||||
fields.append(plainText, richText);
|
||||
document.body.append(fields);
|
||||
});
|
||||
const plain = page.getByRole("textbox", { name: "Plain text paste" });
|
||||
await plain.focus();
|
||||
await page.keyboard.press("ControlOrMeta+v");
|
||||
const rich = page.getByRole("textbox", { name: "Rich text paste" });
|
||||
await rich.focus();
|
||||
await page.keyboard.press("ControlOrMeta+v");
|
||||
return { plain, rich };
|
||||
}
|
||||
|
||||
test("a quote's copy control copies only that quote's body", async ({ context, page }) => {
|
||||
const agent = await seedMockAgentWorkspace({
|
||||
repoPrefix: "assistant-quote-copy-",
|
||||
title: "Assistant quote copy",
|
||||
initialPrompt: "Render the quote fixture.",
|
||||
featureValues: { mockAssistantResponse: QUOTE_MARKDOWN },
|
||||
});
|
||||
|
||||
try {
|
||||
await allowRichClipboard(context);
|
||||
await agent.client.waitForAgentUpsert(
|
||||
agent.agentId,
|
||||
(snapshot) => snapshot.status === "idle",
|
||||
30_000,
|
||||
);
|
||||
await openAgentRoute(page, agent);
|
||||
const quote = assistantQuote(page, 0);
|
||||
const nested = assistantQuote(page, 1);
|
||||
await expect(quote).toContainText("Thanks!");
|
||||
|
||||
await test.step("an admonition has no copy control", async () => {
|
||||
await expect(assistantMessageBlocks(page)).toContainText("Heads up before you paste.");
|
||||
await expect(
|
||||
assistantMessageBlocks(page).getByRole("button", { name: "Copy quote" }),
|
||||
).toHaveCount(2);
|
||||
});
|
||||
|
||||
await test.step("the control appears on hover or keyboard focus", async () => {
|
||||
const control = quoteCopyControl(quote);
|
||||
await expect(control).toHaveCSS("opacity", "0");
|
||||
await quote.hover();
|
||||
await expect(control).toHaveCSS("opacity", "1");
|
||||
await page.mouse.move(0, 0);
|
||||
await expect(control).toHaveCSS("opacity", "0");
|
||||
await control.focus();
|
||||
await expect(control).toHaveCSS("opacity", "1");
|
||||
await control.blur();
|
||||
});
|
||||
|
||||
await test.step("copying the quote takes its body, with a diagram as its fence", async () => {
|
||||
await expect(quote.getByRole("img", { name: "Diagram" })).toBeVisible({ timeout: 30_000 });
|
||||
await copyQuote(quote);
|
||||
const copied = await readRichClipboard(page);
|
||||
expect(copied.plainText).toBe(QUOTE_BODY);
|
||||
expect(copied.html).toContain("<strong>ship it</strong>");
|
||||
expect(copied.html).toContain("<blockquote>");
|
||||
});
|
||||
|
||||
await test.step("the copy pastes as Markdown and as rich text", async () => {
|
||||
const { plain, rich } = await pasteIntoPlainAndRichFields(page);
|
||||
await expect(plain).toHaveValue(QUOTE_BODY);
|
||||
await expect(rich.locator("strong")).toHaveText("ship it");
|
||||
await expect(rich.getByRole("link", { name: "the notes" })).toHaveAttribute(
|
||||
"href",
|
||||
"https://example.com/notes",
|
||||
);
|
||||
await expect(rich).not.toContainText("Text before the quote.");
|
||||
});
|
||||
|
||||
await test.step("a nested quote copies only itself", async () => {
|
||||
await copyQuote(nested);
|
||||
await expect
|
||||
.poll(async () => (await readRichClipboard(page)).plainText)
|
||||
.toBe("Nested reply.");
|
||||
});
|
||||
|
||||
await test.step("a code block in the quote keeps its own copy", async () => {
|
||||
const code = quote.getByText("const quoted = 1;", { exact: true });
|
||||
await code.hover();
|
||||
await quote.getByRole("button", { name: "Copy code" }).first().click();
|
||||
await expect.poll(() => readPlainClipboard(page)).toBe("const quoted = 1;");
|
||||
});
|
||||
|
||||
await test.step("a phone-sized layout shows the control above the full-width text", async () => {
|
||||
await page.mouse.move(0, 0);
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
const control = quoteCopyControl(quote);
|
||||
await expect(control).toHaveCSS("opacity", "1");
|
||||
const controlBox = await control.boundingBox();
|
||||
const firstLine = await quote.getByText(/^Draft for the team/).boundingBox();
|
||||
expect(controlBox && firstLine).toBeTruthy();
|
||||
// The text starts below the control instead of wrapping short of it.
|
||||
expect(firstLine!.y).toBeGreaterThanOrEqual(controlBox!.y + controlBox!.height);
|
||||
expect(firstLine!.x + firstLine!.width).toBeGreaterThan(controlBox!.x);
|
||||
});
|
||||
} finally {
|
||||
await agent.cleanup();
|
||||
}
|
||||
});
|
||||
|
||||
test("copying a selection across an assistant image keeps its Markdown source and alt text", async ({
|
||||
context,
|
||||
page,
|
||||
|
||||
@@ -47,7 +47,7 @@ async function openHostOverview(page: Page, daemon: IsolatedHostDaemon): Promise
|
||||
endpoint: `127.0.0.1:${daemon.port}`,
|
||||
},
|
||||
]);
|
||||
await page.goto(`/settings/hosts/${daemon.serverId}/host`);
|
||||
await page.goto(`/settings/hosts/${daemon.serverId}/daemon`);
|
||||
await expect(page.getByText("Online", { exact: true })).toBeVisible();
|
||||
}
|
||||
|
||||
|
||||
@@ -84,17 +84,14 @@ async function openModelSelector(page: Page) {
|
||||
await expect(page.getByTestId("agent-controls-settings-list")).toBeVisible({ timeout: 10_000 });
|
||||
}
|
||||
|
||||
async function dismissStackedModelPickerWithBackdrop(page: Page) {
|
||||
await page
|
||||
.getByTestId("agent-controls-settings-list")
|
||||
.getByRole("button", { name: /Select model/ })
|
||||
.click();
|
||||
await expect(page.getByTestId("agent-controls-model-browser-sheet")).toBeInViewport();
|
||||
await page.mouse.click(MOBILE_VIEWPORT.width / 2, 24);
|
||||
// In CI, Gorhom retains the dismissed sheet below the viewport.
|
||||
// Dismissal is complete when it leaves the displayed surface.
|
||||
await expect(page.getByTestId("agent-controls-model-browser-sheet")).not.toBeInViewport();
|
||||
await expect(page.getByTestId("agent-controls-model-sheet")).toBeVisible();
|
||||
async function openModelPage(page: Page) {
|
||||
await page.getByTestId("agent-controls-model").click();
|
||||
await expect(page.getByTestId("mobile-model-page")).toBeVisible();
|
||||
await expect(page.getByTestId("agent-controls-settings-list")).toHaveCount(0);
|
||||
}
|
||||
|
||||
async function returnHomeWithBack(page: Page) {
|
||||
await page.getByTestId("sheet-header-back").click();
|
||||
await expect(page.getByTestId("agent-controls-settings-list")).toBeVisible();
|
||||
}
|
||||
|
||||
@@ -113,7 +110,7 @@ async function openAndCloseModelSelectorTwice(page: Page) {
|
||||
}
|
||||
|
||||
test.describe("mobile bottom sheet reopen", () => {
|
||||
test("sheets reopen and model search returns to configuration", async ({ page }) => {
|
||||
test("sheets reopen and a model pick returns to Home", async ({ page }) => {
|
||||
const session = await openMockAgentAtMobileBreakpoint(page);
|
||||
try {
|
||||
await test.step("tab switcher opens, closes, and reopens", async () => {
|
||||
@@ -124,24 +121,28 @@ test.describe("mobile bottom sheet reopen", () => {
|
||||
await openAndCloseModelSelectorTwice(page);
|
||||
});
|
||||
|
||||
await test.step("model search returns to configuration", async () => {
|
||||
await test.step("the Model page swaps in place and Back returns to Home", async () => {
|
||||
await openModelSelector(page);
|
||||
const sheet = page.getByTestId("agent-controls-model-sheet");
|
||||
await openModelPage(page);
|
||||
await returnHomeWithBack(page);
|
||||
await expect(sheet).toBeVisible();
|
||||
});
|
||||
|
||||
await dismissStackedModelPickerWithBackdrop(page);
|
||||
|
||||
await page.getByTestId("model-search-all-input").click();
|
||||
await test.step("a model found by search returns to Home with that model", async () => {
|
||||
await openModelPage(page);
|
||||
const search = page.getByTestId("model-search-all-input");
|
||||
await expect(search).not.toBeFocused();
|
||||
await search.click();
|
||||
await search.fill("Ten second");
|
||||
const model = page.getByRole("button", { name: /^Ten second stream/ });
|
||||
await expect(model).toBeVisible({
|
||||
timeout: 10_000,
|
||||
});
|
||||
await expect(model).toBeVisible({ timeout: 10_000 });
|
||||
|
||||
await model.click();
|
||||
|
||||
await expect(sheet).toBeVisible();
|
||||
await expect(page.getByTestId("agent-controls-model-sheet")).toBeVisible();
|
||||
await expect(page.getByTestId("agent-controls-settings-list")).toBeVisible();
|
||||
await expect(page.getByTestId("agent-controls-model")).toContainText("Ten second stream");
|
||||
await expect(page.getByTestId("agent-controls-model-browser-sheet")).not.toBeInViewport();
|
||||
});
|
||||
} finally {
|
||||
await session.cleanup();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { execFileSync } from "node:child_process";
|
||||
import { mkdtempSync, rmSync } from "node:fs";
|
||||
import { mkdir, readFile, unlink, writeFile } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { type Locator, type Page } from "@playwright/test";
|
||||
@@ -498,6 +499,56 @@ test("Changes offers Push for a branch that was never pushed and the push sets i
|
||||
});
|
||||
});
|
||||
|
||||
test("Changes pushes and pulls a branch whose only remote is not named origin", async ({
|
||||
page,
|
||||
}) => {
|
||||
const workspace = await createWorkspaceWithRemote((repoPath) => {
|
||||
execFileSync("git", ["remote", "rename", "origin", "doras-mono"], { cwd: repoPath });
|
||||
// git pull stops on a branch that is both ahead and behind until it is told how to combine them.
|
||||
execFileSync("git", ["config", "pull.rebase", "false"], { cwd: repoPath });
|
||||
});
|
||||
await openWorkspaceChangesSurface(page, workspace);
|
||||
const primary = page.getByTestId("changes-primary-cta");
|
||||
|
||||
await test.step("a branch that is ahead offers Push and the push updates the remote", async () => {
|
||||
await expect(primary).toHaveAccessibleName("Commit", { timeout: 30_000 });
|
||||
commitAllWithGit(workspace.repoPath, "Local work");
|
||||
expect(trackingStatus(workspace)).toBe("## main...doras-mono/main [ahead 1]");
|
||||
await expect(primary).toHaveAccessibleName("Push", { timeout: 30_000 });
|
||||
await primary.click();
|
||||
await expectInSyncWithRemote(workspace);
|
||||
expect(remoteBranchSubjects(workspace, "main")).toContain("Local work");
|
||||
await expectNoGitActionLeft(page);
|
||||
});
|
||||
await test.step("a branch that is behind offers Pull and the pull brings the commits in", async () => {
|
||||
pushTeammateCommits(workspace, ["Teammate one", "Teammate two"]);
|
||||
fetchRemote(workspace, "doras-mono");
|
||||
expect(trackingStatus(workspace)).toBe("## main...doras-mono/main [behind 2]");
|
||||
await expect(primary).toHaveAccessibleName("Pull", { timeout: 30_000 });
|
||||
await primary.click();
|
||||
await expectInSyncWithRemote(workspace);
|
||||
expect(localBranchSubjects(workspace)).toEqual(
|
||||
expect.arrayContaining(["Local work", "Teammate one", "Teammate two"]),
|
||||
);
|
||||
await expectNoGitActionLeft(page);
|
||||
});
|
||||
await test.step("a branch that is ahead and behind pulls and then pushes", async () => {
|
||||
await writeFile(path.join(workspace.repoPath, "tracked.ts"), "export const tracked = 3;\n");
|
||||
commitAllWithGit(workspace.repoPath, "More local work");
|
||||
pushTeammateCommits(workspace, ["Teammate three", "Teammate four"]);
|
||||
fetchRemote(workspace, "doras-mono");
|
||||
expect(trackingStatus(workspace)).toBe("## main...doras-mono/main [ahead 1, behind 2]");
|
||||
await expect(primary).toHaveAccessibleName("Pull", { timeout: 30_000 });
|
||||
await page.getByTestId("changes-primary-cta-caret").click();
|
||||
await page.getByTestId("changes-menu-pull-and-push").click();
|
||||
await expectInSyncWithRemote(workspace);
|
||||
expect(remoteBranchSubjects(workspace, "main")).toEqual(
|
||||
expect.arrayContaining(["More local work", "Teammate three", "Teammate four"]),
|
||||
);
|
||||
await expectNoGitActionLeft(page);
|
||||
});
|
||||
});
|
||||
|
||||
test("Changes selects exact local and remote bases and retains the selection after reload", async ({
|
||||
page,
|
||||
}, testInfo) => {
|
||||
@@ -991,7 +1042,7 @@ test("changes context menu recursively collapses descendant folders", async ({ p
|
||||
nestedLabel.boundingBox(),
|
||||
]);
|
||||
if (!rootBounds || !nestedBounds) throw new Error("Changes tree rows have no bounds");
|
||||
expect(nestedBounds.x - rootBounds.x).toBe(12);
|
||||
expect(nestedBounds.x - rootBounds.x).toBe(16);
|
||||
|
||||
await tree.getByTestId("diff-folder-src-toggle").click({ button: "right" });
|
||||
await page.getByTestId("diff-folder-src-collapse-folder").click();
|
||||
@@ -2202,6 +2253,79 @@ function remoteBranchHead(workspace: RemoteWorkspace, branch: string): string |
|
||||
return line ? (line.split("\t")[0] ?? null) : null;
|
||||
}
|
||||
|
||||
// The branch line of `git status -sb`, such as "## main...origin/main [ahead 1, behind 2]".
|
||||
function trackingStatus(workspace: RemoteWorkspace): string {
|
||||
const status = execFileSync("git", ["status", "-sb"], {
|
||||
cwd: workspace.repoPath,
|
||||
encoding: "utf8",
|
||||
});
|
||||
return status.split("\n")[0] ?? "";
|
||||
}
|
||||
|
||||
// Neither ahead nor behind, which a push reaches only after the remote accepted it.
|
||||
async function expectInSyncWithRemote(workspace: RemoteWorkspace): Promise<void> {
|
||||
await expect
|
||||
.poll(() => trackingStatus(workspace), { timeout: 30_000 })
|
||||
.toMatch(/^## [^ ]+\.\.\.[^ ]+$/);
|
||||
}
|
||||
|
||||
// A clean main that is in sync with its remote has no git action, so the button is gone.
|
||||
async function expectNoGitActionLeft(page: Page): Promise<void> {
|
||||
await expect(page.getByTestId("changes-primary-cta")).toBeHidden({ timeout: 30_000 });
|
||||
}
|
||||
|
||||
function localBranchSubjects(workspace: RemoteWorkspace): string[] {
|
||||
return commitSubjects(workspace.repoPath, "HEAD");
|
||||
}
|
||||
|
||||
function remoteBranchSubjects(workspace: RemoteWorkspace, branch: string): string[] {
|
||||
return commitSubjects(workspace.remotePath, branch);
|
||||
}
|
||||
|
||||
function commitSubjects(repoPath: string, revision: string): string[] {
|
||||
const log = execFileSync("git", ["log", "--format=%s", revision], {
|
||||
cwd: repoPath,
|
||||
encoding: "utf8",
|
||||
});
|
||||
return log.trim().split("\n");
|
||||
}
|
||||
|
||||
// Paseo fetches only origin in the background, so the checkout learns about another remote's
|
||||
// commits when the user fetches it.
|
||||
function fetchRemote(workspace: RemoteWorkspace, remoteName: string): void {
|
||||
execFileSync("git", ["fetch", "--quiet", remoteName], { cwd: workspace.repoPath });
|
||||
}
|
||||
|
||||
// Lands commits on the remote's main from a second clone, as a teammate's push does.
|
||||
function pushTeammateCommits(workspace: RemoteWorkspace, subjects: string[]): void {
|
||||
const clonePath = mkdtempSync(path.join(path.dirname(workspace.repoPath), "changes-teammate-"));
|
||||
try {
|
||||
execFileSync("git", ["clone", "--quiet", workspace.remotePath, clonePath]);
|
||||
for (const subject of subjects) {
|
||||
execFileSync(
|
||||
"git",
|
||||
[
|
||||
"-c",
|
||||
"user.name=Teammate",
|
||||
"-c",
|
||||
"user.email=teammate@paseo.test",
|
||||
"-c",
|
||||
"commit.gpgsign=false",
|
||||
"commit",
|
||||
"--quiet",
|
||||
"--allow-empty",
|
||||
"-m",
|
||||
subject,
|
||||
],
|
||||
{ cwd: clonePath },
|
||||
);
|
||||
}
|
||||
execFileSync("git", ["push", "--quiet", "origin", "HEAD:main"], { cwd: clonePath });
|
||||
} finally {
|
||||
rmSync(clonePath, { recursive: true, force: true });
|
||||
}
|
||||
}
|
||||
|
||||
// Empty until the branch has an upstream.
|
||||
function branchUpstream(workspace: RemoteWorkspace, branch: string): string {
|
||||
return execFileSync(
|
||||
|
||||
@@ -30,7 +30,14 @@ test.use({
|
||||
const ACTIVE_SPEED_COLOR = "rgb(251, 191, 36)";
|
||||
const NORMAL_SPEED_COLOR = "rgb(113, 113, 122)";
|
||||
|
||||
const COMPACT_SPEED_CONTROL = "agent-feature-service_tier";
|
||||
const COMPACT_SPEED_SECTION = `${COMPACT_SPEED_CONTROL}-section`;
|
||||
|
||||
async function openSpeedSelector(page: Page): Promise<void> {
|
||||
const compactSection = page.getByTestId(COMPACT_SPEED_SECTION);
|
||||
if (await compactSection.isVisible().catch(() => false)) {
|
||||
return;
|
||||
}
|
||||
const speed = page.getByRole("button", { name: /^(Select speed|Speed: .+)$/ });
|
||||
const features = page.getByRole("button", { name: "Open agent features", exact: true });
|
||||
const modelSettings = page.getByRole("button", { name: /^Select model \(/ });
|
||||
@@ -39,7 +46,12 @@ async function openSpeedSelector(page: Page): Promise<void> {
|
||||
});
|
||||
if (!(await speed.isVisible())) {
|
||||
if (await features.isVisible()) await features.click();
|
||||
else await modelSettings.click();
|
||||
else {
|
||||
await modelSettings.click();
|
||||
await expect(compactSection).toBeVisible({ timeout: 30_000 });
|
||||
await expect(compactSection.getByText("Normal", { exact: true })).toBeVisible();
|
||||
return;
|
||||
}
|
||||
}
|
||||
await expect(speed).toBeVisible({ timeout: 30_000 });
|
||||
await speed.click();
|
||||
@@ -47,6 +59,13 @@ async function openSpeedSelector(page: Page): Promise<void> {
|
||||
}
|
||||
|
||||
async function selectSpeed(page: Page, label: string): Promise<void> {
|
||||
const compactSection = page.getByTestId(COMPACT_SPEED_SECTION);
|
||||
if (await compactSection.isVisible().catch(() => false)) {
|
||||
const pill = compactSection.getByRole("button", { name: label, exact: true });
|
||||
await pill.click();
|
||||
await expect(pill).toHaveAttribute("aria-selected", "true");
|
||||
return;
|
||||
}
|
||||
await page.getByRole("button", { name: label, exact: true }).last().click();
|
||||
const toolbarTrigger = page.getByRole("button", { name: `Speed: ${label}`, exact: true });
|
||||
const sheetTrigger = page.getByRole("button", { name: "Select speed", exact: true });
|
||||
@@ -56,6 +75,11 @@ async function selectSpeed(page: Page, label: string): Promise<void> {
|
||||
}
|
||||
|
||||
async function expectSpeedIconColor(page: Page, color: string): Promise<void> {
|
||||
const compactSection = page.getByTestId(COMPACT_SPEED_SECTION);
|
||||
if (await compactSection.isVisible().catch(() => false)) {
|
||||
await expect(compactSection.locator("svg").first()).toHaveCSS("stroke", color);
|
||||
return;
|
||||
}
|
||||
const trigger = page
|
||||
.getByRole("button", { name: /^(Speed: .+|Select speed)$/ })
|
||||
.filter({ visible: true });
|
||||
|
||||
@@ -2,6 +2,7 @@ import type { Locator } from "@playwright/test";
|
||||
import { test, expect, type Page } from "../support/fixtures";
|
||||
import { gotoAppShell } from "../support/helpers/app";
|
||||
import { daemonWsRoutePattern } from "../support/helpers/daemon-port";
|
||||
import { openAgentRoute, seedMockAgentWorkspace } from "../support/helpers/mock-agent";
|
||||
import { seedWorkspace, type SeededWorkspace } from "../support/helpers/seed-client";
|
||||
import { getServerId } from "../support/helpers/server-id";
|
||||
|
||||
@@ -142,6 +143,38 @@ test.describe("Command center workspace management", () => {
|
||||
}
|
||||
});
|
||||
|
||||
test("keeps Rename workspace ahead of Rename agent across renam and rename", async ({ page }) => {
|
||||
const workspace = await seedMockAgentWorkspace({
|
||||
repoPrefix: "cc-rename-order-",
|
||||
title: "Command center rename order",
|
||||
model: "five-minute-stream",
|
||||
});
|
||||
|
||||
try {
|
||||
await openAgentRoute(page, workspace);
|
||||
const panel = await openCommandCenter(page);
|
||||
const searchInput = panel.getByTestId("command-center-input");
|
||||
const renameWorkspace = action(panel, "Rename workspace");
|
||||
const renameAgent = action(panel, "Rename agent");
|
||||
|
||||
for (const query of ["renam", "rename"]) {
|
||||
await searchInput.fill(query);
|
||||
await expect(renameWorkspace).toBeVisible({ timeout: 15_000 });
|
||||
await expect(renameAgent).toBeVisible({ timeout: 15_000 });
|
||||
const workspaceTop = (await renameWorkspace.boundingBox())?.y ?? Number.NaN;
|
||||
const agentTop = (await renameAgent.boundingBox())?.y ?? Number.NaN;
|
||||
expect(workspaceTop, query).toBeLessThan(agentTop);
|
||||
}
|
||||
|
||||
await page.keyboard.press("Enter");
|
||||
await expect(page.getByTestId("workspace-rename-modal-global-input")).toBeFocused({
|
||||
timeout: 15_000,
|
||||
});
|
||||
} finally {
|
||||
await workspace.cleanup();
|
||||
}
|
||||
});
|
||||
|
||||
test("copies the workspace path and confirms with a toast", async ({ page }) => {
|
||||
const workspace = await seedWorkspace({ repoPrefix: "cc-copy-path-" });
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import path from "node:path";
|
||||
import { expect, test } from "../support/fixtures";
|
||||
import { expectComposerVisible } from "../support/helpers/composer";
|
||||
import { installDaemonWebSocketGate } from "../support/helpers/daemon-websocket-gate";
|
||||
import { installLocalDesktopHost } from "../support/helpers/local-desktop-host";
|
||||
import { openAgentRoute, seedMockAgentWorkspace } from "../support/helpers/mock-agent";
|
||||
import {
|
||||
expectSubagentRowGone,
|
||||
@@ -29,6 +30,89 @@ import {
|
||||
|
||||
const FILE_LINK = "linked.ts:3";
|
||||
|
||||
test("compact offers file actions from a link and from the file sheet", async ({ page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
const workspace = await seedMockAgentWorkspace({
|
||||
repoPrefix: "compact-file-actions-",
|
||||
title: "File actions",
|
||||
initialPrompt: promptMentioning(FILE_LINK),
|
||||
});
|
||||
try {
|
||||
await writeFile(path.join(workspace.cwd, "linked.ts"), "one\ntwo\nthree\n", "utf8");
|
||||
await openAgentRoute(page, { workspaceId: workspace.workspaceId, agentId: workspace.agentId });
|
||||
const fileLink = page.getByText(FILE_LINK, { exact: true });
|
||||
await expect(fileLink).toBeVisible({ timeout: 15_000 });
|
||||
|
||||
// Native opens the same sheet from a long press.
|
||||
await fileLink.click({ button: "right" });
|
||||
const linkMenu = page.getByTestId("markdown-link-menu-content");
|
||||
await expect(linkMenu.getByRole("menuitem")).toHaveText([
|
||||
"Open file",
|
||||
"Reveal in Files",
|
||||
"Download",
|
||||
"Copy path",
|
||||
"Copy relative path",
|
||||
]);
|
||||
await linkMenu.getByRole("menuitem", { name: "Open file" }).click();
|
||||
|
||||
await expect(sheet(page, "linked.ts")).toBeVisible();
|
||||
await page.getByTestId("sheet-file-menu-trigger").click();
|
||||
const sheetMenu = page.getByTestId("sheet-file-menu-content");
|
||||
await expect(sheetMenu.getByRole("menuitem")).toHaveText([
|
||||
"Reveal in Files",
|
||||
"Download",
|
||||
"Copy path",
|
||||
"Copy relative path",
|
||||
]);
|
||||
await expect(sheetMenu.getByRole("menuitem").last()).toBeInViewport({ ratio: 1 });
|
||||
await page.screenshot({
|
||||
path: test.info().outputPath("compact-file-sheet-menu.png"),
|
||||
animations: "disabled",
|
||||
});
|
||||
await sheetMenu.getByRole("menuitem", { name: "Reveal in Files" }).click();
|
||||
await expectNoSheetOpen(page);
|
||||
await expect(
|
||||
page.locator('[data-testid^="file-explorer-row-"][aria-selected="true"]'),
|
||||
).toContainText("linked.ts");
|
||||
await page.screenshot({
|
||||
path: test.info().outputPath("compact-reveal-in-files.png"),
|
||||
animations: "disabled",
|
||||
});
|
||||
} finally {
|
||||
await workspace.cleanup();
|
||||
}
|
||||
});
|
||||
|
||||
test("a narrow desktop window keeps the desktop actions in the file sheet menu", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
const workspace = await seedMockAgentWorkspace({
|
||||
repoPrefix: "narrow-desktop-file-actions-",
|
||||
title: "File actions",
|
||||
initialPrompt: promptMentioning(FILE_LINK),
|
||||
});
|
||||
try {
|
||||
await writeFile(path.join(workspace.cwd, "linked.ts"), "one\ntwo\nthree\n", "utf8");
|
||||
await installLocalDesktopHost(page, workspace.cwd, { fileManager: "Dolphin" });
|
||||
await openAgentRoute(page, { workspaceId: workspace.workspaceId, agentId: workspace.agentId });
|
||||
await page.getByText(FILE_LINK, { exact: true }).click();
|
||||
|
||||
await expect(sheet(page, "linked.ts")).toBeVisible({ timeout: 15_000 });
|
||||
await page.getByTestId("sheet-file-menu-trigger").click();
|
||||
await expect(page.getByTestId("sheet-file-menu-content").getByRole("menuitem")).toHaveText([
|
||||
"Reveal in Files",
|
||||
"Reveal in Dolphin",
|
||||
"Open in default app",
|
||||
"Download",
|
||||
"Copy path",
|
||||
"Copy relative path",
|
||||
]);
|
||||
} finally {
|
||||
await workspace.cleanup();
|
||||
}
|
||||
});
|
||||
|
||||
test("compact opens files and subagents in a sheet, leaving the tabs for agents", async ({
|
||||
page,
|
||||
}) => {
|
||||
|
||||
@@ -12,9 +12,12 @@ import {
|
||||
openImageLightbox,
|
||||
closeImageLightbox,
|
||||
pressInterruptShortcut,
|
||||
blurComposerInput,
|
||||
expectComposerDraft,
|
||||
expectComposerDisabled,
|
||||
expectComposerEditable,
|
||||
expectComposerFocused,
|
||||
expectComposerNotFocused,
|
||||
expectAttachButtonDisabled,
|
||||
fillComposerDraft,
|
||||
dropFileOnComposer,
|
||||
@@ -175,8 +178,19 @@ test.describe("Composer attachments", () => {
|
||||
await test.step("remove the image and attach a dropped file", async () => {
|
||||
await removeAttachmentPill(page, "composer-image-attachment-pill", "Remove image attachment");
|
||||
await expect(page.getByTestId("composer-image-attachment-pill")).toHaveCount(0);
|
||||
await blurComposerInput(page);
|
||||
await expectComposerNotFocused(page);
|
||||
await dropFileOnComposer(page, TEST_JSON);
|
||||
await expectAttachmentPill(page, "composer-file-attachment-pill");
|
||||
await expectComposerFocused(page);
|
||||
});
|
||||
|
||||
await test.step("dropping an image focuses the composer", async () => {
|
||||
await blurComposerInput(page);
|
||||
await expectComposerNotFocused(page);
|
||||
await dropFileOnComposer(page, TEST_IMAGE);
|
||||
await expectAttachmentPill(page, "composer-image-attachment-pill");
|
||||
await expectComposerFocused(page);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -198,9 +212,12 @@ test.describe("Composer attachments", () => {
|
||||
projectDisplayName: workspace.projectDisplayName,
|
||||
});
|
||||
|
||||
await blurComposerInput(page);
|
||||
await expectComposerNotFocused(page);
|
||||
await dropFileOnComposer(page, TEST_JSON);
|
||||
|
||||
await expectAttachmentPill(page, "composer-file-attachment-pill");
|
||||
await expectComposerFocused(page);
|
||||
} finally {
|
||||
await workspace.cleanup();
|
||||
}
|
||||
|
||||
@@ -12,14 +12,25 @@ import {
|
||||
import { expectWorkspaceTabVisible, openSessions } from "../support/helpers/archive-tab";
|
||||
import { daemonWsRoutePattern } from "../support/helpers/daemon-port";
|
||||
import { getServerId } from "../support/helpers/server-id";
|
||||
import { switchWorkspaceViaSidebar } from "../support/helpers/workspace-ui";
|
||||
import {
|
||||
switchWorkspaceViaSidebar,
|
||||
waitForSidebarHydration,
|
||||
} from "../support/helpers/workspace-ui";
|
||||
import {
|
||||
closeMobileAgentSidebar,
|
||||
expectMobileAgentSidebarHidden,
|
||||
expectMobileAgentSidebarVisible,
|
||||
openMobileAgentSidebar,
|
||||
} from "../support/helpers/sidebar";
|
||||
import { expectNewWorkspaceProjectSelected } from "../support/helpers/new-workspace";
|
||||
import {
|
||||
expectNewWorkspaceProjectSelected,
|
||||
openGlobalNewWorkspaceComposer,
|
||||
openStartingRefPicker,
|
||||
selectBranchInPicker,
|
||||
selectWorkspaceIsolation,
|
||||
} from "../support/helpers/new-workspace";
|
||||
import { gotoAppShell } from "../support/helpers/app";
|
||||
import { seedWorkspace } from "../support/helpers/seed-client";
|
||||
|
||||
const TEST_COMMANDS = [
|
||||
{
|
||||
@@ -119,11 +130,18 @@ const TEST_COMMANDS_REPLY: ListCommandsReply = { commands: TEST_COMMANDS, error:
|
||||
async function installListCommandsStub(
|
||||
page: Page,
|
||||
reply: () => ListCommandsReply | Promise<ListCommandsReply> = () => TEST_COMMANDS_REPLY,
|
||||
options?: {
|
||||
onClientMessage?: (message: string | Buffer, forward: () => void) => void;
|
||||
},
|
||||
): Promise<void> {
|
||||
await page.routeWebSocket(daemonWsRoutePattern(), (ws) => {
|
||||
const server = ws.connectToServer();
|
||||
|
||||
ws.onMessage((message) => {
|
||||
if (options?.onClientMessage) {
|
||||
options.onClientMessage(message, () => server.send(message));
|
||||
return;
|
||||
}
|
||||
server.send(message);
|
||||
});
|
||||
|
||||
@@ -169,6 +187,24 @@ async function installListCommandsStub(
|
||||
});
|
||||
}
|
||||
|
||||
async function holdWorkspaceCreateWithCommandsStub(page: Page): Promise<{ release: () => void }> {
|
||||
let release: (() => void) | null = null;
|
||||
await installListCommandsStub(page, undefined, {
|
||||
onClientMessage(message, forward) {
|
||||
if (typeof message === "string" && message.includes('"workspace.create.request"')) {
|
||||
release = forward;
|
||||
return;
|
||||
}
|
||||
forward();
|
||||
},
|
||||
});
|
||||
return {
|
||||
release: () => {
|
||||
release?.();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
function createHeldReply(): {
|
||||
reply: () => Promise<ListCommandsReply>;
|
||||
release: () => void;
|
||||
@@ -450,6 +486,44 @@ test.describe("Composer autocomplete", () => {
|
||||
}
|
||||
});
|
||||
|
||||
test("shows autocomplete after closing the New Workspace branch picker and hides it while submitting", async ({
|
||||
page,
|
||||
}) => {
|
||||
const heldCreate = await holdWorkspaceCreateWithCommandsStub(page);
|
||||
|
||||
const seeded = await seedWorkspace({ repoPrefix: "autocomplete-branch-picker-" });
|
||||
try {
|
||||
await gotoAppShell(page);
|
||||
await waitForSidebarHydration(page);
|
||||
await openGlobalNewWorkspaceComposer(page);
|
||||
|
||||
const input = composerLocator(page);
|
||||
await expect(input).toBeEditable({ timeout: 30_000 });
|
||||
await selectWorkspaceIsolation(page, "worktree");
|
||||
await expect(page.getByTestId("new-workspace-ref-picker-trigger")).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
|
||||
await openStartingRefPicker(page);
|
||||
await selectBranchInPicker(page, "main");
|
||||
await expect(input).toBeFocused();
|
||||
|
||||
await page.keyboard.type("/h");
|
||||
const popover = page.getByTestId("composer-autocomplete-popover");
|
||||
await expect(popover.getByText("/help", { exact: true }).first()).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
|
||||
// Submitting while locked hides the autocomplete popover instead of leaving it over loading.
|
||||
await page.getByTestId("workspace-create-submit").click();
|
||||
await expect(input).not.toBeEditable({ timeout: 10_000 });
|
||||
await expect(popover).toHaveCount(0);
|
||||
} finally {
|
||||
heldCreate.release();
|
||||
await seeded.cleanup();
|
||||
}
|
||||
});
|
||||
|
||||
test("keeps New workspace off the running-agent command list before a project is chosen", async ({
|
||||
page,
|
||||
}) => {
|
||||
|
||||
@@ -387,7 +387,10 @@ test.describe("Composer model and effort shortcuts", () => {
|
||||
const effortLabel = page.getByTestId("combined-model-selector-thinking-label");
|
||||
await expect(effortLabel).toHaveText("Medium");
|
||||
await toggleModelPickerFromComposer(page);
|
||||
await expectModelPickerClosesFromSearch(page);
|
||||
const drawerModelRow = page.getByTestId("agent-controls-model");
|
||||
await expect(drawerModelRow).toBeVisible();
|
||||
await page.keyboard.press(`${SHORTCUT_MOD}+Slash`);
|
||||
await expect(drawerModelRow).toBeHidden();
|
||||
await cycleComposerEffort(page);
|
||||
await expect(effortLabel).toHaveText("High");
|
||||
});
|
||||
|
||||
@@ -0,0 +1,235 @@
|
||||
import { mkdir, writeFile } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { expect, test, type Page } from "../support/fixtures";
|
||||
import {
|
||||
openFileExplorer,
|
||||
openFileFromExplorer,
|
||||
expectFileTabOpen,
|
||||
} from "../support/helpers/file-explorer";
|
||||
import { openAgentRoute, seedMockAgentWorkspace } from "../support/helpers/mock-agent";
|
||||
|
||||
const APP_SETTINGS_KEY = "@paseo:app-settings";
|
||||
|
||||
const DIFF_FIXTURE = [
|
||||
"Here is a diff block:",
|
||||
"",
|
||||
"```diff",
|
||||
"diff --git a/src/greet.ts b/src/greet.ts",
|
||||
"--- a/src/greet.ts",
|
||||
"+++ b/src/greet.ts",
|
||||
"@@ -1,3 +1,4 @@ export function greet(name: string) {",
|
||||
" const prefix = 'Hello';",
|
||||
"- return `${prefix}, ${name}`;",
|
||||
"+ const trimmed = name.trim();",
|
||||
"+ return `${prefix}, ${trimmed}!`;",
|
||||
"```",
|
||||
"",
|
||||
"And a patch block:",
|
||||
"",
|
||||
"```patch",
|
||||
"--- a/README.md",
|
||||
"+++ b/README.md",
|
||||
"@@ -1,2 +1,2 @@",
|
||||
" # Paseo",
|
||||
"-Old description",
|
||||
"+New description",
|
||||
"```",
|
||||
"",
|
||||
"Plus Ruby, Kotlin, TOML, and SQL:",
|
||||
"",
|
||||
"```ruby",
|
||||
"class Greeter",
|
||||
' def hi(name) = "Hello #{name}"',
|
||||
"end",
|
||||
"```",
|
||||
"",
|
||||
"```kotlin",
|
||||
'val message: String = "Kotlin ready"',
|
||||
"```",
|
||||
"",
|
||||
"```toml",
|
||||
"[server]",
|
||||
'host = "localhost"',
|
||||
"```",
|
||||
"",
|
||||
"```sql",
|
||||
"SELECT id, name FROM users WHERE active = TRUE;",
|
||||
"```",
|
||||
].join("\n");
|
||||
|
||||
const FILE_DIFF_CONTENT = [
|
||||
"diff --git a/app.py b/app.py",
|
||||
"index 1111111..2222222 100644",
|
||||
"--- a/app.py",
|
||||
"+++ b/app.py",
|
||||
"@@ -1,3 +1,3 @@ def greet():",
|
||||
" print('hello')",
|
||||
"-old_value = 1",
|
||||
"+new_value = 2",
|
||||
].join("\n");
|
||||
|
||||
async function saveScreenshot(page: Page, name: string): Promise<void> {
|
||||
const dir = process.env.PASEO_QA_SCREENSHOT_DIR;
|
||||
if (!dir) return;
|
||||
await mkdir(dir, { recursive: true });
|
||||
await page.screenshot({ path: path.join(dir, name), fullPage: true });
|
||||
}
|
||||
|
||||
function assistantMessages(page: Page) {
|
||||
return page.locator("[data-message-id]").filter({ has: page.getByTestId("assistant-message") });
|
||||
}
|
||||
|
||||
test.describe("diff and patch syntax highlighting", () => {
|
||||
for (const theme of ["dark", "light"] as const) {
|
||||
test(`highlights diff and patch fences in chat (${theme} theme)`, async ({ page }) => {
|
||||
await page.addInitScript(
|
||||
({ key, mode }) => {
|
||||
localStorage.setItem(key, JSON.stringify({ theme: mode }));
|
||||
},
|
||||
{ key: APP_SETTINGS_KEY, mode: theme },
|
||||
);
|
||||
|
||||
const agent = await seedMockAgentWorkspace({
|
||||
repoPrefix: `diff-chat-${theme}-`,
|
||||
title: `Diff highlight (${theme})`,
|
||||
initialPrompt: "Show me the diff and patch.",
|
||||
featureValues: { mockAssistantResponse: DIFF_FIXTURE },
|
||||
});
|
||||
|
||||
try {
|
||||
await agent.client.waitForAgentUpsert(
|
||||
agent.agentId,
|
||||
(snapshot) => snapshot.status === "idle",
|
||||
30_000,
|
||||
);
|
||||
await openAgentRoute(page, agent);
|
||||
|
||||
const message = assistantMessages(page);
|
||||
const expectedColors =
|
||||
theme === "dark"
|
||||
? {
|
||||
addition: "rgb(152, 195, 121)",
|
||||
deletion: "rgb(224, 108, 117)",
|
||||
meta: "rgb(92, 99, 112)",
|
||||
}
|
||||
: {
|
||||
addition: "rgb(52, 130, 51)",
|
||||
deletion: "rgb(214, 59, 47)",
|
||||
meta: "rgb(160, 161, 167)",
|
||||
};
|
||||
|
||||
const diffAdd = message.getByText("+ const trimmed = name.trim();", { exact: true });
|
||||
const diffDel = message.getByText("- return `${prefix}, ${name}`;", { exact: true });
|
||||
const diffMeta = message.getByText(
|
||||
"@@ -1,3 +1,4 @@ export function greet(name: string) {",
|
||||
{
|
||||
exact: true,
|
||||
},
|
||||
);
|
||||
const patchAdd = message.getByText("+New description", { exact: true });
|
||||
const patchDel = message.getByText("-Old description", { exact: true });
|
||||
|
||||
await expect(diffAdd).toBeVisible({ timeout: 30_000 });
|
||||
await expect(diffAdd).toHaveCSS("color", expectedColors.addition);
|
||||
await expect(diffDel).toHaveCSS("color", expectedColors.deletion);
|
||||
await expect(diffMeta).toHaveCSS("color", expectedColors.meta);
|
||||
await expect(patchAdd).toHaveCSS("color", expectedColors.addition);
|
||||
await expect(patchDel).toHaveCSS("color", expectedColors.deletion);
|
||||
|
||||
const rubyDef = message.getByText("def", { exact: true });
|
||||
const kotlinVal = message.getByText("val", { exact: true });
|
||||
const tomlHost = message.getByText("host", { exact: true });
|
||||
const sqlSelect = message.getByText("SELECT", { exact: true });
|
||||
const expectedKeyword = theme === "dark" ? "rgb(198, 120, 221)" : "rgb(166, 38, 164)";
|
||||
const expectedProperty = theme === "dark" ? "rgb(209, 154, 102)" : "rgb(152, 104, 1)";
|
||||
await expect(rubyDef).toHaveCSS("color", expectedKeyword);
|
||||
await expect(kotlinVal).toHaveCSS("color", expectedKeyword);
|
||||
await expect(tomlHost).toHaveCSS("color", expectedProperty);
|
||||
await expect(sqlSelect).toHaveCSS("color", expectedKeyword);
|
||||
|
||||
await saveScreenshot(page, `chat-diff-patch-${theme}.png`);
|
||||
} finally {
|
||||
await agent.cleanup();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
test("highlights a .diff file in the Files viewer", async ({ page, withWorkspace }) => {
|
||||
await page.addInitScript(
|
||||
({ key }) => {
|
||||
localStorage.setItem(key, JSON.stringify({ theme: "dark" }));
|
||||
},
|
||||
{ key: APP_SETTINGS_KEY },
|
||||
);
|
||||
const workspace = await withWorkspace({ prefix: "diff-file-viewer-" });
|
||||
await writeFile(path.join(workspace.repoPath, "changes.diff"), FILE_DIFF_CONTENT);
|
||||
|
||||
await workspace.navigateTo();
|
||||
await openFileExplorer(page);
|
||||
await openFileFromExplorer(page, "changes.diff");
|
||||
await expectFileTabOpen(page, "changes.diff");
|
||||
|
||||
const editor = page.getByTestId("file-source-editor").filter({ visible: true });
|
||||
await expect(editor).toBeVisible({ timeout: 30_000 });
|
||||
|
||||
const addLine = editor
|
||||
.locator(".cm-line", { hasText: "+new_value = 2" })
|
||||
.locator("span")
|
||||
.first();
|
||||
const delLine = editor
|
||||
.locator(".cm-line", { hasText: "-old_value = 1" })
|
||||
.locator("span")
|
||||
.first();
|
||||
const metaLine = editor
|
||||
.locator(".cm-line", { hasText: "@@ -1,3 +1,3 @@ def greet():" })
|
||||
.locator("span")
|
||||
.first();
|
||||
|
||||
await expect(addLine).toHaveCSS("color", "rgb(152, 195, 121)");
|
||||
await expect(delLine).toHaveCSS("color", "rgb(224, 108, 117)");
|
||||
await expect(metaLine).toHaveCSS("color", "rgb(92, 99, 112)");
|
||||
|
||||
await saveScreenshot(page, "files-viewer-diff-dark.png");
|
||||
});
|
||||
|
||||
test("highlights a .patch file in the Files viewer (light theme)", async ({
|
||||
page,
|
||||
withWorkspace,
|
||||
}) => {
|
||||
await page.addInitScript(
|
||||
({ key }) => {
|
||||
localStorage.setItem(key, JSON.stringify({ theme: "light" }));
|
||||
},
|
||||
{ key: APP_SETTINGS_KEY },
|
||||
);
|
||||
const workspace = await withWorkspace({ prefix: "patch-file-viewer-" });
|
||||
await writeFile(path.join(workspace.repoPath, "fix.patch"), FILE_DIFF_CONTENT);
|
||||
|
||||
await workspace.navigateTo();
|
||||
await openFileExplorer(page);
|
||||
await openFileFromExplorer(page, "fix.patch");
|
||||
await expectFileTabOpen(page, "fix.patch");
|
||||
|
||||
const editor = page.getByTestId("file-source-editor").filter({ visible: true });
|
||||
await expect(editor).toBeVisible({ timeout: 30_000 });
|
||||
|
||||
const addLine = editor
|
||||
.locator(".cm-line", { hasText: "+new_value = 2" })
|
||||
.locator("span")
|
||||
.first();
|
||||
const delLine = editor
|
||||
.locator(".cm-line", { hasText: "-old_value = 1" })
|
||||
.locator("span")
|
||||
.first();
|
||||
const metaLine = editor
|
||||
.locator(".cm-line", { hasText: "@@ -1,3 +1,3 @@ def greet():" })
|
||||
.locator("span")
|
||||
.first();
|
||||
|
||||
await expect(addLine).toHaveCSS("color", "rgb(52, 130, 51)");
|
||||
await expect(delLine).toHaveCSS("color", "rgb(214, 59, 47)");
|
||||
await expect(metaLine).toHaveCSS("color", "rgb(160, 161, 167)");
|
||||
|
||||
await saveScreenshot(page, "files-viewer-patch-light.png");
|
||||
});
|
||||
});
|
||||
@@ -4,7 +4,7 @@ import { test, expect, type Page } from "../support/fixtures";
|
||||
import { gotoAppShell } from "../support/helpers/app";
|
||||
import {
|
||||
addProjectFlowInput,
|
||||
chooseAddProjectMethod,
|
||||
addProjectFlowSubmit,
|
||||
openAddProjectFlow,
|
||||
} from "../support/helpers/add-project-flow";
|
||||
import { expectOpenedProject } from "../support/helpers/project-picker-ui";
|
||||
@@ -53,7 +53,6 @@ async function removeProjectFromSidebar(page: Page, projectViewKey: string): Pro
|
||||
|
||||
async function addProjectFromPicker(page: Page, projectPath: string): Promise<string> {
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectMethod(page, "directory-search");
|
||||
|
||||
const input = addProjectFlowInput(page);
|
||||
await input.fill(projectPath);
|
||||
@@ -85,7 +84,6 @@ test.describe("Project picker search", () => {
|
||||
await gotoAppShell(page);
|
||||
await waitForSidebarProjectListReady(page);
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectMethod(page, "directory-search");
|
||||
|
||||
const input = addProjectFlowInput(page);
|
||||
await input.fill(projectPickerFixture.fuzzyQuery);
|
||||
@@ -93,6 +91,7 @@ test.describe("Project picker search", () => {
|
||||
const suggestion = page.getByText(projectPickerFixture.projectName, { exact: false }).first();
|
||||
await expect(suggestion).toBeVisible({ timeout: 30_000 });
|
||||
await suggestion.click();
|
||||
await addProjectFlowSubmit(page).click();
|
||||
|
||||
const projectId = await expectOpenedProject(page, projectPickerFixture.projectName);
|
||||
projectPickerFixture.rememberProjectId(projectId);
|
||||
@@ -104,13 +103,11 @@ test.describe("Project picker search", () => {
|
||||
await gotoAppShell(page);
|
||||
await waitForSidebarProjectListReady(page);
|
||||
await openAddProjectFlow(page);
|
||||
await chooseAddProjectMethod(page, "directory-search");
|
||||
|
||||
const input = addProjectFlowInput(page);
|
||||
await input.fill("paseo-loading-state-no-match");
|
||||
|
||||
await expect(page.getByText("Start typing a path", { exact: true })).toHaveCount(0);
|
||||
await expect(page.getByText("Loading...", { exact: true })).toBeVisible();
|
||||
await expect(page.getByText("Searching...", { exact: true })).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -4,12 +4,15 @@
|
||||
// never swallow entity tabs or lose the user's focus, and
|
||||
// 2) splitting a tab out of a pane leaves a New tab behind, and the app must stay
|
||||
// interactive in the [agent | New | explorer] state.
|
||||
import { writeFileSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
import { expect, type Locator, type Page } from "@playwright/test";
|
||||
import { test } from "../support/fixtures";
|
||||
import { gotoWorkspace } from "../support/helpers/launcher";
|
||||
import { seedCorruptedWorkspaceLayout } from "../support/helpers/workspace-layout";
|
||||
import {
|
||||
openChangesTreePanel,
|
||||
openFilesPanel,
|
||||
waitForWorkspaceTabsVisible,
|
||||
} from "../support/helpers/workspace-tabs";
|
||||
|
||||
@@ -317,3 +320,75 @@ test("reloading a saved hidden generated Explorer recovers a usable workspace",
|
||||
await gotoWorkspace(page, otherWorkspace.workspaceId);
|
||||
await expect(draftTabChip(page)).toHaveCount(1);
|
||||
});
|
||||
|
||||
test("dragging a file tab into a split returns the previous pane to the tab you came from", async ({
|
||||
page,
|
||||
withWorkspace,
|
||||
e2eWorkerClient,
|
||||
}) => {
|
||||
const workspace = await withWorkspace({ prefix: "split-prev-tab-focus-" });
|
||||
writeFileSync(path.join(workspace.repoPath, "notes.md"), "# Notes\nhello\n");
|
||||
|
||||
const agentA = await e2eWorkerClient.createAgent({
|
||||
provider: "mock",
|
||||
cwd: workspace.repoPath,
|
||||
workspaceId: workspace.workspaceId,
|
||||
title: "Agent A",
|
||||
});
|
||||
const agentB = await e2eWorkerClient.createAgent({
|
||||
provider: "mock",
|
||||
cwd: workspace.repoPath,
|
||||
workspaceId: workspace.workspaceId,
|
||||
title: "Agent B",
|
||||
});
|
||||
|
||||
await gotoWorkspace(page, workspace.workspaceId);
|
||||
await waitForWorkspaceTabsVisible(page);
|
||||
|
||||
const mainPane = page.getByTestId("workspace-pane-main");
|
||||
await expect(mainPane.getByTestId(`workspace-tab-agent_${agentA.id}`)).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
await expect(mainPane.getByTestId(`workspace-tab-agent_${agentB.id}`)).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
|
||||
const initialTabs = await mainPane
|
||||
.locator('[data-testid^="workspace-tab-"]:not([data-testid^="workspace-tab-context-"])')
|
||||
.evaluateAll((els) => els.map((el) => el.getAttribute("data-testid")));
|
||||
const firstTab = mainPane.getByTestId(initialTabs[0]!);
|
||||
const secondTab = mainPane.getByTestId(initialTabs[1]!);
|
||||
|
||||
// Open FILE while on B so B is the birth parent, then navigate A -> FILE before splitting.
|
||||
await secondTab.click({ position: { x: 12, y: 13 } });
|
||||
await expect(secondTab).toHaveAttribute("aria-selected", "true");
|
||||
|
||||
await openFilesPanel(page);
|
||||
await page
|
||||
.getByTestId("file-explorer-tree-scroll")
|
||||
.getByText("notes.md", { exact: true })
|
||||
.click();
|
||||
|
||||
const fileTab = mainPane
|
||||
.locator('[data-testid^="workspace-tab-file_"]:not([data-testid^="workspace-tab-context-"])')
|
||||
.first();
|
||||
await expect(fileTab).toBeVisible({ timeout: 15_000 });
|
||||
|
||||
await firstTab.click({ position: { x: 12, y: 13 } });
|
||||
await expect(firstTab).toHaveAttribute("aria-selected", "true");
|
||||
await fileTab.click({ position: { x: 12, y: 13 } });
|
||||
await expect(fileTab).toHaveAttribute("aria-selected", "true");
|
||||
|
||||
const mainBox = await mainPane.boundingBox();
|
||||
if (!mainBox) throw new Error("mainPane has no bounding box");
|
||||
await dragChipTo(page, fileTab, {
|
||||
x: mainBox.x + mainBox.width * 0.92,
|
||||
y: mainBox.y + mainBox.height * 0.5,
|
||||
});
|
||||
|
||||
await expect(
|
||||
page.locator('[data-testid^="workspace-pane-"]').filter({ visible: true }),
|
||||
).toHaveCount(2, { timeout: 10_000 });
|
||||
await expect(firstTab).toHaveAttribute("aria-selected", "true");
|
||||
await expect(secondTab).toHaveAttribute("aria-selected", "false");
|
||||
});
|
||||
|
||||
@@ -1,17 +1,10 @@
|
||||
import type { Page } from "@playwright/test";
|
||||
import { test, expect } from "../support/fixtures";
|
||||
import { runWorkspaceActionFromCommandCenter } from "../support/helpers/command-center-workspace-actions";
|
||||
|
||||
interface DragMeasurement {
|
||||
observer: MutationObserver;
|
||||
stylesheetMutations: number;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__PASEO_EXPLORER_DRAG_MEASUREMENT__?: DragMeasurement;
|
||||
}
|
||||
}
|
||||
import {
|
||||
readSharedStylesheetChanges,
|
||||
rememberSharedStylesheet,
|
||||
} from "../support/helpers/shared-stylesheet";
|
||||
|
||||
async function waitForResizePaint(page: Page): Promise<void> {
|
||||
await page.evaluate(
|
||||
@@ -23,23 +16,8 @@ async function waitForResizePaint(page: Page): Promise<void> {
|
||||
}
|
||||
|
||||
async function beginResizeMeasurement(page: Page): Promise<void> {
|
||||
await page.evaluate(() => {
|
||||
const stylesheet = document.getElementById("unistyles-web");
|
||||
if (!stylesheet) throw new Error("Shared stylesheet is missing");
|
||||
globalThis.__PASEO_RESET_RENDER_PROFILE__!();
|
||||
const measurement: DragMeasurement = {
|
||||
stylesheetMutations: 0,
|
||||
observer: new MutationObserver((records) => {
|
||||
measurement.stylesheetMutations += records.length;
|
||||
}),
|
||||
};
|
||||
measurement.observer.observe(stylesheet, {
|
||||
childList: true,
|
||||
subtree: true,
|
||||
characterData: true,
|
||||
});
|
||||
window.__PASEO_EXPLORER_DRAG_MEASUREMENT__ = measurement;
|
||||
});
|
||||
await page.evaluate(() => globalThis.__PASEO_RESET_RENDER_PROFILE__!());
|
||||
await rememberSharedStylesheet(page);
|
||||
}
|
||||
|
||||
async function previewExplorerResize(page: Page, distance: number) {
|
||||
@@ -61,16 +39,14 @@ async function previewExplorerResize(page: Page, distance: number) {
|
||||
await waitForResizePaint(page);
|
||||
}
|
||||
const during = (await explorer.boundingBox())!.width;
|
||||
const measurement = await page.evaluate(() => {
|
||||
const state = window.__PASEO_EXPLORER_DRAG_MEASUREMENT__!;
|
||||
state.observer.disconnect();
|
||||
return {
|
||||
stylesheetMutations: state.stylesheetMutations,
|
||||
paneRenders: Object.entries(globalThis.__PASEO_RENDER_PROFILE_REASONS__ ?? {})
|
||||
const measurement = {
|
||||
stylesheetChanges: await readSharedStylesheetChanges(page),
|
||||
paneRenders: await page.evaluate(() =>
|
||||
Object.entries(globalThis.__PASEO_RENDER_PROFILE_REASONS__ ?? {})
|
||||
.filter(([id]) => id.startsWith("SplitPaneView:"))
|
||||
.reduce((sum, [, reasons]) => sum + (reasons.render ?? 0), 0),
|
||||
};
|
||||
});
|
||||
),
|
||||
};
|
||||
await page.mouse.up();
|
||||
await waitForResizePaint(page);
|
||||
const after = (await explorer.boundingBox())!.width;
|
||||
@@ -92,7 +68,7 @@ async function expectExplorerWidthSurvivesReload(page: Page, width: number): Pro
|
||||
await expect.poll(async () => (await explorer.boundingBox())?.width).toBeCloseTo(width, 0);
|
||||
}
|
||||
|
||||
test("Explorer drag previews without rerendering panes or rewriting the shared stylesheet", async ({
|
||||
test("Explorer drag previews without rerendering panes or changing the shared stylesheet", async ({
|
||||
page,
|
||||
withWorkspace,
|
||||
}) => {
|
||||
@@ -117,9 +93,9 @@ test("Explorer drag previews without rerendering panes or rewriting the shared s
|
||||
).toBe(true);
|
||||
const grown = await previewExplorerResize(page, -100);
|
||||
const shrunk = await previewExplorerResize(page, 50);
|
||||
expect(grown.stylesheetMutations).toBe(0);
|
||||
expect(grown.stylesheetChanges).toEqual({ added: 0, removed: 0, edited: 0, rebuilt: 0 });
|
||||
expect(grown.paneRenders).toBe(0);
|
||||
expect(shrunk.stylesheetMutations).toBe(0);
|
||||
expect(shrunk.stylesheetChanges).toEqual({ added: 0, removed: 0, edited: 0, rebuilt: 0 });
|
||||
expect(shrunk.paneRenders).toBe(0);
|
||||
await expectExplorerWidthSurvivesReload(page, shrunk.width);
|
||||
});
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
import { mkdir, writeFile } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { expect, type Page } from "@playwright/test";
|
||||
import { test } from "../support/fixtures";
|
||||
import {
|
||||
expectExplorerEntryHidden,
|
||||
expectExplorerEntryVisible,
|
||||
expandFolder,
|
||||
expectFileTabOpen,
|
||||
openFileExplorer,
|
||||
} from "../support/helpers/file-explorer";
|
||||
import { gotoWorkspace } from "../support/helpers/launcher";
|
||||
import { seedWorkspace, type SeededWorkspace } from "../support/helpers/seed-client";
|
||||
|
||||
let workspace: SeededWorkspace;
|
||||
|
||||
test.beforeEach(async () => {
|
||||
workspace = await seedWorkspace({ repoPrefix: "file-explorer-filter-" });
|
||||
await mkdir(path.join(workspace.repoPath, "data/nested"), { recursive: true });
|
||||
await writeFile(path.join(workspace.repoPath, "data/nested/report.csv"), "name,total\n");
|
||||
await mkdir(path.join(workspace.repoPath, "docs"), { recursive: true });
|
||||
await writeFile(path.join(workspace.repoPath, "docs/guide.md"), "# Guide\n");
|
||||
});
|
||||
|
||||
test.afterEach(async () => {
|
||||
await workspace?.cleanup();
|
||||
});
|
||||
|
||||
function filterInput(page: Page) {
|
||||
return page.getByTestId("files-filter-input");
|
||||
}
|
||||
|
||||
function matches(page: Page) {
|
||||
return page.locator('[data-testid^="file-filter-row-"][aria-selected]');
|
||||
}
|
||||
|
||||
function match(page: Page, name: string) {
|
||||
return matches(page).filter({ hasText: name });
|
||||
}
|
||||
|
||||
test("finds files in collapsed folders and acts on them", async ({ page }) => {
|
||||
await gotoWorkspace(page, workspace.workspaceId);
|
||||
await openFileExplorer(page);
|
||||
await expandFolder(page, "docs");
|
||||
await expectExplorerEntryVisible(page, "guide.md");
|
||||
|
||||
await filterInput(page).fill("report");
|
||||
await expect(matches(page)).toHaveCount(1);
|
||||
await expect(match(page, "report.csv")).toContainText("data/nested");
|
||||
// Draggable onto the chat, like a tree row.
|
||||
await expect(match(page, "report.csv").locator('[draggable="true"]')).toHaveCount(1);
|
||||
|
||||
await match(page, "report.csv").click({ button: "right" });
|
||||
const menu = page.getByTestId(/file-filter-row-\d+-context-menu$/);
|
||||
for (const name of [
|
||||
"Reveal in Files",
|
||||
"Copy path",
|
||||
"Copy relative path",
|
||||
"Download",
|
||||
"Rename",
|
||||
"Delete",
|
||||
]) {
|
||||
await expect(menu.getByRole("menuitem", { name, exact: true })).toBeVisible();
|
||||
}
|
||||
await expect(menu.getByRole("menuitem", { name: "New file", exact: true })).toHaveCount(0);
|
||||
await page.keyboard.press("Escape");
|
||||
await expect(menu).toHaveCount(0);
|
||||
|
||||
await match(page, "report.csv").click();
|
||||
await expectFileTabOpen(page, "data/nested/report.csv");
|
||||
|
||||
// Escape restores the tree with its expanded folders.
|
||||
await filterInput(page).press("Escape");
|
||||
await expect(filterInput(page)).toHaveValue("");
|
||||
await expectExplorerEntryVisible(page, "guide.md");
|
||||
await expectExplorerEntryHidden(page, "report.csv");
|
||||
|
||||
// So does the clear button.
|
||||
await filterInput(page).fill("zzz-no-such-file");
|
||||
await expect(page.getByText("No matching files", { exact: true })).toBeVisible();
|
||||
await page.getByTestId("files-filter-clear").click();
|
||||
await expect(filterInput(page)).toHaveValue("");
|
||||
await expectExplorerEntryVisible(page, "guide.md");
|
||||
|
||||
// Revealing a match leaves the filter and selects the file in the tree.
|
||||
await filterInput(page).fill("report");
|
||||
await match(page, "report.csv").click({ button: "right" });
|
||||
await page.getByRole("menuitem", { name: "Reveal in Files", exact: true }).click();
|
||||
await expect(filterInput(page)).toHaveValue("");
|
||||
await expect(
|
||||
page.locator('[data-testid^="file-explorer-row-"][aria-selected="true"]'),
|
||||
).toContainText("report.csv");
|
||||
});
|
||||
|
||||
/** The directory listings the app asks the host for, by path. */
|
||||
function recordDirectoryListings(page: Page): string[] {
|
||||
const listed: string[] = [];
|
||||
page.on("websocket", (socket) => {
|
||||
socket.on("framesent", ({ payload }) => {
|
||||
if (typeof payload !== "string") return;
|
||||
const { message } = JSON.parse(payload);
|
||||
if (message?.type === "file_explorer_request" && message.mode === "list") {
|
||||
listed.push(message.path);
|
||||
}
|
||||
});
|
||||
});
|
||||
return listed;
|
||||
}
|
||||
|
||||
test("opens a matching folder in the tree", async ({ page }) => {
|
||||
const listed = recordDirectoryListings(page);
|
||||
await gotoWorkspace(page, workspace.workspaceId);
|
||||
await openFileExplorer(page);
|
||||
|
||||
await filterInput(page).fill("nested");
|
||||
await match(page, "nested").first().click();
|
||||
|
||||
await expect(filterInput(page)).toHaveValue("");
|
||||
await expectExplorerEntryVisible(page, "report.csv");
|
||||
await expect(
|
||||
page.locator('[data-testid^="file-explorer-row-"][aria-selected="true"]'),
|
||||
).toContainText("nested");
|
||||
// One walk down to the folder: its collapsed parent is listed once.
|
||||
expect(listed.filter((directory) => directory === "data")).toEqual(["data"]);
|
||||
});
|
||||
|
||||
test("renames and deletes a match without leaving the filter", async ({ page }) => {
|
||||
await gotoWorkspace(page, workspace.workspaceId);
|
||||
await openFileExplorer(page);
|
||||
|
||||
await filterInput(page).fill("guide");
|
||||
await match(page, "guide.md").click({ button: "right" });
|
||||
await page.getByRole("menuitem", { name: "Rename", exact: true }).click();
|
||||
const nameInput = page.getByTestId("file-explorer-name-input");
|
||||
await nameInput.fill("guide-v2.md");
|
||||
await nameInput.press("Enter");
|
||||
await expect(match(page, "guide-v2.md")).toBeVisible();
|
||||
|
||||
page.once("dialog", (dialog) => void dialog.accept());
|
||||
await match(page, "guide-v2.md").click({ button: "right" });
|
||||
await page.getByRole("menuitem", { name: "Delete", exact: true }).click();
|
||||
await expect(page.getByText("No matching files", { exact: true })).toBeVisible();
|
||||
});
|
||||
@@ -0,0 +1,135 @@
|
||||
import { mkdir, writeFile } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { expect, test, type Page } from "../support/fixtures";
|
||||
import { commandCenterSection, openCommandCenter } from "../support/helpers/command-center";
|
||||
import { openAgentRoute, seedMockAgentWorkspace } from "../support/helpers/mock-agent";
|
||||
|
||||
const REPLY = [
|
||||
"Read [the report](data/report.csv), the [settings](.config/nested/file-55.json),",
|
||||
"the [data folder](data) or the [website](https://example.test/docs).",
|
||||
"Nothing is at gone.md.",
|
||||
].join(" ");
|
||||
|
||||
async function seedLinkedFiles() {
|
||||
const agent = await seedMockAgentWorkspace({
|
||||
repoPrefix: "file-link-menu-",
|
||||
title: "File link actions",
|
||||
initialPrompt: "Show the links",
|
||||
featureValues: { mockAssistantResponse: REPLY },
|
||||
});
|
||||
await mkdir(path.join(agent.cwd, "data"), { recursive: true });
|
||||
await writeFile(path.join(agent.cwd, "data/report.csv"), "name,total\nalpha,1\n");
|
||||
await mkdir(path.join(agent.cwd, ".config/nested"), { recursive: true });
|
||||
// Enough siblings that the target row starts outside the tree's viewport.
|
||||
await Promise.all(
|
||||
Array.from({ length: 60 }, (_, index) =>
|
||||
writeFile(
|
||||
path.join(agent.cwd, `.config/nested/file-${String(index).padStart(2, "0")}.json`),
|
||||
"{}\n",
|
||||
),
|
||||
),
|
||||
);
|
||||
await agent.client.waitForFinish(agent.agentId, 30_000);
|
||||
return agent;
|
||||
}
|
||||
|
||||
function replyLink(page: Page, name: string) {
|
||||
return page.getByTestId("assistant-message").getByRole("link", { name, exact: true });
|
||||
}
|
||||
|
||||
function linkMenu(page: Page) {
|
||||
return page.getByTestId("markdown-link-menu");
|
||||
}
|
||||
|
||||
function selectedTreeRow(page: Page) {
|
||||
return page.locator('[data-testid^="file-explorer-row-"][aria-selected="true"]');
|
||||
}
|
||||
|
||||
async function expectMenuItems(page: Page, names: string[]) {
|
||||
await expect(linkMenu(page).getByRole("menuitem")).toHaveText(names);
|
||||
}
|
||||
|
||||
async function dismissMenu(page: Page) {
|
||||
await page.keyboard.press("Escape");
|
||||
await expect(linkMenu(page)).toHaveCount(0);
|
||||
}
|
||||
|
||||
async function screenshot(page: Page, name: string) {
|
||||
await page.screenshot({
|
||||
path: test.info().outputPath(`${name}.png`),
|
||||
animations: "disabled",
|
||||
});
|
||||
}
|
||||
|
||||
test("links in chat and file tabs offer file actions and reveal the file in Files", async ({
|
||||
page,
|
||||
}, testInfo) => {
|
||||
testInfo.setTimeout(180_000);
|
||||
const agent = await seedLinkedFiles();
|
||||
try {
|
||||
await page.addInitScript(() => {
|
||||
localStorage.setItem(
|
||||
"panel-state",
|
||||
JSON.stringify({ state: { explorerShowHiddenFiles: false }, version: 0 }),
|
||||
);
|
||||
});
|
||||
await openAgentRoute(page, agent);
|
||||
|
||||
await replyLink(page, "the report").click({ button: "right" });
|
||||
await expectMenuItems(page, [
|
||||
"Open file",
|
||||
"Open to the side",
|
||||
"Reveal in Files",
|
||||
"Download",
|
||||
"Copy path",
|
||||
"Copy relative path",
|
||||
]);
|
||||
await screenshot(page, "chat-file-link-menu");
|
||||
await dismissMenu(page);
|
||||
|
||||
await replyLink(page, "data folder").click({ button: "right" });
|
||||
await expectMenuItems(page, ["Reveal in Files", "Copy path", "Copy relative path"]);
|
||||
await dismissMenu(page);
|
||||
|
||||
await replyLink(page, "website").click({ button: "right" });
|
||||
await expectMenuItems(page, ["Open in default browser", "Copy link"]);
|
||||
await screenshot(page, "chat-web-link-menu");
|
||||
await dismissMenu(page);
|
||||
|
||||
// A bare name is looked up while the menu is open; acting on one that matches nothing says so.
|
||||
await replyLink(page, "gone.md").click({ button: "right" });
|
||||
await linkMenu(page).getByRole("menuitem", { name: "Download" }).click();
|
||||
await expect(page.getByTestId("assistant-file-link-not-found-toast")).toContainText("gone.md");
|
||||
|
||||
await replyLink(page, "the report").click({ button: "right" });
|
||||
await linkMenu(page).getByRole("menuitem", { name: "Reveal in Files" }).click();
|
||||
await expect(selectedTreeRow(page)).toContainText("report.csv");
|
||||
await expect(replyLink(page, "the report")).toBeVisible();
|
||||
await screenshot(page, "reveal-in-files-from-chat-link");
|
||||
|
||||
// A hidden folder, a freshly expanded tree and a row far below the fold.
|
||||
await replyLink(page, "settings").click();
|
||||
const fileTab = page.getByTestId("workspace-tab-file_.config/nested/file-55.json").first();
|
||||
await expect(fileTab).toBeVisible();
|
||||
await fileTab.click({ button: "right" });
|
||||
const tabMenu = page.getByTestId("workspace-tab-context-file_.config/nested/file-55.json");
|
||||
await expect(tabMenu.getByRole("menuitem", { name: "Reveal in Files" })).toBeVisible();
|
||||
await expect(tabMenu.getByRole("menuitem", { name: "Copy relative path" })).toBeVisible();
|
||||
await screenshot(page, "file-tab-menu");
|
||||
await tabMenu.getByRole("menuitem", { name: "Reveal in Files" }).click();
|
||||
await expect(selectedTreeRow(page)).toContainText("file-55.json");
|
||||
await expect(selectedTreeRow(page)).toBeInViewport();
|
||||
await screenshot(page, "reveal-in-files-from-file-tab");
|
||||
|
||||
// The tree is already mounted and scrolled elsewhere. Command Center reveals the active tab.
|
||||
await page.getByTestId("file-explorer-tree-scroll").hover();
|
||||
await page.mouse.wheel(0, -100_000);
|
||||
await expect(selectedTreeRow(page)).not.toBeInViewport();
|
||||
const commandCenter = await openCommandCenter(page);
|
||||
await commandCenter.getByTestId("command-center-input").fill("Reveal in Files");
|
||||
await commandCenterSection(commandCenter, "Reveal in Files").click();
|
||||
await expect(selectedTreeRow(page)).toBeInViewport();
|
||||
} finally {
|
||||
await agent.cleanup();
|
||||
}
|
||||
});
|
||||