Repository navigation
Potential fixes for 2 code quality findings - #6
Merged
Merged
Conversation
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
marked this pull request as ready for review
July 16, 2026 08:16
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 cli/src/rpc/grpc-client.ts from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to cli/src/rpc/grpc-client.ts 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 cli/src/rpc/grpc-client.ts from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to cli/src/rpc/grpc-client.ts 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 cli/src/rpc/grpc-client.ts from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to cli/src/rpc/grpc-client.ts 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 cli/src/rpc/grpc-client.ts from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to cli/src/rpc/grpc-client.ts 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 cli/src/rpc/grpc-client.ts from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to cli/src/rpc/grpc-client.ts 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR applies 2/3 suggestions from code quality AI findings. 1 suggestion was skipped to avoid creating conflicts.