Karesansui

Results issues of Karesansui

## Summary `_compute_composite_score()` uses `text.count(" ") + 1` to count words, which overcounts when consecutive spaces are present. HTML-extracted text from `get_text(strip=True)` commonly contains multiple consecutive spaces between inline elements...

## Bug description `DefaultDictWithTimeout.__refresh()` has an inverted guard condition. The comparison `>` should be ` self.__refresh_interval: return # Fixed: returns when refresh is NOT needed if request_time - self.__last_refresh <...

## Bug description `DefaultDictWithTimeout.__refresh()` in `pr_agent/servers/utils.py` has an inverted guard condition on line 67. The comparison uses `>` when it should use ` self.__refresh_interval: # ← inverted return # cleanup...

## Bug description In `github_provider.py`, `_publish_inline_comments_fallback_with_verification()` has a bare `except: pass` that silently swallows all exceptions when publishing verified review comments: ```python if verified_comments: try: self.pr.create_review(commit=..., comments=verified_comments) except: pass #...

## Bug description In `token_handler.py`, `_calc_claude_tokens()` references `max_tokens` in its except block, but this variable is only assigned inside the try block after the `anthropic` import and API key validation....

## Bug description In `github_provider.py` L476-479, `_publish_inline_comments_fallback_with_verification()` uses `except: pass` when publishing verified review comments via `pr.create_review()`: ```python if verified_comments: try: self.pr.create_review(commit=self.last_commit_id, comments=verified_comments) except: pass # ← all exceptions silently...

## Summary Several `GitProvider` base class methods have inconsistent return types and argument signatures across provider implementations (GitHub, GitLab, Bitbucket, Gerrit, Gitea, Azure). This causes `TypeError` and unexpected behavior when...

## Bug description `get_git_provider_with_context()` stores the provider with the actual URL as key but retrieves it using the literal string `"pr_url"`: ```python # Store (L64) — uses variable value as...

## Question When using `--ignore-unfixed`, CPE-based vulnerabilities appear to be handled differently across three related functions in `models/vulninfos.go`. Is this intentional? ## Observed behavior | Function | CPE entry handling...

## Description `scripts/docker.sh` `restart()` function (line 237) tells users to run `make docker-dev-logs` to view logs after restarting Docker services, but this Makefile target does not exist. The correct target...