fix(api): show all channel sessions in web UI, not just web/pico#2002
Open
Huangting-xy wants to merge 3 commits intosipeed:mainfrom
Open
fix(api): show all channel sessions in web UI, not just web/pico#2002Huangting-xy wants to merge 3 commits intosipeed:mainfrom
Huangting-xy wants to merge 3 commits intosipeed:mainfrom
Conversation
- Parse session key format to extract channel from all session types - Add 'channel' field to sessionListItem for filtering/grouping - Support sessions from telegram, discord, and other channels Fixes sipeed#1996
Fix copy-paste error in SaveConfig where Weixin.secDirty was checked but Discord.secDirty was incorrectly cleared instead. This caused Weixin channel token changes to be saved but the dirty flag never cleared, leading to config persistence issues. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a prominent reference to security_configuration.md at the beginning of the configuration guide. This helps new users quickly find information about storing API keys in .security.yml. Fixes sipeed#1986 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
handleListSessionsinweb/backend/api/session.goto parse all session key formats (agent:main::...)extractChannelFromSessionKey(),extractSessionIDFromSanitizedKey(),isSessionJSONLFile()helper functionsChannelfield tosessionListItemstructRelated Issue
Fixes #1996
🤖 AI Code Generation
🛠️ Mostly AI-generated
Test Environment
Evidence
go test ./web/backend/api/... -run TestHandle.*Sessionagent:main:<channel>:direct:<peer>Checklist
make fmtandgo vetlocally