- Added `getSessionRecord` method to `SessionManager` for retrieving session data.
- Introduced `skillMsgId` field in `TelegramPlatformData` to persist message IDs across sessions.
- Updated `TelegramAdapter` to restore and persist `skillMsgId` during command handling and cleanup.
- Enhanced session name persistence to ensure it is retained after bot restarts.
- Included verification steps for manual testing of new functionality.
- Upgraded grammY dependency from v1.30.0 to v1.41.1 in package.json and pnpm-lock.yaml.
- Deleted obsolete Telegram streaming redesign implementation and specification documents as they are no longer relevant.
Replace old MessageDraft (sendMessageDraft, ChatType, draftUnsupportedChats,
fallback logic) with a simpler design using only sendMessage + editMessageText.
Flushes buffered text every 5s via TelegramSendQueue with coalescing support.
Update adapter.ts constructor call to match new signature.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace simple promise-chain throttler with explicit item array supporting
per-session text coalescing (type/key dedup) and 429 rate-limit drop via
onRateLimited(). Default interval changed from 100ms to 3000ms.
Also add non-null assertions to existing callers for the new T | undefined
return type (callers without coalescing always receive defined values).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Updated regex patterns in action-detect.ts to match English command phrases.
- Adjusted inline keyboard text responses to English for consistency in user interaction.
- Ensured that the detection logic accommodates both command patterns and keywords in English.
Viewer links:
- Pass _meta and rawInput from ACP events to extractFileInfo
- Extract file content from _meta.claudeCode.toolResponse.file
(where Claude Code stores raw file data)
- Carry forward viewerFilePath in tool state for display
File viewer:
- Markdown preview toggle (marked.js) for .md files
- Fix preview scrollbar — wrapper div for full-width scroll
Display:
- Viewer links show file name (e.g. "View index.html" not "View file")
- Extra line break before viewer links for spacing
Tunnel service:
- Auto-retry next port when configured port is in use (up to 10 attempts)
- Log actual port used if different from configured
- Replaced hardcoded path resolution with findPackageRoot to support various directory structures for agent commands.
- Ensures compatibility with both TypeScript compilation and bundling scenarios.
- /new without full params → assistant asks for missing agent/workspace
- /cancel in assistant topic → assistant confirms which session to cancel
- Only applies to assistant topic, session topics unchanged
Entire-Checkpoint: 1424524a9044
Wrap tool_call, tool_update, plan, usage, session_end, error,
notification, sendSkillCommands, and sendPermissionRequest through
TelegramSendQueue. Pass streamThrottleMs and sendQueue to MessageDraft.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Support configuring tunnel provider (cloudflare, ngrok, bore, tailscale),
port, auth, and provider-specific options via openacp config.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: ab23c769533a
- API sessions now create Telegram topics and wire events (like /new command)
- Fix warmup() not setting status to 'active' after completion
- Auto-approve permissions for headless sessions (no adapter fallback)
- Support positional workspace arg: openacp runtime new [agent] [workspace]
- Add auto-update check, bot admin validation, and improved autostart
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 7c2ecfa24084
- Call session.warmup() after API session creation so sessions progress
from 'initializing' to 'active'
- Include workspace path in session creation and list responses
- Show workspace in CLI runtime new output
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 2500863c4b70
- MessageDraft.finalize() accepts optional InlineKeyboard param
- Keyboard attached to last chunk in single API call
- finalizeDraft() detects action before finalize, passes keyboard directly
- Add finalizeDraft() call before usage event
Entire-Checkpoint: 989dc8ff346a
Adds api-client module with readApiPort/removeStalePortFile/apiCall utilities,
and a runtime CLI subcommand to interact with a running daemon via HTTP API.
Also fixes setup.ts to include the api config field required by the schema.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 94b35b0575cf
Implements ApiServer class with 4 REST endpoints (POST/GET/DELETE /api/sessions, GET /api/agents), port file management at ~/.openacp/api.port, EADDRINUSE graceful degradation, and max concurrent session enforcement.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: b01e13e8cb74