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:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user