Skip to content

feat: session alias in Telegram + agent context UI panel#7

Open
vikrant82 wants to merge 1 commit intomainfrom
feat/telegram-alias-agent-context-ui
Open

feat: session alias in Telegram + agent context UI panel#7
vikrant82 wants to merge 1 commit intomainfrom
feat/telegram-alias-agent-context-ui

Conversation

@vikrant82
Copy link
Copy Markdown
Owner

Summary

  • Telegram messages: Show session alias instead of truncated ID; remove unreachable "Open in browser" localhost link
  • Agent context UI: New "Show assistant messages" panel in feedback UI — displays last agent message with collapse/expand, persisted via localStorage, wired through SSE state events

Changes

Telegram (channels.ts, index.ts)

  • Replace feedbackUrl with sessionAlias in NotificationParams / FYIParams
  • Update formatNotificationParts() and formatFYIParts() to display alias (falls back to truncated sessionId)
  • Remove _feedbackUrl param from buildKeyboard()
  • Update all 3 call sites in index.ts to pass sessionAlias via sessionManager.getSessionAlias()

Agent Context Panel (feedback-html.ts, feedback-html-composer-history-script.ts, session-manager.ts, index.ts)

  • HTML panel with collapse/expand button, styled for both light/dark themes
  • "Show assistant messages" checkbox in Settings
  • updateAgentContextPanel() function wired into applyUiState()
  • setAgentContext() now fires onStateChange SSE event
  • buildUiStatePayload() includes agentContext field
  • localStorage keys for visibility and collapsed state

…ser link, add agent context UI panel

- Replace feedbackUrl with sessionAlias in NotificationParams/FYIParams
- Telegram messages now show session alias (with fallback to truncated ID)
- Remove 'Open in browser' link (unreachable from mobile/remote)
- Add 'Show assistant messages' panel in feedback UI with collapse/expand
- Wire agentContext through SSE state events to update panel in real-time
- Add localStorage persistence for panel visibility and collapse state
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