mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-02 10:44:52 +01:00
d1680baf8f9aca2a4eae96c73cd71563f85bac94
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
176cb8eee2 |
test(e2e): retain safe Skill Studio failure steps (#23108)
## Thinking Path > - Paperclip lets people manage agents and their saved work. > - Product E2E tests check a skill from creation through a saved Studio edit. > - A browser failure can happen after the agent completes its work. > - The report replaces each raw browser error with one general failure code. > - That code does not show which Studio step failed. > - This change keeps a fixed step code and excludes raw browser data. ## Linked Issues or Issue Description **What happened?** A skill edit journey can fail after skill creation passes. Its saved result has only `journey_operation_failed`. It cannot distinguish a missing task card from an unloaded file or a failed save. Raw browser errors can contain private content, so copying those errors into reports is unsafe. **Expected behavior** Keep a fixed code for the failed step. Keep the failed grade. Exclude browser messages, URLs, skill contents and nested error causes. **Steps to reproduce** Run the shared browser helper with a missing skill card or an editor whose saved file never loads. Before this change, both errors lose their step when the Product E2E report grades them. Refs #18305, which fixed delayed file loading and is already present. #19095 changes a separate frozen catalog observer. Neither supplies these shared journey failure codes. This patch does not establish the cause of an earlier hosted failure. ## What Changed - Give the shared Studio helper a closed set of step codes. - Keep the original browser actions, assertions and save/readback checks. - Test a missing card and an unloaded file with real Chromium. - Check that the normal journey failure formatter keeps the code and drops private error text. - Document the report codes. Classic and Cloud callers share the helper. ## Verification - On the old code, the browser suite had 2 failures and 2 passes. The failures exposed the missing step codes. - With the repair, all 4 browser checks pass. Immediate and delayed file loading still preserve the original content, save the edit, reload and read it from the task card. An unloaded file still receives no input or save. - All 5 `journey-failure.test.ts` checks pass. The new case runs the helper and the real failure formatter together. - Commands: `pnpm exec playwright test --config tests/runner-e2e/playwright-support.config.ts skill-studio-flow.spec.ts`; `pnpm exec vitest run --config tests/runner-e2e/vitest.config.ts journey-failure.test.ts`. - `pnpm test:e2e:runner:typecheck` passes. Current-head CI and reviews remain required. - `pnpm verify` could not select tests: the managed Git storage guard rejects `git ls-files`. This is not a pass. Focused commands ran directly. - These are controlled browser checks on Linux with synthetic data. No hosted provider run, staging recovery or full-plan pass is claimed. ## Risks The code names identify a failed step. They do not establish its root cause. The helper drops raw errors and their causes to protect private data. The change affects both callers of this shared helper. It adds no retries and changes no selectors, deadlines, grades, selected cases or protected pins. ## Model Used OpenAI Codex, GPT-6 family, with reasoning and code execution. The host does not expose the exact runtime model ID or context-window size. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes: #` / `Refs: #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge --------- Co-authored-by: Paperclip <noreply@paperclip.ing> |
||
|
|
0c70cedce9 |
Wait for the saved Studio file before editing a skill (#18305)
## Thinking Path > - Paperclip lets people manage AI agents and use their saved work. > - Product E2E journeys check these user paths in classic and Cloud environments. > - The shared Skill Studio helper edits a skill created by an agent. > - Studio can mount the editor before its saved file finishes loading. > - Typing into that empty draft can replace or lose content when the file arrives. > - This change waits for the existing saved body before it starts the edit. > - Browser regressions check delayed loading and refusal to edit an unloaded file. ## Linked Issues or Issue Description Refs #18222 for the shared Product E2E journeys. No duplicate hydration fix was found. **What happened?** The shared Studio helper started typing as soon as the editor control was visible. A delayed file query could replace that draft. The helper could then lose the original content or fail to save its complete marker. **Expected behavior** The helper must load the original file before editing it. It must preserve that content, save the new marker, reload, and read the result from the task card. **Steps to reproduce** Run the controlled Studio browser fixture with a 1.5-second file load. The old helper saves the marker without the original `Verify checks.` body. With no file load, it still sends input events to the empty editor. ## What Changed - Wait for the original saved body before typing in the shared Studio helper. - Add browser checks for immediate load, delayed load, and an unavailable file. - Include these checks in the credential-free browser support suite. - Document the saved-file readiness requirement. ## Verification - Against the old helper, both new failure cases fail: the delayed case loses the original body, and the unloaded case sends 13 input events. - With the change, all three browser checks pass. They verify the saved original body and marker, reload, task-card readback, and zero input or save calls for an unloaded file. - `node node_modules/typescript/bin/tsc -p tests/runner-e2e/tsconfig.json --noEmit` passes. - `git diff --check` passes. Full repository CI passes in [41058312896](https://github.com/paperclipai/paperclip/actions/runs/41058312896), including typecheck, tests, build and all eight E2E shards. Greptile reviewed this exact head at 5/5 with no open threads. No live acceptance result is claimed by these controlled fixtures. ## Risks This adds a readiness assertion to an existing test helper. Both callers already use the same skill fixture and verify `Verify checks.` in the task card. An unavailable file now fails before an edit can occur. The change does not alter application behavior, model instructions, grading, or deadlines. ## Model Used OpenAI Codex, GPT-6 family, with reasoning and code execution. The host does not expose the exact underlying model version or context-window size. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have described the issue in-PR following the bug template - [x] I have not referenced internal/instance-local Paperclip issues or links - [x] My branch name describes the change and contains no internal ticket id - [x] I have run tests locally and they pass - [x] I have added tests where applicable - [x] I have updated relevant documentation - [x] I have considered and documented risks - [x] All Paperclip CI gates are green - [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all reviewer comments before merge Co-authored-by: Paperclip <noreply@paperclip.ing> |