Repository navigation
feat: support yahoo_finance search - #17022
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughYahoo Finance now supports multiple configurable report sections, search/chart/quoteSummary requests, crumb and cookie handling, recursive value formatting, and expanded integration and schema tests. ChangesYahoo Finance expansion
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant InvokableRun
participant fetchYahooFinanceReport
participant YahooFinanceEndpoints
participant MarkdownRenderer
InvokableRun->>fetchYahooFinanceReport: selected sections and stock code
fetchYahooFinanceReport->>YahooFinanceEndpoints: request search, chart, and quoteSummary data
YahooFinanceEndpoints-->>fetchYahooFinanceReport: decoded responses
fetchYahooFinanceReport->>MarkdownRenderer: report sections
MarkdownRenderer-->>InvokableRun: markdown report JSON
Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/agent/tool/yahoo_finance_test.go`:
- Around line 88-90: Replace t.Fatalf calls used inside HTTP handler goroutines
with t.Errorf so the request can complete safely. In
internal/agent/tool/yahoo_finance_test.go at lines 88-90, 154-156, and 262-264,
report the failure, return an HTTP error response, and exit the handler; at
lines 246-250, use t.Errorf for crumb/module mismatches. Apply the same
t.Errorf, HTTP error response, and handler exit pattern in
internal/agent/component/tool_component_test.go at lines 493-495.
In `@internal/agent/tool/yahoo_finance.go`:
- Around line 303-338: The fetchYahooFinanceReport flow should derive a
downstream symbol from the first search result’s quote symbol, falling back to
p.StockCode when no symbol is available. Use this resolved value for
fetchYahooFinanceChart and fetchYahooFinanceSummary instead of the original
input, and add a test covering company-name resolution.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 60d72253-b7a5-4f6d-83fd-9e375271665f
📒 Files selected for processing (4)
internal/agent/component/tool_component_test.gointernal/agent/tool/registry.gointernal/agent/tool/yahoo_finance.gointernal/agent/tool/yahoo_finance_test.go
|
LGTM |
Summary
As title