Skip to content

Bugfix/gramjs#7

Open
therenovatio wants to merge 14 commits intoTONresistor:devfrom
therenovatio:bugfix/gramjs
Open

Bugfix/gramjs#7
therenovatio wants to merge 14 commits intoTONresistor:devfrom
therenovatio:bugfix/gramjs

Conversation

@therenovatio
Copy link
Contributor

Description

Brief description of the changes and their motivation.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)

Checklist

  • I have read the Contributing Guide
  • My PR targets the dev branch (not main)
  • npm run typecheck passes
  • npm run lint passes
  • npm test passes
  • I have added tests for new functionality (if applicable)
  • I have updated documentation (if applicable)

Related Issues

Closes #(issue number)

TONresistor and others added 14 commits February 22, 2026 18:07
Separate agent lifecycle from WebUI lifecycle so the agent can be
started/stopped at runtime without killing the WebUI server.

- Add AgentLifecycle state machine (stopped/starting/running/stopping)
- Refactor TeletonApp: extract startAgent()/stopAgent(), wire lifecycle
- Replace process.exit(1) with throw in agent start path
- Add REST endpoints: POST /api/agent/start, stop, GET /api/agent/status
- Add SSE endpoint: GET /api/agent/events (real-time state push)
- Add useAgentStatus hook (SSE + polling fallback + reconnection)
- Add AgentControl sidebar component (badge, play/stop, confirm dialog)
- 46 new tests (20 unit + 16 route/SSE + 10 E2E), 944 total passing
- Use StreamableHTTPClientTransport as primary for URL-based MCP servers
- Fall back to SSEClientTransport if Streamable HTTP connection fails
- Close original client/transport before fallback to prevent resource leaks
  (AbortController, sockets)
- mcpServers dep accepts lazy function for dynamic live status
- Connection failure log level: warn (non-fatal, optional servers)
- Improve error logging with stack traces on connection failure
- mcpServers passed as lazy function () => [...] for live status (not a
  snapshot frozen at startup)
- Add streamable-http detection in type guard (command → stdio,
  url → streamable-http, else → sse)
- McpServerInfo.type extended with 'streamable-http' in API types
- Unused params prefixed with _ to satisfy noUnusedParameters
- Wrap entire sendJetton flow in try/catch for consistent PluginSDKError
  propagation — raw errors no longer bubble up untyped
- Remove SendMode.IGNORE_ERRORS: transaction errors are now surfaced
  instead of silently swallowed
- Fix || → ?? on jetton decimals: prevents 0-decimal tokens from
  incorrectly falling back to 9 decimals
- btn-danger: red accent → neutral surface/border (glass style)
- alert.success / alert.error: green/red backgrounds → uniform
  rgba(255,255,255,0.04) with subtle border
…l counts

- Replace DeepWiki badge with docs badge linking to docs.teletonagent.dev
- Update LLM provider count from 6 to 10 (add Moonshot, Mistral, Cocoon, Local)
- Update built-in tools count from 114 to 100+
GET /api/plugins was returning a stale snapshot created at WebUI init,
before startAgent() loaded external plugins into this.modules.

Now computes dynamically from deps.marketplace.modules (live reference)
using the same isPluginModule filter already used in marketplace routes.
Falls back to deps.plugins if marketplace is not configured.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants