Skip to content

feat: session awareness tools, dev workbench, telegram onboarding#102

Merged
luokerenx4 merged 5 commits intomasterfrom
dev
Apr 5, 2026
Merged

feat: session awareness tools, dev workbench, telegram onboarding#102
luokerenx4 merged 5 commits intomasterfrom
dev

Conversation

@luokerenx4
Copy link
Copy Markdown
Contributor

Summary

  • Session awareness tools: 3 new AI tools (listConnectors, listSessions, readSession) that give the AI cross-session visibility — it can now query what happened in other sessions (e.g., heartbeat checks web chat context, web chat reads heartbeat reasoning)
  • Context injection: each connector injects platform/session identity into historyPreamble so the AI knows where it's operating (Web UI, Telegram, heartbeat, cron, MCP Ask)
  • Dev page workbench: restructured into Connectors/Tools/Sessions tabs with a tool execution panel — select any tool, fill inputs from its JSON Schema, execute, inspect results
  • Telegram onboarding: magic link authorization flow — unauthorized users get a clickable link to the web UI that auto-adds their chat ID
  • lastInteraction persistence: ConnectorCenter now restores last interaction from EventLog on startup so it survives restarts

Test plan

  • 15 unit tests for session tools (listConnectors, listSessions, readSession, path traversal, pagination, includeToolCalls filter)
  • 959 total tests passing, 49 test files
  • Manual: /dev → Tools tab → execute listConnectors, listSessions, readSession
  • Manual: verify heartbeat/cron historyPreamble includes session context
  • Manual: Telegram unauthorized user receives magic link

🤖 Generated with Claude Code

Ame and others added 5 commits April 5, 2026 12:58
Give the AI cross-session visibility via three new tools (listConnectors,
listSessions, readSession) and inject platform/session context into every
askWithSession historyPreamble so the AI knows where it's operating.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Restructure Dev page into Connectors/Tools/Sessions tabs. Tools tab
provides a grouped tool list with schema-driven input forms and a
right-side result panel for manual tool execution and inspection.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…mestamps

- ConnectorCenter recovers lastInteraction from EventLog buffer on
  construction so it survives restarts
- readSession gains includeToolCalls param to strip tool blocks
- listConnectors returns ISO timestamp instead of raw epoch ms

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Auth guard now reads chatIds from connectors.json per-request instead of
using the static snapshot from startup, allowing chat ID changes without
restart. Also fixes "Empty = allow all" comment (actual behavior is reject all)
and removes internal config details from unauthorized user reply.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Unauthorized users now receive a clickable link to the Web UI with their
chat ID pre-filled. The ConnectorsPage shows a confirmation banner — one
click to authorize, no config file editing or restart needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@luokerenx4 luokerenx4 merged commit c50f9fe into master Apr 5, 2026
2 checks passed
timFinn pushed a commit to timFinn/OpenAlice that referenced this pull request Apr 16, 2026
Upstream changes:
- AgentEvent type system with runtime validation
- Decimal precision for monetary fields (all brokers)
- Profile-based AI config with preset catalog
- Codex AI provider (OpenAI via ChatGPT OAuth)
- UI reorganization (Automation, Logs, News pages)
- News feed view with filtering + /api/news endpoint
- Currency-aware portfolio + FX rates
- CCXT Hyperliquid support + dynamic credentials
- Commodity canonical naming + catalog
- Telegram auth + trading panel
- Session awareness tools + Dev workbench

Fork features preserved:
- Signal router (8 signals, 2m poll)
- Market Pulse dashboard (/pulse)
- Paper bot scorecard + attribution
- Economy tools (FRED, CPI, rates)
- Quote streaming (Alpaca WS + CCXT Pro)
- Safety guards (6 autonomous guards)
- Dual account architecture
- Heartbeat active-hours + compaction
- Fear & Greed, GDELT, prediction markets

Merge fixes:
- Guards/portfolio-analytics adapted to Decimal string fields
- Calculator spec updated for CalculateOutput { value, dataRange }
- Technical indicators (STOCHRSI, ADX, OBV, VWAP, PIVOT) accept TrackedValues
- Persona hot-reload merged with date injection
- Commodity provider uses correct providers.commodity config
timFinn added a commit to timFinn/OpenAlice that referenced this pull request Apr 16, 2026
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.

1 participant