Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ask: 答えの URL は読み上げず、聞いてから PC のブラウザで開く

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
cli

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

enhancement

やりたいこと

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from kan/stackchan-cli

All issues in kan/stackchan-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.