mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-14 05:37:40 +02:00
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01En8dRGsJPLrJCQBEkTH4Mp
11 lines
489 B
TypeScript
11 lines
489 B
TypeScript
// The composer the user last typed in, by its data-osw-composer owner id. Dictation with no cursor anywhere lands there (expanding a collapsed card on the way) instead of in a brand-new chat, so a pending attachment or draft is never stranded.
|
|
let lastFocusedComposerId: string | null = null;
|
|
|
|
export function setLastFocusedComposer(ownerId: string): void {
|
|
lastFocusedComposerId = ownerId;
|
|
}
|
|
|
|
export function getLastFocusedComposer(): string | null {
|
|
return lastFocusedComposerId;
|
|
}
|