Skip to content

feat: Add propagation of openFullTabView parameter to Opera tools - #40

Merged
mateuszk-opera merged 2 commits into
mainfrom
feat/opera-open-fulltab-view
Sep 8, 2026
Merged

feat: Add propagation of openFullTabView parameter to Opera tools#40
mateuszk-opera merged 2 commits into
mainfrom
feat/opera-open-fulltab-view

Conversation

@mateuszk-opera

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/cli.ts Outdated
/**
* Reject `--open-fulltab-view` in headless mode. Activating a foreground tab
* in a headless window is nonsensical; the extension cannot distinguish headed
* from headless, so the CLI owns this validation. Mirrors the contract in

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc comment in requireHeadedForFullTabView references docs/cdp-fulltab-view-contract.md §4, but that file isnt in the repo (checked, no refs anywhere). Either add it or drop the reference before merge.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, ref dropped.

Comment thread src/cli.ts Outdated

async function handleInvokeDo(args: string[]): Promise<string> {
const prompt = args.join(" ");
const openFullTabView = args.includes("--open-fulltab-view");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: invoke-do parses the flag manually (includes + filter) while the other three go through a parser. Minor, but itll silently strip a literal --open-fulltab-view that a user actually types in a prompt. Could reuse parseChatOrMakeArgs for consistency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, now uses parseChatOrMakeArgs.

@mateuszk-opera
mateuszk-opera merged commit 5382514 into main Sep 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants