Skip to content

Tolerate U+200E in the skill-selection e2e assertion - #18782

Merged
gtritchie merged 1 commit into
mainfrom
e2e-tolerate-lrm-in-skill-assertion
Sep 11, 2026
Merged

gtritchie merged 1 commit into
mainfrom
e2e-tolerate-lrm-in-skill-assertion

Conversation

@gtritchie

Copy link
Copy Markdown
Member

chat-user-skills.test.ts asserts that the assistant emits skill: custom-code-review when it selects a user-level skill. The assertion matched skill:\s*<name>.

Posit Assistant 1.4.0 began prefixing every tool-call caption with U+200E (LEFT-TO-RIGHT MARK), so that an rtl-truncated file path keeps its leading slash on the left — posit-dev/assistant d6d3901e7. The rendered text is now skill:\n‎custom-code-review.

JavaScript's \s spans  -  and does not include U+200E, so the assertion failed against a string that is visually identical to what it expected. It failed deterministically on Windows, Linux and macOS, on both attempts, in the PA 1.4.1 release gate (run 34546046306).

Change

Match the mark explicitly with skill:[\s‎]*<name>.

The class also accepts bare whitespace, so the test passes against both released versions:

pattern PA 1.3.1 (no LRM) PA 1.4.1 (LRM)
skill:\s*<name> pass fail
skill:[\s‎]*<name> pass pass

Scope

Only this assertion is affected. The other regex assertions in the Posit Assistant suite (chat-guardrails.test.ts, chat-guardrails-paths.test.ts) match R console output rather than chat text, and chat-user-skills.test.ts:261 uses a substring match, which a leading mark does not disturb.

npm run typecheck passes in e2e/rstudio.

Not covered here

The same gate run also failed restart-under-agent.test.ts:102 on Windows (page.waitForFunction 30s timeout during a project open/close cycle, with Agent process exited with status 1 in the rsession log). That is a separate issue and is not addressed by this PR.

Posit Assistant 1.4.0 began prefixing every tool-call caption with U+200E
(LEFT-TO-RIGHT MARK) so that an rtl-truncated file path keeps its leading
slash on the left, in posit-dev/assistant d6d3901e7.

JavaScript's \s character class spans  -  and so does not match
U+200E. The assertion therefore failed against a rendered string that is
visually identical to what it expected, deterministically on Windows,
Linux and macOS in the 1.4.1 release gate.

Match the mark explicitly. The class also accepts the bare whitespace that
1.3.1 and earlier emit, so the test passes against both released versions.
@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
2750 0 187 14
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 691 0 38 4
✅ desktop-macos 698 0 33 3
✅ desktop-windows 694 0 41 4
✅ server-linux 637 0 45 3
✅ setup 28 0 20 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit 126402f366d014a910384a62d7b0b71952c4f4af - Run #940

@gtritchie
gtritchie merged commit 904450a into main Sep 11, 2026
56 of 57 checks passed
@gtritchie
gtritchie deleted the e2e-tolerate-lrm-in-skill-assertion branch September 11, 2026 05:02
gtritchie added a commit that referenced this pull request Sep 12, 2026
* Match chat messages by role testid, not data-message-id (#18781)

PA 1.4.0 (#2395) added a per-turn footer that carries data-message-id and
renders after the message row, so messageItem.last() resolved to a cost and
timing row reading "8:54 PM" instead of the reply. Every chat test that
asserts on the last message failed on all three platforms, and the dead-turn
detector read those footers as non-substantive, reporting them as the provider
dropping turns mid-stream.

Match the ChatMessage row wrapper and the MessageRenderer content div instead,
so the locator tracks what a message is rather than what shares its id. The
matched set is unchanged against the currently released assistant, so the
suite runs against both it and the pre-release builds the gate exercises.

Route the two inline [data-message-id] locators in conversation-history
through the page object so there is one definition to keep correct.

(cherry picked from commit 9bae5ac)

* Tolerate U+200E in the skill-selection e2e assertion (#18782)

Posit Assistant 1.4.0 began prefixing every tool-call caption with U+200E
(LEFT-TO-RIGHT MARK) so that an rtl-truncated file path keeps its leading
slash on the left, in posit-dev/assistant d6d3901e7.

JavaScript's \s character class spans \u2000-\u200a and so does not match
U+200E. The assertion therefore failed against a rendered string that is
visually identical to what it expected, deterministically on Windows,
Linux and macOS in the 1.4.1 release gate.

Match the mark explicitly. The class also accepts the bare whitespace that
1.3.1 and earlier emit, so the test passes against both released versions.

(cherry picked from commit 904450a)

* e2e: keep a slow posit ai sign-in from failing the whole shard (#18780)

A slow redirect after submitting the password on login.posit.cloud was
classified as a credential failure (the step was marked fatal), which
failed the auth setup project and left every dependent test as "did not
run". Click with noWaitAfter so the 30s URL wait owns that budget instead
of the runner's 10s actionTimeout, and only treat the step as fatal when
the page actually shows a rejection message; a stalled redirect now falls
through to the transient path and the @ai tests skip.

Also give the readline-notification test the same settle window the rest
of the suite gives an assistant turn (the agent keeps working after
readline() returns), size its timeout for two turns, and spell out in the
prompt that the code must be run with the executeCode tool rather than
written to a file.

(cherry picked from commit 2309310)

---------

Co-authored-by: Kevin Ushey <[email protected]>

This branch was previously deployed

1 inactive deployment
e2e-playwright — 126402f3 Deployed Sep 11, 2026 by gtritchie via macos / e2e-desktop-macos (2) #940
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