fix: ensure positional prompt arguments work with extensions flag (#10077)

Co-authored-by: Allen Hutchison <adh@google.com>
This commit is contained in:
김세은
2025-10-09 05:32:05 +09:00
committed by GitHub
parent b92e3bca50
commit 1962b51d8d
4 changed files with 142 additions and 0 deletions
@@ -413,6 +413,11 @@ describe('ClearcutLogger', () => {
for (const [key, value] of Object.entries(env)) {
vi.stubEnv(key, value);
}
// Clear Cursor-specific environment variables that might interfere with tests
// Only clear if not explicitly testing Cursor detection
if (!env.CURSOR_TRACE_ID) {
vi.stubEnv('CURSOR_TRACE_ID', '');
}
const event = logger?.createLogEvent(EventNames.API_ERROR, []);
expect(event?.event_metadata[0][3]).toEqual({
gemini_cli_key: EventMetadataKey.GEMINI_CLI_SURFACE,