Skip to content

Potential fixes for 2 code quality findings - #7

Merged
huichen merged 2 commits into
mainfrom
ai-findings-autofix/scripts-generate_models.py
Jul 16, 2026
Merged

huichen merged 2 commits into
mainfrom
ai-findings-autofix/scripts-generate_models.py

Conversation

@huichen

@huichen huichen commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

This PR applies 2/2 suggestions from code quality AI findings.

huichen and others added 2 commits July 16, 2026 16:12
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@huichen
huichen marked this pull request as ready for review July 16, 2026 08:19
@huichen
huichen merged commit 7a52b1c into main Jul 16, 2026
2 checks passed
@huichen
huichen deleted the ai-findings-autofix/scripts-generate_models.py branch July 16, 2026 08:19
huichen pushed a commit that referenced this pull request Jul 16, 2026
…handling, and more

Bug fixes:
- Navigation observer: poll 500ms instead of 15s for non-navigating actions.
  One fix resolves click file:// timeout, selector click timeout, and press
  15s delay (bugs #1, #2, #3).
- Snapshot: collect text content from h1-h6, p, li, td, th, dt, dd, label,
  span, div, pre, code, blockquote (bug #4).
- CdpError: changed from plain object to class extends Error so it serialises
  as a readable message instead of '[object Object]' (bug #8).

Improvements:
- Snapshot: textarea/input name priority aria-label > placeholder > associated
  label > name > value[:30] (bug #10).
- Tabs: all actions now return { tabs: [...], tabCount: N } for consistent
  output (bug #6).
- Start: when endpoint already reachable, returns already_running with note
  instead of silently switching (bug #7).
- Type: returns both ref (typed) and resolved selector (bug #9).
- Scroll: new scroll command with direction/amount/ref arguments (bug #11).

Defense in depth:
- tools.ts catch block: extract .message from non-Error objects as fallback.
huichen added a commit that referenced this pull request Jul 16, 2026
* Apply suggested fix to scripts/generate_models.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to scripts/generate_models.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
huichen pushed a commit that referenced this pull request Jul 16, 2026
…handling, and more

Bug fixes:
- Navigation observer: poll 500ms instead of 15s for non-navigating actions.
  One fix resolves click file:// timeout, selector click timeout, and press
  15s delay (bugs #1, #2, #3).
- Snapshot: collect text content from h1-h6, p, li, td, th, dt, dd, label,
  span, div, pre, code, blockquote (bug #4).
- CdpError: changed from plain object to class extends Error so it serialises
  as a readable message instead of '[object Object]' (bug #8).

Improvements:
- Snapshot: textarea/input name priority aria-label > placeholder > associated
  label > name > value[:30] (bug #10).
- Tabs: all actions now return { tabs: [...], tabCount: N } for consistent
  output (bug #6).
- Start: when endpoint already reachable, returns already_running with note
  instead of silently switching (bug #7).
- Type: returns both ref (typed) and resolved selector (bug #9).
- Scroll: new scroll command with direction/amount/ref arguments (bug #11).

Defense in depth:
- tools.ts catch block: extract .message from non-Error objects as fallback.
huichen added a commit that referenced this pull request Jul 16, 2026
* Apply suggested fix to scripts/generate_models.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to scripts/generate_models.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
huichen pushed a commit that referenced this pull request Jul 16, 2026
…handling, and more

Bug fixes:
- Navigation observer: poll 500ms instead of 15s for non-navigating actions.
  One fix resolves click file:// timeout, selector click timeout, and press
  15s delay (bugs #1, #2, #3).
- Snapshot: collect text content from h1-h6, p, li, td, th, dt, dd, label,
  span, div, pre, code, blockquote (bug #4).
- CdpError: changed from plain object to class extends Error so it serialises
  as a readable message instead of '[object Object]' (bug #8).

Improvements:
- Snapshot: textarea/input name priority aria-label > placeholder > associated
  label > name > value[:30] (bug #10).
- Tabs: all actions now return { tabs: [...], tabCount: N } for consistent
  output (bug #6).
- Start: when endpoint already reachable, returns already_running with note
  instead of silently switching (bug #7).
- Type: returns both ref (typed) and resolved selector (bug #9).
- Scroll: new scroll command with direction/amount/ref arguments (bug #11).

Defense in depth:
- tools.ts catch block: extract .message from non-Error objects as fallback.
huichen added a commit that referenced this pull request Jul 16, 2026
* Apply suggested fix to scripts/generate_models.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to scripts/generate_models.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
huichen pushed a commit that referenced this pull request Jul 16, 2026
…handling, and more

Bug fixes:
- Navigation observer: poll 500ms instead of 15s for non-navigating actions.
  One fix resolves click file:// timeout, selector click timeout, and press
  15s delay (bugs #1, #2, #3).
- Snapshot: collect text content from h1-h6, p, li, td, th, dt, dd, label,
  span, div, pre, code, blockquote (bug #4).
- CdpError: changed from plain object to class extends Error so it serialises
  as a readable message instead of '[object Object]' (bug #8).

Improvements:
- Snapshot: textarea/input name priority aria-label > placeholder > associated
  label > name > value[:30] (bug #10).
- Tabs: all actions now return { tabs: [...], tabCount: N } for consistent
  output (bug #6).
- Start: when endpoint already reachable, returns already_running with note
  instead of silently switching (bug #7).
- Type: returns both ref (typed) and resolved selector (bug #9).
- Scroll: new scroll command with direction/amount/ref arguments (bug #11).

Defense in depth:
- tools.ts catch block: extract .message from non-Error objects as fallback.
huichen added a commit that referenced this pull request Jul 16, 2026
* Apply suggested fix to scripts/generate_models.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to scripts/generate_models.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
huichen pushed a commit that referenced this pull request Jul 16, 2026
…handling, and more

Bug fixes:
- Navigation observer: poll 500ms instead of 15s for non-navigating actions.
  One fix resolves click file:// timeout, selector click timeout, and press
  15s delay (bugs #1, #2, #3).
- Snapshot: collect text content from h1-h6, p, li, td, th, dt, dd, label,
  span, div, pre, code, blockquote (bug #4).
- CdpError: changed from plain object to class extends Error so it serialises
  as a readable message instead of '[object Object]' (bug #8).

Improvements:
- Snapshot: textarea/input name priority aria-label > placeholder > associated
  label > name > value[:30] (bug #10).
- Tabs: all actions now return { tabs: [...], tabCount: N } for consistent
  output (bug #6).
- Start: when endpoint already reachable, returns already_running with note
  instead of silently switching (bug #7).
- Type: returns both ref (typed) and resolved selector (bug #9).
- Scroll: new scroll command with direction/amount/ref arguments (bug #11).

Defense in depth:
- tools.ts catch block: extract .message from non-Error objects as fallback.
huichen added a commit that referenced this pull request Jul 16, 2026
* Apply suggested fix to scripts/generate_models.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to scripts/generate_models.py from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
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.

1 participant