Skip to content

test(cursor): remove the image files' temporary directories - #151

Merged
xxchan merged 1 commit into
mainfrom
test/cursor-image-tmp
Oct 6, 2026
Merged

xxchan merged 1 commit into
mainfrom
test/cursor-image-tmp

Conversation

@xxchan

@xxchan xxchan commented Oct 6, 2026

Copy link
Copy Markdown
Member

Each run of tests/cursor/cursor-session.test.ts left two oar-cursor-* directories in the system temp directory (one per image a prompt carries); a development machine had collected 130 of them. imageFile now removes its directory with onTestFinished.

Checked: the test passes (22/22), the number of oar-cursor-* directories stays the same across a run, and pnpm run check is green.

🤖 Generated with Claude Code

Each run of the cursor session tests left two oar-cursor-* directories
under the system temp directory, one per image the prompts carry. The
helper now removes its directory when the test finishes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@xxchan
xxchan merged commit 20c2f7a into main Oct 6, 2026
13 checks passed
@xxchan
xxchan deleted the test/cursor-image-tmp branch October 6, 2026 09:30
stamp-build Bot added a commit that referenced this pull request Nov 2, 2026
<!-- stamp:review:v1 -->
<sup><img
src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp"
width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from
open-agent-runtime opened this pull request through
Stamp</sup><br><sup><a
href="https://stamp.build/review?receipt=prc_ed98a6ef7b1534a57b9c55f2cda64d54"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img
src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg"
width="13" height="12" align="absmiddle" alt=""></picture> View in Stamp
→</a></sup>

---
<!-- /stamp:review:v1 -->

Qwen and Pi accept fresh `systemPrompt` and `appendSystemPrompt` values
when resuming a conversation, but omitted options do not restore the old
overrides. Add native vendor regressions for replacement, append and
both together across Qwen, Pi SDK and Pi RPC. Each case keeps the
session id and prior user history, then checks raw provider requests for
old values, replacement values and omission. The existing vendor CI jobs
collect these cases without workflow changes.

While separating Qwen's main requests from its auxiliary memory
requests, seven controlled runs established that memory extraction
happens after the main reply and before the native result. Document its
timing and usage, preserve the probe and selected observations, and
distinguish interrupted partial assistant usage from a complete turn
total. Product code is unchanged.

Validation: `CI=1 pnpm run check`; all three new cases pass on each of
Qwen 0.26.5, Pi SDK 1.4.0 and Pi RPC 1.4.0 (nine native cases). The
seven memory controls use Qwen 0.26.5 on Linux x64 with a synthetic
provider, including delayed replies and disposal while memory extraction
is streaming. Windows/macOS vendor results remain for CI; the memory
observations are scoped to Linux.

Task #151.

Co-authored-by: Otter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant