Proposal: Telegram remote-control integration
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- electron, typescript
調査の方向性
Read openspec/specs/remote-access/spec.md and the proposed openspec/changes/add-telegram-control/ spec and tasks first. The issue describes a 61-file implementation already developed on a fork, but asks whether the project wants the capability and what PR shape and dependency approach it prefers. Done here means maintainers answer those questions; the issue does not define a newcomer-sized implementation task.
索引モデルが issue の本文から書いたものです。
説明
Proposal: Telegram remote-control integration
Why
The existing remote-access capability (openspec/specs/remote-access/spec.md) lets users see their agents on a phone, but requires:
- Phone and desktop on the same LAN, or sharing a Tailscale tailnet
- A browser session held open to receive any updates
It cannot:
- Deliver a push notification when an agent stops to ask a question
- Wake the user when an agent crashes overnight
- Work on networks where LAN/Tailscale isn't an option (mobile data, locked corporate WiFi, café hotspots)
A Telegram bot solves all three: Telegram's relay reaches the desktop from any network, and Telegram delivers native push notifications.
What
Opt-in telegram-control capability covering:
- Bot lifecycle on top of Electron
safeStorage(OS keychain — macOS Keychain / libsecret on Linux). Refuses to save when keychain unavailable. - Per-project opt-in (
telegramOptIn); master toggle + token alone are not enough. - Commands:
/start,/help,/agents,/status <id>,/tail <id>,/input <id> <text>,/focus <id>,/audit,/commands, plus codebase-integration commands/steps,/ci,/cov,/run <bookmark>,/ask. - Inline transcript replies with backpressure pause/resume so live-tail can't run away from Telegram rate limits.
- Mini App initData HMAC verification — opening the existing remote SPA inside Telegram authenticates automatically; QR + token path stays untouched.
- Optional cloudflared auto-tunnel for users without their own public URL.
- Voice prompt → text via OpenAI Whisper (opt-in, separately gated).
- File-upload-to-path: drop a file into the chat → bot writes it into a configured path and signals the agent.
- Audit log of every accepted command.
- 949-line capability spec under
openspec/changes/add-telegram-control/;openspec validate --all --strictpasses (10/10).
Scope numbers
- 61 files changed, +9785 / -19
- 5 new IPC channels behind
IPCenum +ALLOWED_CHANNELSallowlist - 1 new parallel subscriber surface on
electron/ipc/pty.ts(existing rendererExitevent unchanged) persistenceVersionbumped to2with backward-compat read of v1 snapshots
Security posture
- Bot token + Whisper key stored only under
<userData>/telegram-*.binmode0o600, encrypted viasafeStorage. Renderer never sees either credential. - Chat allowlist enforced on every command, not just
/start. - Mini App initData verified by HMAC with 60s
auth_datewindow andtimingSafeEqualagainst the embedded hash; tampered or expired payloads rejected. - Per-pattern redaction filter applied before any chat-side write.
- Tunnel is opt-in and points only at the existing remote-access HTTP server.
Questions before I send a PR
- Acceptance. Does this fit the project's direction, or would you rather see it as an out-of-tree plugin / fork?
- PR shape. The branch was developed as three slices (bot lifecycle + commands → live-tail + notifications → Mini App + tunnel + voice + uploads). I squashed for cleanliness, but I can re-split into a stacked series if you prefer reviewing slice by slice.
- Optional deps. Voice transcription pulls in the OpenAI Whisper SDK; the auto-tunnel shells out to
cloudflared. Both are opt-in and gated behind explicit settings — let me know if you'd rather they be optional peer deps, dynamic imports, or removed entirely. - OpenSpec. I added an
openspec/changes/add-telegram-control/proposal + tasks + spec following the existing pattern. Happy to relocate or reshape if the layout doesn't match your conventions.
If this is interesting, I have a clean branch ready to push and a PR description drafted. Otherwise no hard feelings — I'll keep it on my fork.
— truongducthang/parallel-code, branch telegram-control-clean
- 主要言語
- TypeScript
- スター
- 1k
- フォーク
- 144
- 平均マージ
- 4日 19時間
- マージ済み PR(30日)
- 28
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
johannesjo/parallel-code のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
johannesjo/parallel-code#385 ·
メンテナーはふだん 4 日以内に返信
-
Option to show usage as used instead of left, and potential further customization ideas対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
johannesjo/parallel-code#353 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
johannesjo/parallel-code#163 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
johannesjo/parallel-code#375 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
Package as a Platpakオープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
johannesjo/parallel-code#374 ·
メンテナーはふだん 4 日以内に返信
johannesjo/parallel-code の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ci
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-js#1248 ·
メンテナーはふだん 1 日以内に返信
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltオープンtechnik
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AhmedNAgy25/analysor#25 ·
メンテナーはふだん 1 日以内に返信