ask: 答えの URL は読み上げず、聞いてから PC のブラウザで開く
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
Research direction
Start by reading the ask flow and the existing Pomodoro response-wait mechanism, including answerByTouch and isAnswer. The issue proposes separating URLs from speech, asking before opening only http or https links, and using stackchan-cli ask --open as a possible entry point. Several interaction choices remain open; done means a user can choose whether to open a link, with no automatic opening after a timeout or a negative answer.
Written by the indexing model from the issue text.
Description
やりたいこと
ask の答えに URL が含まれるとき、URL は読み上げずに飛ばす。読み上げの最後にスタックチャンが「URL を開く?」と聞き、開くと返事があったら、CLI がその URL を PC のブラウザで開く。自動では開かない(ユーザー決定)。
今の動き
~/.stackchan/ask/system.txtの雛形は「URL は使わない」と指示している。そのため、調べた先のページを答えに含められない。- 答えの文はそのまま
sayに渡す。URL が含まれると、VOICEVOX が記号や英字を 1 文字ずつ読む。
案
- system.txt を変え、出典やリンク先を答えるときは URL を文の外(末尾の行など)に書かせる。
askが答えから URL を取り出し、読み上げる文からは除く。URL があれば、答えのあとに「URL を開く?」と話す。- 返事はポモドーロの応答待ちと同じ仕組みで受ける。
- 頭のタッチ(
answerByTouchと同じく、いつもの反応は動かさない) - 声の短い返事(
isAnswer。画面のタップで聞き取りを始める) stackchan-cli ask --open(仮)
- 頭のタッチ(
- 一定時間(1 分など)返事が無ければ開かずに終える。「いいえ」「開かない」などの返事でも終える。
- 開くのは
http/httpsだけにする。Windows ではcmd /c startを使わない(URL の&を cmd.exe が解釈する)。ShellExecute かrundll32 url.dll,FileProtocolHandlerを使う。 - daemon はログオン時にタスクスケジューラから起動しているので、ユーザーのデスクトップでブラウザが開く想定。実機で確かめる。
- 開いた URL は daemon.log に残す。
--quietや CLI の表示では URL も出す。
検討すること
- URL が複数あるとき、全部開くか、最初の 1 件だけ開くか。
- 返事を待つ間に次の
askをしたら、前の URL の待ちは取り消す。 - 返事を待つ間にポモドーロの応答待ちが重なったとき、頭のタッチをどちらの返事とするか。
- daemon が無い(one-shot の)ときは、聞かずに URL を表示するだけにするか。
- Dominant language
- Go
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from kan/stackchan-cli
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
kan/stackchan-cli#13 ·
-
読み上げの途中で発話を止めるOpenenhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
kan/stackchan-cli#8 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
kan/stackchan-cli#2 · 1 comment ·
All issues in kan/stackchan-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area/docs theme/deployer
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
area/orchestration area/website kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vllm-project/aibrix#3317 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation ready
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Needs Triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100