Skip to content

feat(chat): support hidden chat buffers on creation#2723

Merged
olimorris merged 1 commit intoolimorris:developfrom
bassamsdata:add_hidden_feature
Feb 5, 2026
Merged

feat(chat): support hidden chat buffers on creation#2723
olimorris merged 1 commit intoolimorris:developfrom
bassamsdata:add_hidden_feature

Conversation

@bassamsdata
Copy link
Contributor

Description

This PR introduces a small feature enhancement to support opening chat buffers programmatically in a hidden (background) state.

Currently, achieving this requires a workaround: opening the chat visibly, then immediately hiding it and restoring the previously active chat (if any). This change removes the need for that hack by adding native support for hidden chat buffers.

Note:
This modification is minimal and does not affect any existing behavior. It only applies to programmatic use cases, such as when creating chats via chat:new() with the hidden = true option enabled.

Use cases:
Allows creating and managing chat buffers programmatically in the background without interrupting the user's current context. This enables automation, preloading, or preparation of chats that are only shown when needed. I'm building a feature that relies on this behavior.

Thank you

AI Usage

None.

Related Issue(s)

None, this is a feature request.

Screenshots

Checklist

  • I've read the contributing guidelines and have adhered to them in this PR
  • I confirm that this PR has been majority created by me, and not AI (unless stated in the "AI Usage" section above)
  • I've run make all to ensure docs are generated, tests pass and StyLua has formatted the code
  • (optional) I've added test coverage for this fix/feature
  • (optional) I've updated the README and/or relevant docs pages

@olimorris olimorris merged commit e45da8f into olimorris:develop Feb 5, 2026
5 checks passed
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.

2 participants