Skip to content

fix: モデルAPIの失敗の原因を示し、入口が無い時は呼び出したAIに続きを任せる - #7

Merged
quolu merged 2 commits into
mainfrom
fix/model-error-cause-and-no-entry
Oct 2, 2026
Merged

quolu merged 2 commits into
mainfrom
fix/model-error-cause-and-no-entry

Conversation

@quolu

@quolu quolu commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

変更

  • 依存するjev-ultrafastのフォークを 1b39904 に上げた(上流へは Report a short provider error code when a model call fails browser-use/jev-ultrafast#190)。モデルAPIが失敗した時、BrowserUseError に max_tokens_exceeded・authentication_error などの短い原因コードが載る。通信失敗には ReadTimeout などの例外の種類が載る。応答本文と認証値は出さない。
  • ハーネスへ入れるスキルから、呼び出したAIに検索やブラウザ操作を控えさせる書き方(「URLを自分で選んだり、ブラウザを自分で開いたりしない」「勝手にサイト探索を始めず」)を外した。no_entry の時は、AIが自分の手段で目的を続けてよい。jev-bookmarks自身は、従来どおり入口が無ければブラウザを操作せずに no_entry を返す。
  • 0.3.5。CHANGELOGと設計書を更新した。

試験

  • uv run ruff check .、uv run pytest(21件、Windows専用1件はスキップ)、拡張のNode試験3件。
  • フォーク 1b39904 単体: 試験48件が macOS・Linux・Windows で通過。実TypeSafeで HTTP 401 (authentication_error) と HTTP 400 (max_tokens_exceeded) を確認。

🤖 Generated with Claude Code

quolu and others added 2 commits October 2, 2026 05:29
- jev-ultrafastのフォークを1b39904に上げ、BrowserUseErrorに max_tokens_exceeded などの短い原因コードが載るようにした。
- スキルから、呼び出したAIに検索やブラウザ操作を控えさせる書き方を外した。no_entryの時は、AIが自分の手段で目的を続けてよい。jev-bookmarks自身の挙動は変えない。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@quolu
quolu merged commit a099a01 into main Oct 2, 2026
3 checks passed
@quolu
quolu deleted the fix/model-error-cause-and-no-entry branch October 2, 2026 05:45
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