Skip to content

bug: warning/error output still prefixed with [rtk] instead of [contextcrawler] (incomplete rebrand) #23

Closed

Description

@thehoff

Summary

When contextcrawler emits warnings or errors to stderr, the prefix is [rtk] instead of [contextcrawler]. Example:

$ contextcrawler -c
[rtk] WARNING: untrusted user-global filters (/Users/thehoff/Library/Application Support/rtk/filters.toml)
[rtk] Filters NOT applied. Run `contextcrawler trust --global` to review and enable.
[rtk: No such file or directory (os error 2)]

Same family of bugs as #19 (RTK.md filename), #20 (hardcoded RTK.md labels in prints), #22 (--version shows rtk). The downstream rebrand of user-facing strings is incomplete.

Scope

grep -nE '^\s*(println|eprintln)!.*\[rtk\]|format!.*\[rtk' src/ should enumerate the call sites. Replace each [rtk] prefix with [contextcrawler]. Same trick as #20 — could interpolate from a WARN_PREFIX constant so future rebrands are one-line edits.

Two oddities in the example

  1. The third line [rtk: No such file or directory (os error 2)] uses a different format (colon instead of ]). Comes from a different code path — same fix applies but worth flagging.
  2. contextcrawler -c shouldn't try to exec -c as a binary. The run_fallback path's if args[0].starts_with('-') guard exists for exactly this reason — verify it triggers; if not, that's a separate bug.

Bundling rationale

Could be folded into #20 (the general label-rebrand sweep) — same problem class. Keeping separate for now because #20 specifically targets RTK.md labels while this is about the diagnostic prefix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions