mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 20:05:46 -06:00
refactor(ui): keep session navigation within line budget
This commit is contained in:
@@ -287,15 +287,14 @@ export class AppSidebarSessionNavigationElement extends AppSidebarBase {
|
||||
|
||||
private setApplicationSession(sessionKey: string) {
|
||||
const context = this.context;
|
||||
if (!context) {
|
||||
return;
|
||||
if (context) {
|
||||
selectApplicationSession({
|
||||
selection: context.agentSelection,
|
||||
gateway: context.gateway,
|
||||
sessionKey,
|
||||
agentId: parseAgentSessionKey(sessionKey)?.agentId ?? this.selectedAgentIdForSessions(),
|
||||
});
|
||||
}
|
||||
selectApplicationSession({
|
||||
selection: context.agentSelection,
|
||||
gateway: context.gateway,
|
||||
sessionKey,
|
||||
agentId: parseAgentSessionKey(sessionKey)?.agentId ?? this.selectedAgentIdForSessions(),
|
||||
});
|
||||
}
|
||||
|
||||
readonly selectSession = (sessionKey: string) => {
|
||||
|
||||
Reference in New Issue
Block a user