fix(chat): yield the work status card to the context panel in project-less chats

The visibility hook looked the context panel up under the directory the
card reports about. A managed Chat reports about none, so the lookup ran
against an empty key and answered "closed" while the panel was open.

It now resolves the key the way the rail and the panel do, through
useEffectiveDirectory. The reporting directory is no longer an input to
this hook at all.
This commit is contained in:
Bohdan Triapitsyn
2026-08-22 20:31:31 +03:00
parent 887127b5d0
commit e970154809
4 changed files with 45 additions and 22 deletions
@@ -761,7 +761,6 @@ export const ChatContainer: React.FC<ChatContainerProps> = ({
// row that holds both columns, so its width never depends on the panel's
// own visibility.
const { rowRef: workStatusRowRef, visible: workStatusVisible, fits: workStatusFits } = useWorkStatusVisibility({
directory: workStatusDirectory,
isMobile,
isVSCode,
});