Proposal: Telegram remote-control integration
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 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 小时
- 30 天内合并 PR
- 28
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 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 一周以上 新手友好度 12/100
johannesjo/parallel-code#375 · 2 条评论 ·
维护者通常 4 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
johannesjo/parallel-code#374 ·
维护者通常 4 天内回复
查看 johannesjo/parallel-code 的全部 Issue
相似的 Issue
-
enhancement feature/signals self-driving team/self-driving
难度 2/5 1-3 小时 新手友好度 78/100
PostHog/posthog#144208 · 1 条评论 ·
维护者通常 1 天内回复
-
bug good first issue web
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
triage: not actionable
难度 2/5 1-3 小时 新手友好度 66/100
oxc-project/oxc#30518 · 1 条评论 ·
维护者通常 1 天内回复
-
bug Claude useability
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 70/100
wazuh/wazuh-dashboard-plugins#9751 ·
维护者通常 1 天内回复