Skip to content
PidebugBackend

Debug stale Economist RSS headlines (Go CLI)

Session from economist-tui-sessions on Hugging Face by thomasmustier · MIT · condensed by Coders Talk

3msession
0interventions
GOAL

Figure out why the economist-tui CLI keeps showing April 1st articles a day later, and whether updates are broken.

  1. Prompt · +0
    I'm only seeing articles from April 1st today (April 2nd). Do we know why? Are we not updating?
  2. Agent did · +0m
    Searched the codebase and read through RSS fetching, caching, headlines, and browse command code to understand how sections and dates are handled.
  3. Agent did · +0m
    Traced through browse.go, prefetch.go, source.go, read.go and browse.go command to see how the CLI picks sections and runs the fetch pipeline.
  4. Agent did · +0m
    Ran the CLI's headlines command directly and checked JSON output for leaders and finance sections; confirmed the top article dates were indeed stuck at April 1st.
  5. Fail · +1m
    First direct Python RSS fetch attempt failed with a urllib error.
  6. Agent did · +1m
    Added a user-agent header and queried the live Economist RSS feeds directly (leaders, briefing, finance, latest) across sections, comparing pubDate timestamps to the CLI's cached output.
  7. Fail · +1m
    Guessed at rss.xml URL and got a 404, then found the correct 'latest' feed URL returns fresh April 2nd content.
  8. Agent did · +2m
    Read sections.go and cmd/sections.go, then ran the CLI's sections command to see the full list of available sections and confirm 'leaders' is the default versus a site-wide 'latest' feed.
  9. Outcome · +3m
    Diagnosed root cause: the CLI defaults to the 'leaders' section (last updated Apr 1st) rather than a site-wide 'latest' feed (already showing Apr 2nd items); not a caching bug, no code fix applied yet.
VERDICT

Next time I'd ask directly to compare the 'leaders' feed against the site's 'latest' feed for freshness, since that's what actually mattered. The useful correction here was the agent's own move to hit the live RSS feeds directly with curl/python rather than trusting the app's cache, which is what revealed the real issue was a default-section choice, not a stale cache.

I tried this · 0

Discussion · 0

How Builds work