Skip to content

Commit f1a7b32

Browse files
committed
chore(read_tool): if agent specified end line > total, should return content instead of error
1 parent 24dfb5b commit f1a7b32

File tree

6 files changed

+5
-8
lines changed

6 files changed

+5
-8
lines changed

AgentCrew/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.8.6"
1+
__version__ = "0.8.7"

AgentCrew/modules/code_analysis/service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,9 +1290,7 @@ def get_file_content(
12901290
f"start_line {start_line} exceeds file length ({total_lines} lines)"
12911291
)
12921292
if end_line > total_lines:
1293-
raise ValueError(
1294-
f"end_line {end_line} exceeds file length ({total_lines} lines)"
1295-
)
1293+
end_line = total_lines
12961294

12971295
# Extract the line range (convert to 0-indexed)
12981296
selected_lines = lines[start_line - 1 : end_line]

AgentCrew/modules/gui/widgets/diff_widget.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from PySide6.QtWidgets import (
99
QWidget,
1010
QVBoxLayout,
11-
QHBoxLayout,
1211
QLabel,
1312
QFrame,
1413
)

docker/pyproject.docker.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentcrew-ai"
3-
version = "0.8.6"
3+
version = "0.8.7"
44
requires-python = ">=3.12"
55
classifiers = [
66
"Programming Language :: Python :: 3",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentcrew-ai"
3-
version = "0.8.6"
3+
version = "0.8.7"
44
requires-python = ">=3.12"
55
classifiers = [
66
"Programming Language :: Python :: 3",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)