Skip to content

Search result parsing broken - returns "Raw text (daemon mode)" for most engines #2

@youchi1

Description

@youchi1

When the daemon is running, stealth search skips result parsing for all engines and output formats. The search itself succeeds (page loads with results), but the parser falls back to a single "Raw text (daemon mode)" entry.

Reproduce

stealth daemon start
stealth search google "test query" -f json -n 5
stealth search bing "test query" -f json -n 5

Actual (daemon):

  • Google: {"results": [{"title": "Raw text (daemon mode)", "content": ""}]}
  • Bing: {"results": [{"title": "Raw text (daemon mode)", "content": "<entire raw page text>"}]}
  • All engines return a single result with "title": "Raw text (daemon mode)" instead of parsed individual results

Without daemon, both Bing and Google parses correctly:

stealth daemon stop
stealth search bing "test query" -f json -n 5
# Returns properly parsed results: [{title, url, snippet}, ...]

Other formats (-f text, -f snapshot) are also affected - they return raw page dumps instead of extracted results.

Expected

Parsed individual results with title/url/snippet in daemon mode, same as without daemon.

Environment

  • Version: 0.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions