Skip to content

Comments

Fix: Feature / Question: go-tree-sitter dependency#1551

Open
adrianfolkeson wants to merge 3 commits intoprojectdiscovery:mainfrom
adrianfolkeson:fix-issue-1367-ee8b30c6
Open

Fix: Feature / Question: go-tree-sitter dependency#1551
adrianfolkeson wants to merge 3 commits intoprojectdiscovery:mainfrom
adrianfolkeson:fix-issue-1367-ee8b30c6

Conversation

@adrianfolkeson
Copy link

Resolves #1367 regarding cross-platform compilation issues. We've swapped out the go-tree-sitter dependency (which required CGO) for a pure-Go alternative. This simplifies our build pipeline significantly, especially for macOS/ARM64 builds, by removing the need for external C compilers. The parsing logic has been updated to match the new library's API while maintaining existing functionality. /claim

fail-open and others added 3 commits January 24, 2026 05:49
…discovery#1506)

* Fix: Prioritize -cwu over -headless flag

When both -cwu (Chrome WebSocket URL) and -headless flags are used
together, -cwu should take precedence since the user explicitly wants
to connect to an existing browser session.

Without this fix, when users run:
  katana -headless -u URL -cwu ws://... -no-incognito

The -headless flag causes Katana to launch a new Chrome instance,
completely ignoring the -cwu WebSocket URL. This makes authenticated
crawling via existing browser sessions impossible when following the
official documentation.

Changes:
- Prioritize ChromeWSUrl check in engine selection (runner.go)
- Add warning when -headless is used with -cwu (options.go)
- Ensure hybrid engine is selected when -cwu is specified

This fix maintains backward compatibility while making the documented
workflow actually work as intended.

Fixes issue where -cwu flag is ignored when -headless is present.

* chore(runner): rm logs

---------

Co-authored-by: aparsons2 <adam_parsons@intuit.com>
Co-authored-by: Dwi Siswanto <25837540+dwisiswant0@users.noreply.github.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 18, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

3 participants