mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-13 15:57:01 +08:00
Unify agent routing and tighten exchange config
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"time"
|
||||
|
||||
"nofx/mcp"
|
||||
"nofx/store"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -412,6 +413,9 @@ func (a *Agent) refreshCurrentReferencesForUserText(storeUserID, text string, st
|
||||
if exchanges, err := a.store.Exchange().List(storeUserID); err == nil {
|
||||
candidates := make([]EntityReference, 0, len(exchanges))
|
||||
for _, exchange := range exchanges {
|
||||
if !store.IsVisibleExchange(exchange) {
|
||||
continue
|
||||
}
|
||||
name := exchange.AccountName
|
||||
if name == "" {
|
||||
name = exchange.ExchangeType
|
||||
|
||||
Reference in New Issue
Block a user