- Introduced an interactive flow for creating new sessions, allowing users to select agents and workspaces conversationally.
- Updated the assistant system prompt to include product references and improved guidelines for user interactions.
- Added a new command to clear assistant history and improved error handling during session creation.
- Enhanced workspace input handling to support relative paths and ensure user-friendly prompts.
- Added new commands for cleaning up sessions, including a comprehensive cleanup option that excludes notification and assistant topics.
- Updated message formatting for session status display and improved user feedback during cleanup operations.
- Introduced additional parameters for better session management and command handling in the Telegram adapter.
- Updated session handoff terminology in documentation and code for clarity.
- Introduced new commands for managing sessions and integrations in Telegram.
- Improved session transfer functionality between terminal and Telegram.
- Enhanced message formatting to prevent HTML tag breaks during message splitting.
- Added integration management for agents, allowing installation and uninstallation of session transfer features.
This update improves user experience by streamlining session management and enhancing integration options.
Use getCurrentVersion() which walks up directories to find package.json
instead of hardcoded relative path that fails in global installs.
Bump version to 0.4.6.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Added commands for session handoff between Claude CLI and Telegram, allowing users to transfer sessions seamlessly.
- Introduced `adopt` and `integrate` commands in the CLI for managing agent sessions and integrations.
- Enhanced API server to support session adoption and improved agent capabilities reporting.
- Updated documentation to reflect new features and usage instructions for session handoff.
- Added an HTTP API to the OpenACP daemon for managing sessions and topics.
- Introduced `openacp api` CLI commands for creating, canceling, and querying sessions, as well as managing topics.
- Updated the API server to handle new endpoints for session details, health checks, and configuration management.
- Enhanced topic management with cleanup and deletion capabilities.
- Refactored existing CLI commands to align with the new API structure.
This update improves user interaction by allowing session and topic management directly from the command line, enhancing the overall functionality of OpenACP.
Handle Telegram "message is not modified" error gracefully when resuming
sessions, instead of falling through to create a duplicate message.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Toggle dangerous mode now falls back to session store when the session
is not in memory (e.g. after restart), so the setting survives reboots.
Also restores dangerousMode from store during lazy session resume.
Bump version to 0.4.4.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace inline keyboard buttons with plain <code> text lines for skill
commands, making them easier to copy on mobile. Remove dynamic bot menu
updates (updateCommandAutocomplete) — only static system commands remain.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Introduced the `OPENACP_SKIP_UPDATE_CHECK` environment variable to allow users to bypass update checks during server startup.
- Updated the `startServer` function to set this variable for both daemon and non-daemon child processes.
- Modified the `checkAndPromptUpdate` function to respect the new environment variable, enhancing flexibility in update management.
- Introduced `/restart` and `/update` commands for managing the OpenACP application directly from Telegram.
- Implemented logic to check for updates, notify users, and handle application restarts seamlessly.
- Enhanced menu options to include new commands, improving user interaction and accessibility.
- Updated session management to ensure proper handling of permission requests and session states during updates and restarts.
- Enhanced `handleNewChat` to resolve agent configuration from existing sessions or records before creating a new session.
- Implemented cleanup of orphaned topics if session creation fails, ensuring better resource management.
- Updated session cancellation logic to maintain active status during cancellation, improving session state integrity.
- Updated `executeNewSession` to return `firstMsgId` alongside `threadId` for improved session link generation.
- Modified `setupActionCallbacks` and `TelegramAdapter` to utilize `firstMsgId` when creating deep links to session topics.
- Added `getMsgId` and `getUsageMsgId` methods in `UsageMessage` and `ActivityTracker` respectively for better access to message IDs.
- Ensured proper handling of message IDs in session cancellation to maintain state integrity.
- Added commands to enable and disable dangerous mode, allowing auto-approval of permission requests within a session.
- Implemented UI updates to reflect the current state of dangerous mode in session topics.
- Enhanced session handling to suppress notifications and commands for the assistant session.
- Updated session management to handle state persistence and fallback mechanisms for session records.
- Adjusted ThinkingIndicator behavior to accommodate new session timeout configurations.
- Updated ThinkingIndicator to prevent API calls when dismissed and added a refresh timer for ongoing messages.
- Modified ActivityTracker to ensure proper dismissal of the ThinkingIndicator without triggering deleteMessage API calls.
- Improved test cases to reflect new behavior and ensure correct state management during show/dismiss/reset cycles.
- Adjusted spawnAssistant to handle assistant initialization in the background, improving startup responsiveness.
- Added logging for assistant session spawning and readiness in TelegramAdapter.
- Implemented user notifications for failed assistant session starts, including error messages.
- Updated message handling to check for assistant availability before finalizing drafts.
- Improved logging in spawnAssistant function to track session creation and system prompt completion.
- 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