Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Document or normalize soft wraps in ui.waitFor text matching

オープン
#85 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
bun, typescript
領域
cli, testing-qa

調査の方向性

ui.waitFor エントリーポイントから始め、表示されている reply と既存の wait 呼び出しを使って 100x32 の TUI ケースを再現します。記録された frame と frame.lines の出力を調べ、物理行に関する現在の挙動を確認します。これで完了となるのは、その一致の契約を文書化するか、オプトインで有効化できる soft-wrap 正規化済みの一致を提供して検証し、選択したスコープを明示した場合です。

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

説明

documentation

Drive 2.1.0, Bun 1.4.0, OpenCode V2 97303c39dd153b64d7036249b279490201820b19, a 100x32 TUI.

A visible reply can fail ui.waitFor("No sourcebook tools are available yet.") when the substring crosses a terminal soft wrap. The model reply was:

The sourcebook executable is ready, but it is not connected. No sourcebook tools are available yet.

The scripted response completed, but the wait timed out after 5000ms with UiWaitTimeoutError. Adding a paragraph break before “No sourcebook tools…” made the unchanged wait pass. The server-side request/history path was not failing.

It would help to document whether string matching is against physical terminal lines, or offer an opt-in soft-wrap-normalized match. The error object's frame.lines printed as [Object ...] through run, so identifying the wrap required inspecting the recording.

Expected: either a documented physical-line matching contract, or a way to wait for visible prose independently of soft wrapping. No runtime change is needed for the workaround: use a shorter visible substring or a semantic/server-side predicate.

主要言語
TypeScript
スター
38
フォーク
8
平均マージ
4時間 42分
マージ済み PR(30日)
11

環境構築

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

はじめの一歩

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

anomalyco/opencode-drive のほかの issue

anomalyco/opencode-drive の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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