Skip to content

fix(agent-device): keep the agent-device hint in translated engine errors - #378

Merged
okwasniewski merged 1 commit into
mainfrom
oskar/agent-device-error-hints
Sep 21, 2026
Merged

okwasniewski merged 1 commit into
mainfrom
oskar/agent-device-error-hints

Conversation

@okwasniewski

@okwasniewski okwasniewski commented Sep 21, 2026 •

Copy link
Copy Markdown
Member
  • dismissKeyboard on an iPhone keyboard is refused by agent-device on purpose: the keyboard shows no dismiss key and agent-device taps nothing outside it (fix(ios): give keyboard dismiss a safe-area-tap fallback (#1598) callstack/agent-device#1606). Reproduced on the Settings search field with agent-device 0.21.8, it answers UNSUPPORTED_OPERATION with a hint naming the alternatives.
  • Our translateError kept only the message, so the model saw the refusal and nothing else. The hint the failure itself declares now rides in the same message; the normalizer's per-code default hint (CLI advice) stays out.
  • docs/reference/agent-device.mdx says why dismissKeyboard fails on iOS.
keyboard.dismiss failed: Unable to dismiss the iOS keyboard: the keyboard exposes no dismiss key, and background taps are never attempted (no tap outside the keyboard can be proven side-effect-free) Hint: An element whose center sits behind the on-screen keyboard is refused with tap_keyboard_occludes_target; one whose center stays above the keys presses normally. To end editing, tap the app's own Done/Cancel control, or use keyboard enter to press the return key when submission is wanted.

Closes #364


Devin Review

…rors

An iPhone keyboard shows no dismiss key and agent-device never taps
outside it, so keyboard.dismiss is refused upstream by design. The model
only saw the refusal and retried it. The hint the failure declares (the
app's own Done control, or pressing return) now rides in the same message.

Closes #364
@mintlify

mintlify Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
e2e 🟢 Ready View Preview Sep 21, 2026, 4:33 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e web: 11 passed

All 11 tests in 6 files

tests/deferred-dialog.e2e.ts · 1 passed · 1.4s

  • 🟢 one submit opens one confirm, even when double-clicked (1.4s)

tests/filter-deep-link.e2e.ts · 2 passed · 377ms

  • 🟢 filter deep link › filtering writes the query to the URL (211ms)
  • 🟢 filter deep link › opening a shared link restores the filter (166ms)

tests/login-form.e2e.ts · 4 passed · 1.1s

  • 🟢 login form › rejects a malformed email (263ms)
  • 🟢 login form › rejects a short password (253ms)
  • 🟢 login form › rejects an unknown account (274ms)
  • 🟢 login form › signs in and logs out (319ms)

tests/overlay-trap.e2e.ts · 1 passed · 813ms

  • 🟢 continues only after the banner and the overlay are gone (813ms)

tests/rich-text-editor.e2e.ts · 2 passed · 662ms

  • 🟢 rich text editor › bolding exactly the required word passes the check (385ms)
  • 🟢 rich text editor › bold that spills into the previous word fails the check (277ms)

tests/smoke.e2e.ts · 1 passed · 448ms

  • 🟢 home lists the scenarios and opens one (448ms)

e2e 0.15.0-canary-20260917213813 · 5.6s · web · run artifacts

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e web agent: 21 passed, 3 skipped

22 agent steps · 87 model calls · 311.2k tokens (81% cached) · $0.0484

All 24 tests in 4 files

tests-agent/scenarios.e2e.ts · 16 passed, 3 skipped · 16 steps · 73 calls · 2m 39s

  • ⏭️ act completes shadow-dom-form (skipped: skipped)
  • 🟢 act completes lying-labels (17.6s)
  • 🟢 act completes iframe-form (6.2s)
  • 🟢 act completes infinite-scroll (20.2s)
  • ⏭️ act completes virtualized-table (skipped: skipped)
  • 🟢 act completes overlay-trap (8.3s)
  • 🟢 act completes sticky-chrome (16.7s)
  • 🟢 act completes async-states (10.3s)
  • 🟢 act completes debounced-search (6.8s)
  • 🟢 act completes hover-menu (10.6s)
  • 🟢 act completes context-menu-trap (7.0s)
  • 🟢 act completes stale-dom (6.8s)
  • 🟢 act completes otp-auto-advance (6.7s)
  • 🟢 act completes date-picker (10.9s)
  • ⏭️ act completes rich-text-editor (skipped: skipped)
  • 🟢 act completes playbook-cleanup (15.6s)
  • 🟢 act completes promo-storefront (4.5s)
  • 🟢 act completes gift-card-purchase (7.6s)
  • 🟢 act filters the list and the URL carries the filter (3.4s)

tests-agent/login-form.e2e.ts · 1 passed · 1 step · 3 calls · 6.2s

  • 🟢 act signs in with the benchmark account (6.2s)

tests-agent/planted-bugs.e2e.ts · 3 passed · 4 steps · 8 calls · 17.0s

  • 🟢 cart totals: a judgment catches the stale order summary (8.7s)
  • 🟢 checkout review: a judgment catches the broken copy (1.7s)
  • 🟢 wishlist: a judgment catches the lost saved items (6.6s)

tests-agent/unique-cache.e2e.ts · 1 passed · 1 step · 3 calls · 6.0s

  • 🟢 act adds an address with a run-unique label (6.0s)

e2e 0.15.0-canary-20260917213813 · 3m 9s · web · run artifacts

@okwasniewski
okwasniewski merged commit a124837 into main Sep 21, 2026
9 checks passed
@okwasniewski
okwasniewski deleted the oskar/agent-device-error-hints branch September 21, 2026 17:10

This branch was successfully deployed

1 active deployment
staging - docs — 769e6b9e Deployed Sep 21, 2026 by mintlify[bot]
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.

agent-device: keyboard.dismiss fails on iOS simulator ("Unable to dismiss the keyboard")

1 participant