fix: expose raw CDP args in console output and use preview for formatting (#1040)
Closes #1039 - Add `preview` field to `RemoteObject` to capture CDP object previews - Implement `format_console_arg` using preview data (value → preview → description) - Store raw CDP args in `ConsoleEntry` and include in JSON output - Skip typed `ConsoleApiCalledEvent` deserialization in favor of direct param extraction - Unify console arg formatting between daemon (actions.rs) and stream (stream.rs) Before: `console.log({userId: "abc", count: 42})` → `"Object"` After: `console.log({userId: "abc", count: 42})` → `{userId: "abc", count: 42}` JSON output now includes raw `args` array for programmatic access by AI agents. Co-authored-by: hyunjinee <leehj0110@kakao.com>
This commit is contained in:
@@ -260,6 +260,7 @@ pub struct RemoteObject {
|
||||
pub object_id: Option<String>,
|
||||
pub class_name: Option<String>,
|
||||
pub unserializable_value: Option<String>,
|
||||
pub preview: Option<Value>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user