Repository: microsoft/terminal (language: cpp)

Issue:
Open with Terminal option when inside a Zip on Explorer
### Windows Terminal version

1.12.10983.0

### Windows build number

10.0.22624.0

### Other Software

_No response_

### Steps to reproduce

On windows 11
If you open a zip file directly and you're within the folder of the extracted zip via explorer
then on right clicking you get the Open With Terminal option but clicking that doesn't do anything

### Expected Behavior

It should either eliminate the option itself or return an alert or an error 
Or it should somehow trace the directory of the actual temporary folder where it extracts the zip and open that up via the terminal on clicking the option

### Actual Behavior

Clicking on it does nothing but the option remains so it feels like bug


Discussion / hints:

Fix patch:
diff --git a/src/cascadia/ShellExtension/OpenTerminalHere.cpp b/src/cascadia/ShellExtension/OpenTerminalHere.cpp
index 9cc84dba012..b23ec686746 100644
--- a/src/cascadia/ShellExtension/OpenTerminalHere.cpp
+++ b/src/cascadia/ShellExtension/OpenTerminalHere.cpp
@@ -115,7 +115,8 @@ HRESULT OpenTerminalHere::GetState(IShellItemArray* psiItemArray,
 
     SFGAOF attributes;
     const bool isFileSystemItem = psi && (psi->GetAttributes(SFGAO_FILESYSTEM, &attributes) == S_OK);
-    *pCmdState = isFileSystemItem ? ECS_ENABLED : ECS_HIDDEN;
+    const bool isCompressed = psi && (psi->GetAttributes(SFGAO_FOLDER | SFGAO_STREAM, &attributes) == S_OK);
+    *pCmdState = isFileSystemItem && !isCompressed ? ECS_ENABLED : ECS_HIDDEN;
 
     return S_OK;
 }


Test patch: