routines: a script check that wakes the AI can use the routine's timeoutMinutes, not a fixed 60 seconds

オープン 初心者向け
#309 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
74/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

server/routine-script.ts の scriptRunOptions から始めてください。今日 SCRIPT_TIMEOUT_MS がどのように選ばれているか、また post フラグと access: "full" がそこでどのように読まれているかを確認し、#304 で行われた変更と比較してください。タイムアウトは timeoutMinutes から取得するようにしてください。access が full のときは常にそうし、読み取り専用チェック用に 60 秒のフェンスは残してください。完了とは、既存の routine-script テストの隣に、full アクセスの非 post チェックが timeoutMinutes を受け取り、読み取り専用チェックは依然として 60 秒を受け取ることを示すテストがあり、スイートが通ることです。

索引モデルが issue の本文から書いたものです。

説明

The problem

Since #304, a script-only routine (post: true) uses the routine's timeoutMinutes. A script check that only decides whether to wake the AI still stops at 60 seconds (SCRIPT_TIMEOUT_MS), even with access: "full" (scriptRunOptions in server/routine-script.ts).

Some of my wake-checks do real work before the AI reads the result. One pulls the vault with git fetch (up to 90 s on a slow link). Another collects a week of work history from an API and writes the weekly file. These are not quick reads, so they fail at 60 s even though the person approved full access on a card.

What you'd like

scriptRunOptions uses timeoutMinutes for every script check that has access: "full", not only for post. Read-only checks in the fence keep the 60 second limit.

Anything else

This is a one-line change plus a test. I'm happy to send the PR.

主要言語
TypeScript
スター
277
フォーク
27
平均マージ
7時間 8分
マージ済み PR(30日)
81

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DuskBotAI/duskbot のほかの issue

DuskBotAI/duskbot の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。