Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [2.4.2] - 2026-10-31

### Fixed

- **`debug: true` writes the outbound request again on the v2 path.** The v2 adapter never logged the request it sent, so the debug log stayed empty and the only way to see the final body was patching the plugin. Every request now overwrites `antigravity-logs/last-request.json` with the URL, the model id, the header names (values are never written) and the full body, which is exactly what `antigravity-preflight --capture` reads.

### Docs

- **How to audit what reaches the model.** Documents the audit dump and the preflight command, including why the harness-injected `AGENTS.md` can block a stricter model even when the user prompt is harmless.

## [2.4.1] - 2026-10-31

### Fixed
Expand Down
19 changes: 19 additions & 0 deletions dist/src/plugin/debug.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ export declare function initializeDebug(config: AntigravityConfig): void;
export declare function isDebugEnabled(): boolean;
export declare function isDebugTuiEnabled(): boolean;
export declare function getLogFilePath(): string | undefined;
export declare const REQUEST_AUDIT_FILENAME = "last-request.json";
export interface RequestAuditMeta {
url?: string;
model?: string;
headerKeys?: string[];
}
/**
* Builds the audit document for one outbound request. Exported so the shape can be
* asserted without touching the filesystem.
*/
export declare function buildRequestAudit(bodyText: string, meta?: RequestAuditMeta): Record<string, unknown>;
/**
* Writes the exact body the backend will receive to `last-request.json` in the
* debug log directory, so the prompt that reaches the model can be audited with
* `antigravity-preflight --capture`. Header *names* are recorded, never values:
* the Authorization bearer token stays out of the file. Only runs while debug is
* enabled.
*/
export declare function writeRequestAudit(body: unknown, meta?: RequestAuditMeta): string | undefined;
export interface AntigravityDebugContext {
id: string;
streaming: boolean;
Expand Down
2 changes: 1 addition & 1 deletion dist/src/plugin/debug.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 48 additions & 1 deletion dist/src/plugin/debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading