DEV Community

Cover image for Agenvoy@v1.3.18-v1.3.19
邱敬幃 Pardn Chiu
邱敬幃 Pardn Chiu

Posted on Edited on

Agenvoy@v1.3.18-v1.3.19

Agenvoy

v1.3.17 -> v1.3.19

Summary

  • v1.3.18 Adds a human-assisted step for pages that block automated access: a challenge cannot be avoided, but the content is still needed, so Agenvoy asks the user to complete the check in a browser window. Interactive prompts across every interface now follow the configured reply language, since a prompt exists to be understood by the person answering it.
  • v1.3.19 This hotfix extends manual human verification to page downloads with a session-scoped cache so users are not re-prompted across requests. It also skips interactive prompts in headless Linux environments and delegates shared browser checks upstream.

翻譯

  • v1.3.18 新增真人協助步驟:網站的真人驗證避不開,但資訊仍需完整取得,因此改為請使用者在瀏覽器視窗完成驗證。各介面的互動提示改依設定的回覆語言顯示,因為提示的重點是讓回答的人看得懂。
  • v1.3.19 此 hotfix 將手動真人驗證擴展至頁面下載並加入會話級快取,避免使用者在同一請求脈絡下重複受詢。同時在無圖形介面的 Linux 環境略過互動視窗提示,並將共用的瀏覽器檢查委派至上游套件。

Changes

FEAT

  • Add manual human verification to fetch_page
    • Ask the user whether to verify manually when a headed fetch hits a challenge
    • Open a browser window on the daemon machine and wait up to 5 minutes
    • Reuse the answer for the rest of the task
    • Skip the URL as 403 when declined or when no one can be asked (auto mode, no prompt, no listener)
  • Localize interactive prompts to the configured reply language
    • English by default and for auto
    • Tool approval titles, options, password and skip-reason prompts on TUI, WebUI, Discord and Telegram
    • fetch_page verification question, ask_user progress, placeholders and buttons
    • TUI key hints on agent prompts, store_secret default prompt and chat secret notes
    • Discord/Telegram notices: verification code, resolved pending task, missing speech-to-text model
    • Texts in configs/confirm/*.json for all 16 reply languages, validated at startup
  • Add manual human verification to download_file (render: true)
    • Reuse existing session decisions with the configured challenge wait
    • Prompt on ErrChallengeRequired and skip as 403 when declined
    • Reset session challenge state and skip as 403 on ErrChallengeClosed
  • Persist challenge verification decisions across calls per session
    • Cache enabled or declined decisions by SessionID for 30 minutes after last use
    • Refresh the expiry window on each subsequent read
    • Evict the cached entry when ResetChallenge is called

翻譯

  • fetch_page 新增真人手動驗證
    • 可見視窗模式遇到驗證時,詢問使用者是否手動驗證
    • 在 daemon 所在電腦開啟瀏覽器視窗,最多等待 5 分鐘
    • 同一任務沿用答案
    • 拒絕或無法詢問(auto 模式、不可詢問、無接收端)時,該網址以 403 略過
  • 互動提示改依設定的回覆語言輸出
    • 預設與 auto 時為英文
    • TUI、WebUI、Discord、Telegram 的工具確認標題、選項、密碼與略過理由提示
    • fetch_page 驗證詢問、ask_user 的進度、輸入提示與按鈕
    • TUI 中 agent 彈窗的按鍵提示、store_secret 預設提示與聊天密文說明
    • Discord/Telegram 通知:驗證碼、待處理任務已處理、未選語音轉文字模型
    • 文字集中於 configs/confirm/*.json,涵蓋 16 種回覆語言,啟動時檢查
  • 為 download_file(render: true)新增手動真人驗證流程
    • 沿用既有 session 決定並套用設定的驗證等待時間
    • 遇到 ErrChallengeRequired 時詢問使用者,拒絕則以 403 略過
    • 遇到 ErrChallengeClosed 時重設 session 驗證狀態並以 403 略過
  • 依 session 跨次保留真人驗證決定
    • 以 SessionID 快取同意或略過狀態,於最後一次使用後保留 30 分鐘
    • 每次讀取時刷新到期時間
    • 呼叫 ResetChallenge 時清除快取項目

FIX

  • Fix WebUI hanging until the tool timeout on in-tool prompts
    • Affects the fetch_page verification question and store_secret
    • The web listener only handled tool approvals, so these prompts were never shown
    • They now arrive as a prompt card, answered through the existing confirm endpoint and replayed on reconnect
  • Skip manual verification prompts on headless Linux and WSL
    • Return false from askChallenge when running under WSL
    • Require DISPLAY or WAYLAND_DISPLAY on non-WSL Linux before prompting

翻譯

  • 修正 WebUI 遇到工具執行中的詢問時卡到工具逾時
    • 影響 fetch_page 驗證詢問與 store_secret
    • 原本 WebUI 只處理工具確認,這類詢問從未顯示
    • 改以問題卡呈現,經既有確認端點回覆,重新連線時重送
  • 在無圖形介面的 Linux 與 WSL 環境略過手動驗證提示
    • 於 WSL 下執行時由 askChallenge 直接回傳 false
    • 非 WSL 的 Linux 需具備 DISPLAY 或 WAYLAND_DISPLAY 才進行詢問

UPDATE

  • Remove emoji prefixes from Discord/Telegram buttons and chat secret notes
    • Buttons are matched by text across all languages
    • Label length cap rises to the 64-byte Telegram callback limit
  • Unify English approval wording across interfaces
    • WebUI and chatbot options: Yes, don't ask again/Abort, keep for resume/Cancel, delete task
    • TUI skip-reason prompt shares the WebUI text

翻譯

  • 移除 Discord/Telegram 按鈕與聊天密文說明前的 emoji
    • 按鈕改以文字比對所有語言
    • 文字長度上限放寬到 Telegram callback 的 64 bytes
  • 統一各介面的英文確認文字
    • WebUI 與 chatbot 選項:Yes, don't ask again/Abort, keep for resume/Cancel, delete task
    • TUI 略過理由提示與 WebUI 共用

REFACTOR

  • Extract challenge helpers and delegate page checks to go-browser
    • Move challenge text loading, prompting, and decline handling into challenage.go
    • Replace local URL, error-title, and Chrome profile helpers with go-browser

翻譯

  • 抽離驗證輔助函式並將頁面檢查委派至 go-browser
    • 將驗證提示文字載入、詢問與拒絕處理移至 challenage.go
    • 以 go-browser 取代本地網址、錯誤頁標題與 Chrome 設定檔判斷輔助函式

CHORE

  • Bump go-browser to v0.3.8 for challenge detection and the manual verification wait

翻譯

  • 升級 go-browser 至 v0.3.8,取得驗證偵測與手動驗證等待

Scope

  • internal/tools/fetchPage/ — FEAT, FIX, REFACTOR (challenage.go, downloadFile.go, fetchPage.go)
  • internal/tools/types/ — FEAT (executor.go)
  • configs/confirm/, configs/configs.go, internal/filesystem/confirmText.go — FEAT
  • internal/utils/ (permissionFormat.go, askUserFormat.go), internal/tools/interactive/storeSecret.go — FEAT
  • internal/runtime/tui/ (handlerPopup.go, view.go) — FEAT, UPDATE
  • internal/runtime/listener.go, internal/runtime/chatbot/ — FEAT, UPDATE
  • internal/runtime/routes/handler/ (confirm.go, multilog.go, pending.go), internal/agents/types/event.go — FEAT, FIX
  • page/src/, page/public/ — FEAT, FIX, UPDATE
  • go.mod, go.sum — CHORE (go-browser v0.3.8)

Generated by SKILL

Top comments (0)