Skip to content

[Bug]: Edge-case tests expose ~70 bugs across the SDK, agent server, tools and workspaces #6348

Closed

Description

@VascoSch92

Bug Description

I went through the unit tests looking for ones that only cover the happy path, and added tests for the failure and edge cases they were missing. About 70 of those new tests exposed real bugs in the source. This issue collects them in one place. Each bug has its own collapsible section with the test that finds it and the case it checks. The sections are in the comments below, one comment per area.

The tests are on the branch worktree-test-edge-cases, commit f2fcf6e. I have not fixed any source code. Every bug is pinned by a test marked xfail(strict=True), so the suite stays green today and the test fails loudly once the bug is fixed (remove the marker in the same PR).

There are 78 xfail test functions, 88 test cases once parametrized, covering roughly 70 distinct bugs (a few tests pin the same bug, for example the CRLF rewrite in both the file editor and apply_patch). I ran all 88 with --runxfail and they all fail. I looked at the failure reason for each, but I have not reproduced each bug end to end outside the tests, and I have not triaged severity beyond the short list below.

Comment Area Tests
1 SDK core: agent, conversation, event, critic, context, hooks 8
2 SDK: llm, tool, mcp, security 7
3 SDK: io, git, skills, plugins, profiles, utils 27
4 Agent server 9
5 Tools: file editor, grep, glob, apply_patch 17
6 Workspaces 10

Where I would start

  • Secret masking leaks the tail of a longer secret when a shorter secret is a prefix of it (mask_secrets_in_output). A secret abc next to abc123 turns abc123 into <secret-hidden>123.
  • get_changes_in_repo fails for the whole repo as soon as one changed path contains a space.
  • One MCP tool whose schema uses the tuple form of items makes to_openai_tool() raise, which breaks the agent step.
  • The file editor merges an insert into the last line when the file has no trailing newline, and replaces a symlink with a regular file when editing through it.
  • DockerWorkspace and ApptainerWorkspace leave the container or server process running when the startup health check fails.
  • Apptainer sends SESSION_API_KEY while the server prefers OH_SESSION_API_KEYS_0.
  • The grep tool's own documented example (*.{ts,tsx}) matches nothing.

Steps to reproduce

git fetch origin worktree-test-edge-cases
git checkout worktree-test-edge-cases
uv sync --frozen --all-extras
uv run pytest <test file> -k <test name> --runxfail

Each section below gives the exact command.

Expected Behavior

The failure and edge cases behave sensibly: no crash, no data loss, no leaked secrets, no orphaned processes.

Environment

Checked on macOS (Darwin), Python 3.13.11, HEAD at c048a1eb8 of main plus the test-only commit above. A few tests (the terminal-session heredoc tests, TestCloneReposIntegration, two plugin_fetch integration tests) already fail on a clean checkout on my machine; those are unrelated and I did not touch them.

Progress

One box per pinned test. A box is ticked when the fix is merged to main and the test's xfail marker is gone. PRs fixing one item should say Part of #6348 (not Fixes #6348), so this tracker stays open.

SDK core: agent, conversation, event, critic, context, hooks

SDK: llm, tool, mcp, security

SDK: io, git, skills, plugins, profiles, utils

Agent server

Tools: file editor, grep, glob, apply_patch

Workspaces


OpenHands AI triage

The following comments and acceptance criteria were added by the OpenHands AI agent.

Triage

The author (a repo member) added 78 strict-xfail edge-case tests on branch worktree-test-edge-cases (commit f2fcf6e), all currently failing under --runxfail, and verified the branch touches only test files. Spot checks confirmed two reported bugs directly in main source: SecretRegistry.mask_secrets_in_output (openhands-sdk/openhands/sdk/conversation/secret_registry.py) replaces values in insertion order, so a shorter secret that prefixes a longer one leaves the longer value's tail unmasked, and the grep tool description advertises *.{ts,tsx} include patterns that the fnmatch-based filtering never matches. The issue is internally consistent with the branch, so it is treated as a collector of verified, test-pinned defects.

Scope: fixing the pinned defects in the packages this repo owns (openhands-sdk, openhands-tools, openhands-workspace, openhands-agent-server), including removing each test's xfail(strict=True) marker in the same change that fixes the bug it pins. This is a bug-batch tracker, not a single fix; acceptance below applies per defect. Non-goals: refactors beyond what each fix needs; new features or API changes; fixing the pre-existing failures the author already excluded (terminal-session heredoc tests, TestCloneReposIntegration, the two plugin_fetch integration tests); changing public REST/WebSocket contracts or persisted settings shapes; severity triage or end-to-end production reproduction of each defect beyond what the pinned tests cover.

Acceptance Criteria

  • All tests the author marked xfail(strict=True) on branch worktree-test-edge-cases that are claimed as fixed by a change either have their xfail marker removed and pass on the change's head, or remain xfail with the author's consent recorded in the PR.
  • A reviewer can trace each fixed defect to its pinned test via the per-comment sections on this issue, and every test whose marker was removed runs green under the repository's standard test workflow (uv run pytest) on the change's head.
  • The two defects verified against main source are fixed with observable before/after evidence: masking abc123 in a registry holding abc and abc123 yields leak: <secret-hidden> with no cleartext tail, and GrepAction(pattern="needle", include="*.{ts,tsx}") returns only .ts and .tsx matches on a directory containing .ts, .tsx, and .py files.
  • Fixes that touch startup/teardown paths (DockerWorkspace, ApptainerWorkspace container and process cleanup, log-pipe draining, safe_rmtree, PubSub close) satisfy the repository's conversation-and-resource-lifecycle review checkpoint, including rollback on failed startup and no orphaned containers or child processes.
  • Fixes that touch secrets or redaction (mask_secrets_in_output, redact_url_credentials) follow the repository's secret-handling policy and leave no secret fragment in output, logs, or serialized state.
  • Fixes that change observable behavior of public Python APIs, tool defaults, or persisted events stay within the repository's compatibility policy and, where required by .agents/skills/custom-codereview-guide.md, include live before/after evidence for runtime-lifecycle bugs rather than mocked-test evidence alone.
  • Fixes that change tool descriptions, prompt templates, or agent decision logic add the integration-test label per repository guidance, or document why the change cannot affect agent behavior.
  • The test suite on main plus the change keeps the suite green: no pinned xfail test becomes XPASS(strict), and the pre-existing unrelated failures listed in the issue are neither introduced nor fixed silently in these PRs.

Activity

  1. added
    bug
    on Oct 30, 2026
  2. VascoSch92 commented on Oct 30, 2026

    @VascoSch92
    MemberAuthor

    SDK core: agent, conversation, event, critic, context, hooks

    for `Annotated[X, ...] | None` the union args are not unwrapped, so the expected origin is Annotated and...

    for Annotated[X, ...] | None the union args are not unwrapped, so the expected origin is Annotated and neither repair applies

    Test: tests/sdk/agent/test_fix_malformed_tool_arguments.py::test_optional_annotated_fields_are_repaired

    uv run pytest tests/sdk/agent/test_fix_malformed_tool_arguments.py -k test_optional_annotated_fields_are_repaired --runxfail
    

    The case it checks:

    def test_optional_annotated_fields_are_repaired():
        data = {"items": "[1, 2]", "text": ["a", "b"]}
    
        fixed = fix_malformed_tool_arguments(data, OptionalAnnotatedAction)
    
        assert fixed == {"items": [1, 2], "text": "ab"}
    _count_events_on_disk counts every event-*.json, but the scan only indexes names matching EVENT_NAME_RE,...

    _count_events_on_disk counts every event-*.json, but the scan only indexes names matching EVENT_NAME_RE, so a stray file inflates len() past the mapped indices and iteration raises KeyError

    Test: tests/sdk/conversation/test_event_store.py::test_stray_event_named_file_does_not_corrupt_a_legacy_log

    uv run pytest tests/sdk/conversation/test_event_store.py -k test_stray_event_named_file_does_not_corrupt_a_legacy_log --runxfail
    

    The case it checks:

    def test_stray_event_named_file_does_not_corrupt_a_legacy_log():
        """A legacy (marker-less) log with a stray ``event-*.json`` file must stay
        readable after an append: the stray file is not an event."""
        fs = InMemoryFileStore()
        log = EventLog(fs)
        log.append(create_test_event("aaaaaaaa-0000", "First"))
        for path in list(fs.files):
            if posix_path_name(path).startswith("."):
                del fs.files[path]
        fs.write(f"{EVENTS_DIR}/event-backup.json", "{}")
    
        reopened = EventLog(fs)
        reopened.append(create_test_event("bbbbbbbb-0000", "Second"))
    
        assert len(reopened) == 2
        assert [e.id for e in reopened] == ["aaaaaaaa-0000", "bbbbbbbb-0000"]
    max_length < 3 makes title[: max_length - 3] a negative slice, so the 'truncated' title is longer than...

    max_length < 3 makes title[: max_length - 3] a negative slice, so the 'truncated' title is longer than max_length

    Test: tests/sdk/conversation/test_generate_title.py::test_fallback_title_never_exceeds_tiny_max_length

    uv run pytest tests/sdk/conversation/test_generate_title.py -k test_fallback_title_never_exceeds_tiny_max_length --runxfail
    

    The case it checks:

    def test_fallback_title_never_exceeds_tiny_max_length(max_length):
        assert len(generate_fallback_title("hello world", max_length)) <= max_length
    mask_secrets_in_output replaces values in insertion order, so a shorter secret that prefixes a longer one...

    mask_secrets_in_output replaces values in insertion order, so a shorter secret that prefixes a longer one leaves the longer one's tail in cleartext

    Test: tests/sdk/conversation/test_secrets_manager.py::test_mask_secrets_in_output_masks_the_longest_overlapping_value

    uv run pytest tests/sdk/conversation/test_secrets_manager.py -k test_mask_secrets_in_output_masks_the_longest_overlapping_value --runxfail
    

    The case it checks:

    def test_mask_secrets_in_output_masks_the_longest_overlapping_value():
        """Same contract as compile_stream_mask: no fragment of a secret survives."""
        secret_registry = SecretRegistry()
        secret_registry.update_secrets({"SHORT": "abc", "LONG": "abc123"})
    
        assert secret_registry.mask_secrets_in_output("leak: abc123") == (
            "leak: <secret-hidden>"
        )
    _softmax_normalize calls math.exp on raw logits without subtracting the max, so a large logit raises...

    _softmax_normalize calls math.exp on raw logits without subtracting the max, so a large logit raises OverflowError

    Test: tests/sdk/critic/api/test_taxonomy.py::test_large_sentiment_logits_do_not_overflow

    uv run pytest tests/sdk/critic/api/test_taxonomy.py -k test_large_sentiment_logits_do_not_overflow --runxfail
    

    The case it checks:

    def test_large_sentiment_logits_do_not_overflow():
        result = categorize_features(
            {"sentiment_positive": 1000.0, "sentiment_negative": 0.0}
        )
    
        assert result["sentiment"]["predicted"] == "Positive"
        assert math.isclose(result["sentiment"]["probability"], 1.0)
    a non-dict "hooks" wrapper hits data.items() in the before validator and raises AttributeError instead of...

    a non-dict "hooks" wrapper hits data.items() in the before validator and raises AttributeError instead of ValidationError

    Test: tests/sdk/hooks/test_config.py::test_malformed_legacy_wrapper_raises_validation_error

    uv run pytest tests/sdk/hooks/test_config.py -k test_malformed_legacy_wrapper_raises_validation_error --runxfail
    

    The case it checks:

        def test_malformed_legacy_wrapper_raises_validation_error(self, wrapped):
            with pytest.raises(ValidationError):
                HookConfig.from_dict({"hooks": wrapped})
    a JSON null reason is stringified to "None" instead of being treated as no reason

    Test: tests/sdk/hooks/test_executor.py::test_null_reason_is_not_stringified

    uv run pytest tests/sdk/hooks/test_executor.py -k test_null_reason_is_not_stringified --runxfail
    

    The case it checks:

        def test_null_reason_is_not_stringified(self, executor, sample_event):
            hook = HookDefinition(command="""echo '{"decision": "deny", "reason": null}'""")
    
            result = executor.execute(hook, sample_event)
    
            assert result.blocked
            assert result.reason is None
    a timed-out sync hook only kills the shell; its child processes keep running (the async path kills the...

    a timed-out sync hook only kills the shell; its child processes keep running (the async path kills the process group)

    Test: tests/sdk/hooks/test_executor.py::test_timed_out_hook_does_not_leave_its_child_running

    uv run pytest tests/sdk/hooks/test_executor.py -k test_timed_out_hook_does_not_leave_its_child_running --runxfail
    

    The case it checks:

        def test_timed_out_hook_does_not_leave_its_child_running(
            self, executor, sample_event, tmp_path
        ):
            pid_file = tmp_path / "child.pid"
            # The trailing ``; true`` stops the shell from exec-ing the child, so
            # the child is a separate process the timeout has to reach.
            hook = HookDefinition(
                command=f"sh -c 'echo $$ > {pid_file}; exec sleep 30'; true",
                timeout=1,
            )
    
            result = executor.execute(hook, sample_event)
            assert "timed out" in (result.error or "")
    
            child_pid = int(pid_file.read_text())
            try:
                os.kill(child_pid, 0)
                child_alive = True
            except ProcessLookupError:
                child_alive = False
            finally:
                with contextlib.suppress(ProcessLookupError):
                    os.kill(child_pid, signal.SIGKILL)
            assert not child_alive
  3. VascoSch92 commented on Oct 30, 2026

    @VascoSch92
    MemberAuthor

    SDK: llm, tool, mcp, security

    non-fncall parser .strip()s parameter values, dropping the leading indentation and trailing newline of...

    non-fncall parser .strip()s parameter values, dropping the leading indentation and trailing newline of multiline strings

    Test: tests/sdk/llm/test_llm_fncall_converter.py::test_roundtrip_preserves_multiline_param_whitespace

    uv run pytest tests/sdk/llm/test_llm_fncall_converter.py -k test_roundtrip_preserves_multiline_param_whitespace --runxfail
    

    The case it checks:

    def test_roundtrip_preserves_multiline_param_whitespace():
        """A tool call rendered for a non-native model must parse back unchanged.
    
        ``convert_tool_call_to_string`` wraps multiline strings in a newline on
        each side; the parser should strip only that framing, not the indentation
        of code in, for example, a file_editor ``new_str``.
        """
        tools: list[ChatCompletionToolParam] = [
            {
                "type": "function",
                "function": {
                    "name": "file_editor",
                    "description": "Edit a file.",
                    "parameters": {
                        "type": "object",
                        "properties": {"new_str": {"type": "string"}},
                        "required": ["new_str"],
                    },
                },
            }
        ]
        new_str = "    if x:\n        return 1\n"
        fncall_messages = [
            {"role": "user", "content": "edit"},
            {
                "role": "assistant",
                "content": "",
                "tool_calls": [
                    {
                        "id": "call_1",
                        "type": "function",
                        "function": {
                            "name": "file_editor",
                            "arguments": json.dumps({"new_str": new_str}),
                        },
                    }
                ],
            },
        ]
    
        non_fncall = convert_fncall_messages_to_non_fncall_messages(fncall_messages, tools)
        back = convert_non_fncall_messages_to_fncall_messages(non_fncall, tools)
    
        assert _first_tool_call_arguments(back) == {"new_str": new_str}
    Metrics.diff selects new costs by timestamp > last baseline timestamp, so a cost recorded in the same...

    Metrics.diff selects new costs by timestamp > last baseline timestamp, so a cost recorded in the same clock tick (or after a backwards clock step) is dropped while accumulated_cost still counts it

    Test: tests/sdk/llm/test_llm_metrics.py::test_metrics_diff_keeps_cost_recorded_at_baseline_timestamp

    uv run pytest tests/sdk/llm/test_llm_metrics.py -k test_metrics_diff_keeps_cost_recorded_at_baseline_timestamp --runxfail
    

    The case it checks:

    def test_metrics_diff_keeps_cost_recorded_at_baseline_timestamp():
        metrics = Metrics(model_name="m")
        metrics.add_cost(1.0)
        baseline = metrics.deep_copy()
        metrics.add_cost(2.0)
        metrics.costs[-1].timestamp = metrics.costs[0].timestamp
    
        diff = metrics.diff(baseline)
    
        assert diff.accumulated_cost == 2.0
        assert [c.cost for c in diff.costs] == [2.0]
    LLMRegistry.remove() keeps the metrics id in _metrics_ids, so re-adding the same LLM is treated as shared...

    LLMRegistry.remove() keeps the metrics id in _metrics_ids, so re-adding the same LLM is treated as shared and its metrics are reset

    Test: tests/sdk/llm/test_llm_registry.py::test_llm_registry_readd_after_remove_keeps_metrics

    uv run pytest tests/sdk/llm/test_llm_registry.py -k test_llm_registry_readd_after_remove_keeps_metrics --runxfail
    

    The case it checks:

    def test_llm_registry_readd_after_remove_keeps_metrics():
        registry = LLMRegistry()
        llm = LLM(model="gpt-4o", api_key=SecretStr("test-key"), usage_id="slot")
        registry.add(llm)
        llm.metrics.add_cost(3.0)
    
        registry.remove("slot")
        registry.add(llm)
    
        assert llm.metrics.accumulated_cost == 3.0
    Schema.from_mcp_schema passes MCP argument names straight to pydantic.create_model, so '_'-prefixed names...

    Schema.from_mcp_schema passes MCP argument names straight to pydantic.create_model, so '_'-prefixed names raise NameError, which Agent._get_action_event does not catch

    Test: tests/sdk/mcp/test_mcp_tool_validation.py::test_mcp_action_from_arguments_accepts_underscore_prefixed_argument

    uv run pytest tests/sdk/mcp/test_mcp_tool_validation.py -k test_mcp_action_from_arguments_accepts_underscore_prefixed_argument --runxfail
    

    The case it checks:

    def test_mcp_action_from_arguments_accepts_underscore_prefixed_argument():
        tool = _make_tool_with_schema(
            {
                "type": "object",
                "properties": {"_cursor": {"type": "string"}},
                "required": ["_cursor"],
            },
            name="paginate",
        )
    
        assert tool.action_from_arguments({"_cursor": "abc"}).data == {"_cursor": "abc"}
    history_limit=0 slices events[-0:], which sends the whole history instead of none

    Test: tests/sdk/security/grayswan/test_grayswan_analyzer.py::test_security_risk_history_limit_zero_sends_no_history

    uv run pytest tests/sdk/security/grayswan/test_grayswan_analyzer.py -k test_security_risk_history_limit_zero_sends_no_history --runxfail
    

    The case it checks:

        def test_security_risk_history_limit_zero_sends_no_history(
            self, analyzer: GraySwanAnalyzer
        ):
            analyzer.history_limit = 0
            analyzer.set_events(
                [create_mock_message_event(f"Message {i}", "user") for i in range(3)]
            )
            mock_response = MagicMock()
            mock_response.status_code = 200
            mock_response.json.return_value = {"violation": 0.1}
    
            with patch.object(analyzer, "_get_client") as mock_get_client:
                mock_client = mock_get_client.return_value
                mock_client.post.return_value = mock_response
                analyzer.security_risk(create_mock_action_event())
    
            messages = mock_client.post.call_args.kwargs["json"]["messages"]
            assert [m["role"] for m in messages] == ["system", "assistant"]
    _process_schema_node calls .get() on array 'items', so the valid draft-07 tuple form (items: [...]) raises...

    _process_schema_node calls .get() on array 'items', so the valid draft-07 tuple form (items: [...]) raises AttributeError

    Test: tests/sdk/tool/test_mcp_schema.py::test_tuple_form_items_does_not_raise

    uv run pytest tests/sdk/tool/test_mcp_schema.py -k test_tuple_form_items_does_not_raise --runxfail
    

    The case it checks:

    def test_tuple_form_items_does_not_raise():
        node = {
            "type": "object",
            "properties": {
                "pair": {
                    "type": "array",
                    "items": [{"type": "string"}, {"type": "integer"}],
                }
            },
        }
    
        result = _process_schema_node(node, {})
    
        assert result["properties"]["pair"]["type"] == "array"
    _process_schema_node only recurses when type == 'object'/'array', so a nullable type list drops nested...

    _process_schema_node only recurses when type == 'object'/'array', so a nullable type list drops nested properties, required and items

    Test: tests/sdk/tool/test_mcp_schema.py::test_nullable_type_list_keeps_nested_structure

    uv run pytest tests/sdk/tool/test_mcp_schema.py -k test_nullable_type_list_keeps_nested_structure --runxfail
    

    The case it checks:

    def test_nullable_type_list_keeps_nested_structure():
        node = {
            "type": "object",
            "properties": {
                "filter": {
                    "type": ["object", "null"],
                    "properties": {"field": {"type": "string"}},
                    "required": ["field"],
                },
                "tags": {"type": ["array", "null"], "items": {"type": "string"}},
            },
        }
    
        result = _process_schema_node(node, {})
    
        assert result["properties"]["filter"]["properties"] == {"field": {"type": "string"}}
        assert result["properties"]["filter"]["required"] == ["field"]
        assert result["properties"]["tags"]["items"] == {"type": "string"}
  4. VascoSch92 commented on Oct 30, 2026

    @VascoSch92
    MemberAuthor

    SDK: io, git, skills, plugins, profiles, utils

    is_git_url does not recognise the ssh:// scheme, so a standard ssh:// clone URL is rejected as unparseable

    Test: tests/sdk/extensions/test_fetch.py::test_parse_ssh_scheme_url

    uv run pytest tests/sdk/extensions/test_fetch.py -k test_parse_ssh_scheme_url --runxfail
    

    The case it checks:

    def test_parse_ssh_scheme_url():
        ssh_url = "ssh://git@git.example.com:2222/org/repo.git"
        assert parse_extension_source(ssh_url) == (SourceType.GIT, ssh_url)
    the github: shorthand appends .git unconditionally, so 'github:owner/repo.git' becomes '.../repo.git.git'

    Test: tests/sdk/extensions/test_fetch.py::test_parse_github_shorthand_with_git_suffix

    uv run pytest tests/sdk/extensions/test_fetch.py -k test_parse_github_shorthand_with_git_suffix --runxfail
    

    The case it checks:

    def test_parse_github_shorthand_with_git_suffix():
        assert parse_extension_source("github:owner/repo.git") == (
            SourceType.GITHUB,
            "https://github.com/owner/repo.git",
        )
    normalize_git_url checks the .git suffix before stripping a trailing slash, so 'repo.git/' becomes...

    normalize_git_url checks the .git suffix before stripping a trailing slash, so 'repo.git/' becomes 'repo.git.git'

    Test: tests/sdk/extensions/test_fetch.py::test_parse_https_url_with_git_suffix_and_trailing_slash

    uv run pytest tests/sdk/extensions/test_fetch.py -k test_parse_https_url_with_git_suffix_and_trailing_slash --runxfail
    

    The case it checks:

    def test_parse_https_url_with_git_suffix_and_trailing_slash():
        assert parse_extension_source("https://github.com/owner/repo.git/") == (
            SourceType.GIT,
            "https://github.com/owner/repo.git",
        )
    _parse_name_status splits on any whitespace, so a path containing a space raises GitCommandError

    Test: tests/sdk/git/test_git_changes.py::test_get_changes_in_repo_path_with_space

    uv run pytest tests/sdk/git/test_git_changes.py -k test_get_changes_in_repo_path_with_space --runxfail
    

    The case it checks:

    def test_get_changes_in_repo_path_with_space(tmp_path):
        setup_git_repo(str(tmp_path))
        (tmp_path / "my notes.txt").write_text("before")
        _commit_all(tmp_path)
        (tmp_path / "my notes.txt").write_text("after")
    
        changes = get_changes_in_repo(tmp_path, ref="HEAD")
    
        assert changes == [
            GitChange(status=GitChangeStatus.UPDATED, path=Path("my notes.txt"))
        ]
    git's core.quotePath output is not unquoted, so a non-ASCII path comes back as '"caf\303\251.txt"'

    Test: tests/sdk/git/test_git_changes.py::test_get_changes_in_repo_non_ascii_path

    uv run pytest tests/sdk/git/test_git_changes.py -k test_get_changes_in_repo_non_ascii_path --runxfail
    

    The case it checks:

    def test_get_changes_in_repo_non_ascii_path(tmp_path, tracked):
        setup_git_repo(str(tmp_path))
        # Pin git's default so a developer's global core.quotePath=false cannot
        # hide the behavior under test.
        run_bash_command("git config core.quotePath true", str(tmp_path))
        (tmp_path / "base.txt").write_text("base")
        if tracked:
            (tmp_path / "café.txt").write_text("before")
        _commit_all(tmp_path)
        (tmp_path / "café.txt").write_text("after")
    
        changes = get_changes_in_repo(tmp_path, ref="HEAD")
    
        assert [change.path for change in changes] == [Path("café.txt")]
    a type change ('T', e.g. file -> symlink) is an unknown status and aborts the whole change listing

    Test: tests/sdk/git/test_git_changes.py::test_get_changes_in_repo_type_change_does_not_abort_listing

    uv run pytest tests/sdk/git/test_git_changes.py -k test_get_changes_in_repo_type_change_does_not_abort_listing --runxfail
    

    The case it checks:

    def test_get_changes_in_repo_type_change_does_not_abort_listing(tmp_path):
        setup_git_repo(str(tmp_path))
        (tmp_path / "target.txt").write_text("target")
        (tmp_path / "link.txt").write_text("regular file")
        (tmp_path / "other.txt").write_text("before")
        _commit_all(tmp_path)
        (tmp_path / "link.txt").unlink()
        (tmp_path / "link.txt").symlink_to("target.txt")
        (tmp_path / "other.txt").write_text("after")
    
        changes = get_changes_in_repo(tmp_path, ref="HEAD")
    
        assert {change.path for change in changes} == {
            Path("link.txt"),
            Path("other.txt"),
        }
    _show_file_at_rev reads blobs with run_git_command's default strip=True, dropping the first line's indentation

    Test: tests/sdk/git/test_git_commits.py::test_get_commit_file_diff_preserves_edge_whitespace

    uv run pytest tests/sdk/git/test_git_commits.py -k test_get_commit_file_diff_preserves_edge_whitespace --runxfail
    

    The case it checks:

    def test_get_commit_file_diff_preserves_edge_whitespace():
        with tempfile.TemporaryDirectory() as temp_dir:
            setup_git_repo(temp_dir)
            commit_file(temp_dir, "a.py", "    x = 1\n", "base")
            sha = commit_file(temp_dir, "a.py", "    x = 2\n", "edit")
    
            diff = get_commit_file_diff(Path(temp_dir) / "a.py", sha)
    
            assert diff.original is not None and diff.modified is not None
            assert diff.original.startswith("    x = 1")
            assert diff.modified.startswith("    x = 2")
    _parse_name_status splits on any whitespace, so a commit touching a path with a space raises GitCommandError

    Test: tests/sdk/git/test_git_commits.py::test_get_commit_changes_path_with_space

    uv run pytest tests/sdk/git/test_git_commits.py -k test_get_commit_changes_path_with_space --runxfail
    

    The case it checks:

    def test_get_commit_changes_path_with_space():
        with tempfile.TemporaryDirectory() as temp_dir:
            setup_git_repo(temp_dir)
            commit_file(temp_dir, "base.txt", "base", "base")
            sha = commit_file(temp_dir, "my notes.txt", "new", "add notes")
    
            changes = get_commit_changes(temp_dir, sha)
    
            assert [(c.status, c.path) for c in changes] == [
                (GitChangeStatus.ADDED, Path("my notes.txt"))
            ]
    MemoryLRUCache skips an oversize value without evicting the key's previous value, so LocalFileStore.read...

    MemoryLRUCache skips an oversize value without evicting the key's previous value, so LocalFileStore.read returns stale content

    Test: tests/sdk/io/test_filestore_cache.py::test_oversize_overwrite_does_not_serve_stale_cache

    uv run pytest tests/sdk/io/test_filestore_cache.py -k test_oversize_overwrite_does_not_serve_stale_cache --runxfail
    

    The case it checks:

    def test_oversize_overwrite_does_not_serve_stale_cache(tmp_path):
        store = LocalFileStore(str(tmp_path), cache_memory_size=16)
        store.write("state.json", "old")
        new_content = "x" * 32
    
        store.write("state.json", new_content)
    
        assert store.read("state.json") == new_content
    LocalFileStore.write(bytes) leaves the previous str cached, so a later read returns the old content

    Test: tests/sdk/io/test_filestore_cache.py::test_bytes_overwrite_does_not_serve_stale_cache

    uv run pytest tests/sdk/io/test_filestore_cache.py -k test_bytes_overwrite_does_not_serve_stale_cache --runxfail
    

    The case it checks:

    def test_bytes_overwrite_does_not_serve_stale_cache(tmp_path):
        store = LocalFileStore(str(tmp_path))
        store.write("state.json", "old")
    
        store.write("state.json", b"new")
    
        assert store.read("state.json") == "new"
    InMemoryFileStore.delete matches by string prefix, so deleting 'a/b' also deletes the sibling 'a/bc'

    Test: tests/sdk/io/test_memory_filestore.py::test_delete_does_not_remove_siblings_sharing_a_prefix

    uv run pytest tests/sdk/io/test_memory_filestore.py -k test_delete_does_not_remove_siblings_sharing_a_prefix --runxfail
    

    The case it checks:

    def test_delete_does_not_remove_siblings_sharing_a_prefix():
        store = InMemoryFileStore({"a/b": "1", "a/bc": "2", "a/b/c": "3"})
    
        store.delete("a/b")
    
        assert store.read("a/bc") == "2"
        assert not store.exists("a/b")
    InMemoryFileStore.list matches by string prefix, so listing 'a' reports a phantom 'a/b/' directory for the...

    InMemoryFileStore.list matches by string prefix, so listing 'a' reports a phantom 'a/b/' directory for the file 'ab/c'

    Test: tests/sdk/io/test_memory_filestore.py::test_list_does_not_include_siblings_sharing_a_prefix

    uv run pytest tests/sdk/io/test_memory_filestore.py -k test_list_does_not_include_siblings_sharing_a_prefix --runxfail
    

    The case it checks:

    def test_list_does_not_include_siblings_sharing_a_prefix():
        store = InMemoryFileStore({"a/b": "1", "ab/c": "2"})
    
        assert store.list("a") == ["a/b"]
    a value larger than max_memory is silently not stored and the previous value is kept, so read returns...

    a value larger than max_memory is silently not stored and the previous value is kept, so read returns stale content

    Test: tests/sdk/io/test_memory_filestore.py::test_oversize_write_is_not_silently_dropped

    uv run pytest tests/sdk/io/test_memory_filestore.py -k test_oversize_write_is_not_silently_dropped --runxfail
    

    The case it checks:

    def test_oversize_write_is_not_silently_dropped():
        store = InMemoryFileStore(max_memory=16)
        store.write("state.json", "old")
        new_content = "x" * 32
    
        store.write("state.json", new_content)
    
        assert store.read("state.json") == new_content
    file:// URLs are sliced instead of parsed, so the 'localhost' authority becomes a relative path component

    Test: tests/sdk/plugin/test_source.py::test_resolve_file_url_with_localhost_authority

    uv run pytest tests/sdk/plugin/test_source.py -k test_resolve_file_url_with_localhost_authority --runxfail
    

    The case it checks:

        def test_resolve_file_url_with_localhost_authority(self):
            assert resolve_source_path("file://localhost/tmp/skill") == Path("/tmp/skill")
    file:// URLs are sliced instead of parsed, so percent-escapes such as %20 are not decoded

    Test: tests/sdk/plugin/test_source.py::test_resolve_file_url_decodes_percent_escapes

    uv run pytest tests/sdk/plugin/test_source.py -k test_resolve_file_url_decodes_percent_escapes --runxfail
    

    The case it checks:

        def test_resolve_file_url_decodes_percent_escapes(self):
            assert resolve_source_path("file:///tmp/my%20skill") == Path("/tmp/my skill")
    list_summaries catches OSError/JSONDecodeError but not UnicodeDecodeError, so one non-UTF-8 file breaks...

    list_summaries catches OSError/JSONDecodeError but not UnicodeDecodeError, so one non-UTF-8 file breaks every listing

    Test: tests/sdk/profiles/test_agent_profile_store.py::test_list_summaries_skips_undecodable_file

    uv run pytest tests/sdk/profiles/test_agent_profile_store.py -k test_list_summaries_skips_undecodable_file --runxfail
    

    The case it checks:

    def test_list_summaries_skips_undecodable_file(
        agent_store: AgentProfileStore, openhands_profile: OpenHandsAgentProfile
    ) -> None:
        agent_store.save(openhands_profile)
        (agent_store.base_dir / "binary.json").write_bytes(b"\xff\xfe\x00garbage")
    
        assert [s["name"] for s in agent_store.list_summaries()] == ["oh"]
    set_llm_profile_ref does not treat UnicodeDecodeError as a corrupt profile, so a ref cascade aborts...

    set_llm_profile_ref does not treat UnicodeDecodeError as a corrupt profile, so a ref cascade aborts instead of skipping the file

    Test: tests/sdk/profiles/test_agent_profile_store.py::test_set_llm_profile_ref_skips_undecodable_file

    uv run pytest tests/sdk/profiles/test_agent_profile_store.py -k test_set_llm_profile_ref_skips_undecodable_file --runxfail
    

    The case it checks:

    def test_set_llm_profile_ref_skips_undecodable_file(
        agent_store: AgentProfileStore,
    ) -> None:
        (agent_store.base_dir / "binary.json").write_bytes(b"\xff\xfe\x00garbage")
    
        agent_store.set_llm_profile_ref("binary", "new-ref")
    
        assert (agent_store.base_dir / "binary.json").read_bytes().startswith(b"\xff")
    on case-insensitive filesystems rename sees the source file as the existing target, so a case-only rename...

    on case-insensitive filesystems rename sees the source file as the existing target, so a case-only rename raises FileExistsError

    Test: tests/sdk/profiles/test_agent_profile_store.py::test_rename_case_only_change

    uv run pytest tests/sdk/profiles/test_agent_profile_store.py -k test_rename_case_only_change --runxfail
    

    The case it checks:

    def test_rename_case_only_change(
        agent_store: AgentProfileStore, openhands_profile: OpenHandsAgentProfile
    ) -> None:
        if not _is_case_insensitive(agent_store.base_dir):
            pytest.xfail("case-only rename collision needs a case-insensitive fs")
        agent_store.save(openhands_profile.model_copy(update={"name": "myprofile"}))
    
        agent_store.rename("myprofile", "MyProfile")
    
        assert agent_store.load("MyProfile").name == "MyProfile"
    the top-level third-party loop in load_project_skills does not catch UnicodeDecodeError (the nested loop...

    the top-level third-party loop in load_project_skills does not catch UnicodeDecodeError (the nested loop does), so one non-UTF-8 AGENTS.md aborts loading every project skill

    Test: tests/sdk/skills/test_load_project_skills.py::test_load_project_skills_non_utf8_agents_md_does_not_abort

    uv run pytest tests/sdk/skills/test_load_project_skills.py -k test_load_project_skills_non_utf8_agents_md_does_not_abort --runxfail
    

    The case it checks:

    def test_load_project_skills_non_utf8_agents_md_does_not_abort(tmp_path):
        (tmp_path / "AGENTS.md").write_bytes(b"# Rules\n\xe9t\xe9 in latin-1\n")
        (tmp_path / ".cursorrules").write_text("Use tabs.")
        skills_dir = tmp_path / ".openhands" / "skills"
        skills_dir.mkdir(parents=True)
        (skills_dir / "valid.md").write_text("Valid skill.")
    
        skills = load_project_skills(tmp_path)
    
        assert {s.name for s in skills} == {"cursorrules", "valid"}
    load_mcp_config catches JSONDecodeError and OSError but not UnicodeDecodeError, so a non-UTF-8 .mcp.json...

    load_mcp_config catches JSONDecodeError and OSError but not UnicodeDecodeError, so a non-UTF-8 .mcp.json escapes as a raw error

    Test: tests/sdk/skills/test_mcp_json.py::test_mcp_json_non_utf8_raises_skill_validation_error

    uv run pytest tests/sdk/skills/test_mcp_json.py -k test_mcp_json_non_utf8_raises_skill_validation_error --runxfail
    

    The case it checks:

    def test_mcp_json_non_utf8_raises_skill_validation_error(tmp_path: Path) -> None:
        skill_dir = tmp_path / "my-skill"
        skill_dir.mkdir()
        (skill_dir / "SKILL.md").write_text("# Skill")
        (skill_dir / ".mcp.json").write_bytes(b'\xff\xfe{"mcpServers": {}}')
    
        with pytest.raises(SkillValidationError):
            Skill.load(skill_dir / "SKILL.md")
    recursive find_regular_md_files compares the README name case-sensitively (flat mode does not), so...

    recursive find_regular_md_files compares the README name case-sensitively (flat mode does not), so readme.md loads as a skill

    Test: tests/sdk/skills/test_skill_utils.py::test_find_regular_md_files_recursive_skips_readme_any_case

    uv run pytest tests/sdk/skills/test_skill_utils.py -k test_find_regular_md_files_recursive_skips_readme_any_case --runxfail
    

    The case it checks:

    def test_find_regular_md_files_recursive_skips_readme_any_case(tmp_path):
        (tmp_path / "docs").mkdir()
        (tmp_path / "docs" / "readme.md").write_text("docs")
        (tmp_path / "skill-a.md").write_text("a")
    
        files = find_regular_md_files(tmp_path, set())
    
        assert [f.name for f in files] == ["skill-a.md"]
    Skill.load reads with encoding='utf-8' (not 'utf-8-sig'), so a BOM hides the frontmatter and a triggered...

    Skill.load reads with encoding='utf-8' (not 'utf-8-sig'), so a BOM hides the frontmatter and a triggered skill becomes always-on

    Test: tests/sdk/skills/test_skill_utils.py::test_skill_load_utf8_bom_frontmatter

    uv run pytest tests/sdk/skills/test_skill_utils.py -k test_skill_load_utf8_bom_frontmatter --runxfail
    

    The case it checks:

    def test_skill_load_utf8_bom_frontmatter(tmp_path):
        path = tmp_path / "bom.md"
        path.write_bytes("\ufeff---\ntriggers:\n  - deploy\n---\nBody\n".encode())
    
        skill = Skill.load(path, tmp_path)
    
        assert isinstance(skill.trigger, KeywordTrigger)
        assert skill.content.strip() == "Body"
    AgentDefinition.load wraps fm.get() in str(), so an empty YAML value becomes the literal string 'None'...

    AgentDefinition.load wraps fm.get() in str(), so an empty YAML value becomes the literal string 'None' (model 'None' is then looked up as an LLM profile)

    Test: tests/sdk/subagent/test_subagent_schema.py::test_load_empty_frontmatter_values_fall_back_to_defaults

    uv run pytest tests/sdk/subagent/test_subagent_schema.py -k test_load_empty_frontmatter_values_fall_back_to_defaults --runxfail
    

    The case it checks:

    def test_load_empty_frontmatter_values_fall_back_to_defaults(tmp_path: Path):
        md = tmp_path / "reviewer.md"
        md.write_text("---\nname:\ndescription:\nmodel:\n---\n\nPrompt.\n")
    
        agent = AgentDefinition.load(md)
    
        assert agent.name == "reviewer"
        assert agent.description == ""
        assert agent.model == "inherit"
    _extract_max_iteration_per_run accepts YAML booleans as ints (max_budget_per_run rejects them), so 'yes'...

    _extract_max_iteration_per_run accepts YAML booleans as ints (max_budget_per_run rejects them), so 'yes' silently caps a run at 1

    Test: tests/sdk/subagent/test_subagent_schema.py::test_load_boolean_max_iteration_per_run_is_not_one

    uv run pytest tests/sdk/subagent/test_subagent_schema.py -k test_load_boolean_max_iteration_per_run_is_not_one --runxfail
    

    The case it checks:

    def test_load_boolean_max_iteration_per_run_is_not_one(tmp_path: Path):
        md = tmp_path / "a.md"
        md.write_text("---\nmax_iteration_per_run: yes\n---\n\nPrompt.\n")
    
        assert AgentDefinition.load(md).max_iteration_per_run != 1
    AgentDefinition.load reads with encoding='utf-8' (not 'utf-8-sig'), so a BOM hides the frontmatter and it...

    AgentDefinition.load reads with encoding='utf-8' (not 'utf-8-sig'), so a BOM hides the frontmatter and it leaks into the prompt

    Test: tests/sdk/subagent/test_subagent_schema.py::test_load_utf8_bom_frontmatter

    uv run pytest tests/sdk/subagent/test_subagent_schema.py -k test_load_utf8_bom_frontmatter --runxfail
    

    The case it checks:

    def test_load_utf8_bom_frontmatter(tmp_path: Path):
        md = tmp_path / "file-stem.md"
        md.write_bytes("\ufeff---\nname: bom-agent\n---\n\nPrompt.\n".encode())
    
        agent = AgentDefinition.load(md)
    
        assert agent.name == "bom-agent"
        assert agent.system_prompt == "Prompt."
    redact_url_credentials matches the scheme case-sensitively (the _in_text variant is IGNORECASE), so...

    redact_url_credentials matches the scheme case-sensitively (the _in_text variant is IGNORECASE), so HTTPS:// credentials leak

    Test: tests/sdk/utils/test_redact.py::test_redact_url_credentials_uppercase_scheme

    uv run pytest tests/sdk/utils/test_redact.py -k test_redact_url_credentials_uppercase_scheme --runxfail
    

    The case it checks:

    def test_redact_url_credentials_uppercase_scheme():
        assert (
            redact_url_credentials("HTTPS://oauth2:SECRET@github.com/o/r.git")
            == "HTTPS://****@github.com/o/r.git"
        )
    _save_full_content only guards write_text; a save_dir that cannot be created (e.g. an existing file)...

    _save_full_content only guards write_text; a save_dir that cannot be created (e.g. an existing file) raises from maybe_truncate

    Test: tests/sdk/utils/test_truncate.py::test_maybe_truncate_unusable_save_dir_falls_back_to_plain_notice

    uv run pytest tests/sdk/utils/test_truncate.py -k test_maybe_truncate_unusable_save_dir_falls_back_to_plain_notice --runxfail
    

    The case it checks:

    def test_maybe_truncate_unusable_save_dir_falls_back_to_plain_notice(tmp_path):
        save_dir = tmp_path / "not-a-dir"
        save_dir.write_text("occupied")
        content = "a" * 1000
    
        result = maybe_truncate(content, truncate_after=500, save_dir=str(save_dir))
    
        assert len(result) == 500
        assert DEFAULT_TRUNCATE_NOTICE in result
  5. VascoSch92 commented on Oct 30, 2026

    @VascoSch92
    MemberAuthor

    Agent server

    _read_execution_status_sync only suppresses OSError/ValueError; a non-object payload raises AttributeError...

    _read_execution_status_sync only suppresses OSError/ValueError; a non-object payload raises AttributeError and fails every status-filtered count

    Test: tests/agent_server/test_conversation_service.py::test_status_index_keeps_cached_status_for_corrupt_state

    uv run pytest tests/agent_server/test_conversation_service.py -k test_status_index_keeps_cached_status_for_corrupt_state --runxfail
    

    The case it checks:

        async def test_status_index_keeps_cached_status_for_corrupt_state(
            self, tmp_path, corrupt_payload
        ):
            """A corrupt base_state.json must not break status-filtered listing."""
            workspace_dir = tmp_path / "workspace"
            workspace_dir.mkdir()
            conversations_dir = tmp_path / "conversations"
            ids = self._seed(conversations_dir, 2, workspace_dir)
    
            async with ConversationService(conversations_dir=conversations_dir) as svc:
                idle = ConversationExecutionStatus.IDLE
                assert await svc.count_conversations(execution_status=idle) == 2
    
                base_state = conversations_dir / ids[0].hex / "base_state.json"
                base_state.write_text(corrupt_payload)
    
                assert await svc.count_conversations(execution_status=idle) == 2
    merge() indexes past the end of a copy of the shorter list

    Test: tests/agent_server/test_env_parser.py::test_merge_appends_items_when_second_list_is_longer

    uv run pytest tests/agent_server/test_env_parser.py -k test_merge_appends_items_when_second_list_is_longer --runxfail
    

    The case it checks:

    def test_merge_appends_items_when_second_list_is_longer():
        assert merge([1, 2], [10, 20, 30, 40]) == [10, 20, 30, 40]
    merge() raises IndexError when env lists more items than the file

    Test: tests/agent_server/test_env_parser.py::test_config_env_list_longer_than_file_list_overrides_it

    uv run pytest tests/agent_server/test_env_parser.py -k test_config_env_list_longer_than_file_list_overrides_it --runxfail
    

    The case it checks:

    def test_config_env_list_longer_than_file_list_overrides_it(tmp_path, clean_env):
        config_path = tmp_path / "config.json"
        config_path.write_text(json.dumps({"session_api_keys": ["file-key"]}))
        os.environ["OH_SESSION_API_KEYS_0"] = "env-key-a"
        os.environ["OH_SESSION_API_KEYS_1"] = "env-key-b"
    
        config = load_config(config_path)
    
        assert config.session_api_keys == ["env-key-a", "env-key-b"]
    X-Archive-Base-Ref echoes base_ref raw instead of through _header_safe, so a non-latin-1 ref 500s and...

    X-Archive-Base-Ref echoes base_ref raw instead of through _header_safe, so a non-latin-1 ref 500s and leaks the scratch archive

    Test: tests/agent_server/test_file_router.py::test_archive_non_latin1_base_ref_is_percent_encoded

    uv run pytest tests/agent_server/test_file_router.py -k test_archive_non_latin1_base_ref_is_percent_encoded --runxfail
    

    The case it checks:

    def test_archive_non_latin1_base_ref_is_percent_encoded(client, tmp_path):
        repo = tmp_path / "repo"
        repo.mkdir()
        _git(["init"], repo)
        _git(["commit", "--allow-empty", "-m", "init"], repo)
        _git(["branch", "功能"], repo)
        (repo / "a.txt").write_text("x\n", encoding="utf-8")
    
        resp = client.get(
            "/api/file/archive", params={"path": str(repo), "base_ref": "功能"}
        )
    
        assert resp.status_code == 200, resp.text
        assert resp.headers["x-archive-base-ref"] == quote("功能", safe="")
        assert [p.name for p in tmp_path.iterdir()] == ["repo"]
    an empty path becomes Path('.') and answers for the agent-server process's own working directory instead...

    an empty path becomes Path('.') and answers for the agent-server process's own working directory instead of erroring

    Test: tests/agent_server/test_git_router.py::test_git_empty_path_is_rejected

    uv run pytest tests/agent_server/test_git_router.py -k test_git_empty_path_is_rejected --runxfail
    

    The case it checks:

    def test_git_empty_path_is_rejected(client, committed_repo, monkeypatch, endpoint):
        monkeypatch.chdir(committed_repo)
    
        response = client.get(f"/api/git/{endpoint}", params={"path": ""})
    
        assert 400 <= response.status_code < 500
    PubSub.close gathers without return_exceptions, so one failing close raises and skips clearing the subscribers

    Test: tests/agent_server/test_pub_sub.py::test_real_pubsub_close_survives_a_failing_subscriber_close

    uv run pytest tests/agent_server/test_pub_sub.py -k test_real_pubsub_close_survives_a_failing_subscriber_close --runxfail
    

    The case it checks:

    async def test_real_pubsub_close_survives_a_failing_subscriber_close():
        from openhands.agent_server.pub_sub import PubSub
    
        pubsub: PubSub[str] = PubSub()
        subscribers = [
            _RecordingSubscriber(),
            _RecordingSubscriber(fail_close=True),
            _RecordingSubscriber(),
        ]
        for recorder in subscribers:
            pubsub.subscribe(recorder.subscriber)
    
        await pubsub.close()
    
        assert all(recorder.closed for recorder in subscribers)
        assert pubsub.subscriber_ids() == set()
    safe_rmtree on a symlinked dir chmods the link target to write-only and returns True while the link remains

    Test: tests/agent_server/test_utils.py::test_safe_rmtree_leaves_a_symlink_target_untouched

    uv run pytest tests/agent_server/test_utils.py -k test_safe_rmtree_leaves_a_symlink_target_untouched --runxfail
    

    The case it checks:

    def test_safe_rmtree_leaves_a_symlink_target_untouched(tmp_path):
        outside = tmp_path / "outside"
        outside.mkdir()
        (outside / "precious").write_text("keep")
        mode_before = outside.stat().st_mode
        link = tmp_path / "link"
        link.symlink_to(outside, target_is_directory=True)
        try:
            removed = safe_rmtree(link)
            assert removed is not link.is_symlink()
            assert outside.stat().st_mode == mode_before
        finally:
            _restore_permissions(outside)
        assert (outside / "precious").read_text() == "keep"
    safe_rmtree's onerror handler swallows failures, so it returns True while a read-only subdirectory keeps...

    safe_rmtree's onerror handler swallows failures, so it returns True while a read-only subdirectory keeps the tree on disk

    Test: tests/agent_server/test_utils.py::test_safe_rmtree_result_matches_whether_tree_is_gone

    uv run pytest tests/agent_server/test_utils.py -k test_safe_rmtree_result_matches_whether_tree_is_gone --runxfail
    

    The case it checks:

    def test_safe_rmtree_result_matches_whether_tree_is_gone(tmp_path):
        target = tmp_path / "tree"
        locked = target / "locked"
        locked.mkdir(parents=True)
        (locked / "file.txt").write_text("x")
        locked.chmod(0o500)
        try:
            removed = safe_rmtree(target)
            assert removed is not target.exists()
        finally:
            if target.exists():
                _restore_permissions(target)
    safe_rmtree on a regular file returns True, leaves the file, and chmods it to write-only

    Test: tests/agent_server/test_utils.py::test_safe_rmtree_on_a_file_reports_failure_or_removes_it

    uv run pytest tests/agent_server/test_utils.py -k test_safe_rmtree_on_a_file_reports_failure_or_removes_it --runxfail
    

    The case it checks:

    def test_safe_rmtree_on_a_file_reports_failure_or_removes_it(tmp_path):
        target = tmp_path / "plain.txt"
        target.write_text("x")
        try:
            removed = safe_rmtree(target)
            assert removed is not target.exists()
        finally:
            if target.exists():
                _restore_permissions(target)
  6. VascoSch92 commented on Oct 30, 2026

    @VascoSch92
    MemberAuthor

    Tools: file editor, grep, glob, apply_patch

    Update of a missing file is reported as 'Delete File Error'

    Test: tests/tools/apply_patch/test_apply_patch_executor.py::test_update_missing_file_error_names_update

    uv run pytest tests/tools/apply_patch/test_apply_patch_executor.py -k test_update_missing_file_error_names_update --runxfail
    

    The case it checks:

    def test_update_missing_file_error_names_update(tmp_ws: Path):
        patch = "*** Begin Patch\n*** Update File: missing.txt\n@@\n-a\n+b\n*** End Patch"
        obs = run_exec(tmp_ws, patch)
    
        assert obs.is_error
        assert "Missing File" in obs.text
        assert "Delete File" not in obs.text
    non-UTF-8 file raises UnicodeDecodeError out of the executor

    Test: tests/tools/apply_patch/test_apply_patch_executor.py::test_update_non_utf8_file_returns_error_observation

    uv run pytest tests/tools/apply_patch/test_apply_patch_executor.py -k test_update_non_utf8_file_returns_error_observation --runxfail
    

    The case it checks:

    def test_update_non_utf8_file_returns_error_observation(tmp_ws: Path):
        fp = tmp_ws / "latin1.txt"
        fp.write_bytes("café\n".encode("latin-1"))
        patch = "*** Begin Patch\n*** Update File: latin1.txt\n@@\n-caf\n+x\n*** End Patch"
        obs = run_exec(tmp_ws, patch)
    
        assert obs.is_error
        assert fp.read_bytes() == "café\n".encode("latin-1")
    updating a directory raises IsADirectoryError out of the executor

    Test: tests/tools/apply_patch/test_apply_patch_executor.py::test_update_directory_returns_error_observation

    uv run pytest tests/tools/apply_patch/test_apply_patch_executor.py -k test_update_directory_returns_error_observation --runxfail
    

    The case it checks:

    def test_update_directory_returns_error_observation(tmp_ws: Path):
        (tmp_ws / "sub").mkdir()
        patch = "*** Begin Patch\n*** Update File: sub\n@@\n-a\n+b\n*** End Patch"
        obs = run_exec(tmp_ws, patch)
    
        assert obs.is_error
    a rejected later path leaves earlier files written (non-atomic)

    Test: tests/tools/apply_patch/test_apply_patch_executor.py::test_rejected_patch_does_not_apply_earlier_files

    uv run pytest tests/tools/apply_patch/test_apply_patch_executor.py -k test_rejected_patch_does_not_apply_earlier_files --runxfail
    

    The case it checks:

    def test_rejected_patch_does_not_apply_earlier_files(tmp_ws: Path):
        patch = (
            "*** Begin Patch\n"
            "*** Add File: ok.txt\n"
            "+x\n"
            "*** Add File: ../escape.txt\n"
            "+y\n"
            "*** End Patch"
        )
        obs = run_exec(tmp_ws, patch)
    
        assert obs.is_error
        assert not (tmp_ws / "ok.txt").exists()
        assert not (tmp_ws.parent / "escape.txt").exists()
    updating a CRLF file rewrites every line ending as LF

    Test: tests/tools/apply_patch/test_apply_patch_executor.py::test_update_preserves_crlf_line_endings

    uv run pytest tests/tools/apply_patch/test_apply_patch_executor.py -k test_update_preserves_crlf_line_endings --runxfail
    

    The case it checks:

    def test_update_preserves_crlf_line_endings(tmp_ws: Path):
        fp = tmp_ws / "crlf.txt"
        fp.write_bytes(b"a\r\nb\r\n")
        patch = "*** Begin Patch\n*** Update File: crlf.txt\n@@\n a\n-b\n+B\n*** End Patch"
        obs = run_exec(tmp_ws, patch)
    
        assert not obs.is_error
        assert fp.read_bytes() == b"a\r\nB\r\n"
    str_replace uniqueness check misses overlapping occurrences

    Test: tests/tools/file_editor/test_edge_cases.py::test_str_replace_rejects_overlapping_occurrences

    uv run pytest tests/tools/file_editor/test_edge_cases.py -k test_str_replace_rejects_overlapping_occurrences --runxfail
    

    The case it checks:

    def test_str_replace_rejects_overlapping_occurrences(editor, tmp_path):
        # "aa" occurs at offsets 0 and 1 of "aaa", so it does not identify a single
        # location and the replacement must be refused.
        path = tmp_path / "overlap.txt"
        path.write_text("aaa\n")
    
        with pytest.raises(ToolError, match="Multiple occurrences"):
            editor(command="str_replace", path=str(path), old_str="aa", new_str="b")
    
        assert path.read_text() == "aaa\n"
    edits rewrite CRLF line endings as LF for the whole file

    Test: tests/tools/file_editor/test_edge_cases.py::test_str_replace_preserves_crlf_line_endings

    uv run pytest tests/tools/file_editor/test_edge_cases.py -k test_str_replace_preserves_crlf_line_endings --runxfail
    

    The case it checks:

    def test_str_replace_preserves_crlf_line_endings(editor, tmp_path):
        path = tmp_path / "crlf.txt"
        path.write_bytes(b"one\r\ntwo\r\nthree\r\n")
    
        editor(command="str_replace", path=str(path), old_str="two", new_str="TWO")
    
        assert path.read_bytes() == b"one\r\nTWO\r\nthree\r\n"
    atomic write replaces a symlink with a regular file

    Test: tests/tools/file_editor/test_edge_cases.py::test_str_replace_through_symlink_edits_target

    uv run pytest tests/tools/file_editor/test_edge_cases.py -k test_str_replace_through_symlink_edits_target --runxfail
    

    The case it checks:

    def test_str_replace_through_symlink_edits_target(editor, tmp_path):
        target = tmp_path / "target.txt"
        target.write_text("hello\n")
        link = tmp_path / "link.txt"
        symlink_or_skip(target, link)
    
        editor(command="str_replace", path=str(link), old_str="hello", new_str="bye")
    
        assert link.is_symlink()
        assert target.read_text() == "bye\n"
    unreadable file raises PermissionError instead of a tool error

    Test: tests/tools/file_editor/test_edge_cases.py::test_view_unreadable_file_returns_error_observation

    uv run pytest tests/tools/file_editor/test_edge_cases.py -k test_view_unreadable_file_returns_error_observation --runxfail
    

    The case it checks:

    def test_view_unreadable_file_returns_error_observation(tmp_path):
        path = tmp_path / "secret.txt"
        path.write_text("secret\n")
        os.chmod(path, 0)
        try:
            result = file_editor(command="view", path=str(path))
        finally:
            os.chmod(path, 0o644)
    
        assert result.is_error
        assert "secret.txt" in result.text
    insert after a last line with no trailing newline merges lines

    Test: tests/tools/file_editor/test_edge_cases.py::test_insert_after_last_line_without_trailing_newline

    uv run pytest tests/tools/file_editor/test_edge_cases.py -k test_insert_after_last_line_without_trailing_newline --runxfail
    

    The case it checks:

    def test_insert_after_last_line_without_trailing_newline(editor, tmp_path):
        path = tmp_path / "no_eol.txt"
        path.write_text("a\nb")
    
        editor(command="insert", path=str(path), insert_line=2, new_str="x")
    
        lines = path.read_text().splitlines()
        assert lines == ["a", "b", "x"]
    Python glob fallback has no brace expansion, so '*.{json,yaml}' matches nothing

    Test: tests/tools/glob/test_glob_edge_cases.py::test_brace_pattern_from_tool_description

    uv run pytest tests/tools/glob/test_glob_edge_cases.py -k test_brace_pattern_from_tool_description --runxfail
    

    The case it checks:

    def test_brace_pattern_from_tool_description(make_executor, tmp_path, backend):
        # The tool description advertises "**/*.{json,yaml,yml,toml}".
        (tmp_path / "a.json").write_text("{}")
        (tmp_path / "b.yaml").write_text("")
        (tmp_path / "c.py").write_text("")
        executor = make_executor(backend, tmp_path)
    
        observation = executor(GlobAction(pattern="**/*.{json,yaml}"))
    
        assert _names(observation) == {"a.json", "b.yaml"}
    ripgrep backend reports truncated=True when exactly 100 files match

    Test: tests/tools/glob/test_glob_edge_cases.py::test_exactly_max_matches_is_not_truncated

    uv run pytest tests/tools/glob/test_glob_edge_cases.py -k test_exactly_max_matches_is_not_truncated --runxfail
    

    The case it checks:

    def test_exactly_max_matches_is_not_truncated(make_executor, tmp_path, backend):
        for i in range(100):
            (tmp_path / f"f{i}.txt").write_text("")
        executor = make_executor(backend, tmp_path)
    
        observation = executor(GlobAction(pattern="*.txt"))
    
        assert len(observation.files) == 100
        assert observation.truncated is False
        assert "truncated" not in observation.text
    brace include like '*.{ts,tsx}' is filtered with fnmatch, which has no brace expansion

    Test: tests/tools/grep/test_grep_edge_cases.py::test_brace_include_pattern_from_tool_description

    uv run pytest tests/tools/grep/test_grep_edge_cases.py -k test_brace_include_pattern_from_tool_description --runxfail
    

    The case it checks:

    def test_brace_include_pattern_from_tool_description(make_executor, tmp_path, backend):
        # The tool description advertises include="*.{ts,tsx}".
        (tmp_path / "a.ts").write_text("needle\n")
        (tmp_path / "b.tsx").write_text("needle\n")
        (tmp_path / "c.py").write_text("needle\n")
        executor = make_executor(backend, tmp_path)
    
        observation = executor(GrepAction(pattern="needle", include="*.{ts,tsx}"))
    
        assert _names(observation) == {"a.ts", "b.tsx"}
    ripgrep backend passes a leading-dash pattern as a CLI flag

    Test: tests/tools/grep/test_grep_edge_cases.py::test_pattern_starting_with_dash

    uv run pytest tests/tools/grep/test_grep_edge_cases.py -k test_pattern_starting_with_dash --runxfail
    

    The case it checks:

    def test_pattern_starting_with_dash(make_executor, tmp_path, backend):
        (tmp_path / "flags.txt").write_text("run with -foo enabled\n")
        (tmp_path / "other.txt").write_text("nothing here\n")
        executor = make_executor(backend, tmp_path)
    
        observation = executor(GrepAction(pattern="-foo"))
    
        assert observation.is_error is False
        assert _names(observation) == {"flags.txt"}
    ripgrep backend treats '--files' pattern as a flag and lists every file

    Test: tests/tools/grep/test_grep_edge_cases.py::test_ripgrep_pattern_cannot_inject_flags

    uv run pytest tests/tools/grep/test_grep_edge_cases.py -k test_ripgrep_pattern_cannot_inject_flags --runxfail
    

    The case it checks:

    def test_ripgrep_pattern_cannot_inject_flags(make_executor, tmp_path):
        (tmp_path / "a.txt").write_text("alpha\n")
        (tmp_path / "b.txt").write_text("beta\n")
        executor = make_executor("ripgrep", tmp_path)
    
        observation = executor(GrepAction(pattern="--files"))
    
        assert observation.matches == []
    ripgrep regex errors (exit 2) are reported as 'No files found'

    Test: tests/tools/grep/test_grep_edge_cases.py::test_ripgrep_unsupported_regex_is_not_silently_empty

    uv run pytest tests/tools/grep/test_grep_edge_cases.py -k test_ripgrep_unsupported_regex_is_not_silently_empty --runxfail
    

    The case it checks:

    def test_ripgrep_unsupported_regex_is_not_silently_empty(make_executor, tmp_path):
        # Python's re accepts look-ahead, so the pre-check passes, but ripgrep's
        # default engine rejects it. The result must not be a silent "no match".
        (tmp_path / "a.txt").write_text("foobar\n")
        executor = make_executor("ripgrep", tmp_path)
    
        observation = executor(GrepAction(pattern="foo(?=bar)"))
    
        assert observation.is_error or _names(observation) == {"a.txt"}
    system grep backend runs basic regex (no -E), so '|' alternation is literal

    Test: tests/tools/grep/test_grep_edge_cases.py::test_alternation_pattern

    uv run pytest tests/tools/grep/test_grep_edge_cases.py -k test_alternation_pattern --runxfail
    

    The case it checks:

    def test_alternation_pattern(make_executor, tmp_path, backend):
        (tmp_path / "a.txt").write_text("needle\n")
        (tmp_path / "b.txt").write_text("haystack\n")
        (tmp_path / "c.txt").write_text("other\n")
        executor = make_executor(backend, tmp_path)
    
        observation = executor(GrepAction(pattern="needle|haystack"))
    
        assert _names(observation) == {"a.txt", "b.txt"}
  7. VascoSch92 commented on Oct 30, 2026

    @VascoSch92
    MemberAuthor

    Workspaces

    a JSON null pod_status raises AttributeError instead of being retried like other unknown statuses

    Test: tests/workspace/test_api_remote_workspace.py::test_null_pod_status_is_retried

    uv run pytest tests/workspace/test_api_remote_workspace.py -k test_null_pod_status_is_retried --runxfail
    

    The case it checks:

    def test_null_pod_status_is_retried(runtime_api):
        routes, _ = runtime_api
        routes["POST /start"] = [_started()]
        routes["GET /sessions/sess"] = [
            httpx.Response(404),
            _session(None),
            _session("ready"),
        ]
    
        workspace = _new_workspace()
    
        assert workspace.host == RUNTIME_URL
        workspace._runtime_id = None
    ApptainerWorkspace leaves the `apptainer run` process running when the health check fails during construction

    Test: tests/workspace/test_apptainer_workspace.py::test_failed_health_check_terminates_server_process

    uv run pytest tests/workspace/test_apptainer_workspace.py -k test_failed_health_check_terminates_server_process --runxfail
    

    The case it checks:

    def test_failed_health_check_terminates_server_process(
        apptainer_env, child_popen, tmp_path
    ):
        from openhands.workspace import ApptainerWorkspace
    
        script, procs = child_popen
        script["code"] = "import time; time.sleep(30)"
        sif = tmp_path / "img.sif"
        sif.write_text("fake sif")
    
        with (
            patch.object(
                ApptainerWorkspace,
                "_wait_for_health",
                side_effect=RuntimeError("Container failed to become healthy in time"),
            ),
            pytest.raises(RuntimeError, match="healthy") as excinfo,
        ):
            ApptainerWorkspace(sif_file=str(sif), host_port=8000, detach_logs=False)
    
        # excinfo keeps the half-built workspace alive, so __del__ has not run yet.
        alive_after_failure = procs[0].poll() is None
        del excinfo
        gc.collect()
        assert not alive_after_failure
    with detach_logs=False the server's stdout PIPE is never read, so it blocks once ~64 KiB of logs fill the...

    with detach_logs=False the server's stdout PIPE is never read, so it blocks once ~64 KiB of logs fill the pipe buffer

    Test: tests/workspace/test_apptainer_workspace.py::test_undrained_logs_do_not_block_server

    uv run pytest tests/workspace/test_apptainer_workspace.py -k test_undrained_logs_do_not_block_server --runxfail
    

    The case it checks:

    def test_undrained_logs_do_not_block_server(mock_apptainer_workspace, child_popen):
        script, procs = child_popen
        script["code"] = "import sys; sys.stdout.write('x' * 1_000_000); sys.stdout.flush()"
        workspace, _ = mock_apptainer_workspace()  # detach_logs=False
    
        workspace._start_container()
    
        try:
            procs[0].wait(timeout=2)
        except subprocess.TimeoutExpired:
            pytest.fail("agent-server child blocked writing its logs")
        finally:
            workspace._process = None
            workspace._instance_name = None
    ApptainerWorkspace ignores the forwarded OH_SESSION_API_KEYS_0, which the agent server prefers BUG:...

    ApptainerWorkspace ignores the forwarded OH_SESSION_API_KEYS_0, which the agent server prefers BUG: ApptainerWorkspace sends SESSION_API_KEY although the agent server prefers the forwarded OH_SESSION_API_KEYS_0

    Test: tests/workspace/test_apptainer_workspace.py::test_client_key_matches_key_server_accepts

    uv run pytest tests/workspace/test_apptainer_workspace.py -k test_client_key_matches_key_server_accepts --runxfail
    

    The case it checks:

    def test_client_key_matches_key_server_accepts(
        mock_apptainer_workspace, monkeypatch, env, expected
    ):
        """Both key variables are forwarded; the server resolves the V1 one first."""
        monkeypatch.delenv("SESSION_API_KEY", raising=False)
        monkeypatch.delenv("OH_SESSION_API_KEYS_0", raising=False)
        for key, value in env.items():
            monkeypatch.setenv(key, value)
    
        workspace, _ = mock_apptainer_workspace()
    
        assert workspace.api_key == expected
    ApptainerWorkspace.__exit__ skips RemoteWorkspace.__exit__, so the AUTOMATION_CALLBACK_URL completion...

    ApptainerWorkspace.exit skips RemoteWorkspace.exit, so the AUTOMATION_CALLBACK_URL completion callback is never sent

    Test: tests/workspace/test_apptainer_workspace.py::test_exit_sends_completion_callback

    uv run pytest tests/workspace/test_apptainer_workspace.py -k test_exit_sends_completion_callback --runxfail
    

    The case it checks:

    def test_exit_sends_completion_callback(mock_apptainer_workspace, monkeypatch):
        monkeypatch.setenv("AUTOMATION_CALLBACK_URL", "https://svc.test/complete")
        workspace, _ = mock_apptainer_workspace()
    
        with patch("httpx.Client") as MockClient:
            mock_client = MagicMock()
            mock_client.__enter__ = MagicMock(return_value=mock_client)
            mock_client.__exit__ = MagicMock(return_value=False)
            MockClient.return_value = mock_client
    
            workspace.__exit__(None, None, None)
    
            mock_client.post.assert_called_once()
            assert mock_client.post.call_args.args[0] == "https://svc.test/complete"
    _get_secret_value nests a 3-attempt retry around the 3-attempt _send_settings_request, so a persistent 5xx...

    _get_secret_value nests a 3-attempt retry around the 3-attempt _send_settings_request, so a persistent 5xx makes 9 requests

    Test: tests/workspace/test_cloud_workspace.py::test_get_secret_value_retries_at_most_three_times

    uv run pytest tests/workspace/test_cloud_workspace.py -k test_get_secret_value_retries_at_most_three_times --runxfail
    

    The case it checks:

    def test_get_secret_value_retries_at_most_three_times(
        running_cloud_workspace, cloud_api
    ):
        routes, calls = cloud_api
        routes[f"GET {SANDBOXES}/sb-1/settings/secrets/github_token"] = [
            httpx.Response(503, text="unavailable")
        ]
    
        assert running_cloud_workspace._get_secret_value("github_token") is None
        assert len(calls) == 3
    DockerWorkspace leaves the container running when startup fails after `docker run` (no cleanup in...

    DockerWorkspace leaves the container running when startup fails after docker run (no cleanup in model_post_init)

    Test: tests/workspace/test_docker_workspace.py::test_failed_health_check_stops_container

    uv run pytest tests/workspace/test_docker_workspace.py -k test_failed_health_check_stops_container --runxfail
    

    The case it checks:

    def test_failed_health_check_stops_container(docker_startup, monkeypatch):
        fake, calls = _docker_exec()
        monkeypatch.setattr("openhands.workspace.docker.workspace.execute_command", fake)
    
        with (
            patch.object(
                DockerWorkspace,
                "_wait_for_health",
                side_effect=RuntimeError("Container failed to become healthy in time"),
            ),
            pytest.raises(RuntimeError, match="healthy") as excinfo,
        ):
            DockerWorkspace(server_image="test:latest", host_port=8123, detach_logs=False)
    
        # excinfo keeps the half-built workspace alive, so __del__ has not run yet
        # and cannot stand in for a rollback inside the constructor.
        stopped_during_startup = ["docker", "stop", "cid-123"] in calls
        del excinfo
        gc.collect()  # let __del__ run while execute_command is still faked
        assert stopped_during_startup
    an exhausted port range (find_available_tcp_port() == -1) raises OverflowError from socket.bind instead of...

    an exhausted port range (find_available_tcp_port() == -1) raises OverflowError from socket.bind instead of a clear RuntimeError

    Test: tests/workspace/test_docker_workspace.py::test_no_free_port_raises_runtime_error

    uv run pytest tests/workspace/test_docker_workspace.py -k test_no_free_port_raises_runtime_error --runxfail
    

    The case it checks:

    def test_no_free_port_raises_runtime_error(monkeypatch):
        fake, calls = _docker_exec()
        monkeypatch.setattr("openhands.workspace.docker.workspace.execute_command", fake)
        monkeypatch.setattr(
            "openhands.workspace.docker.workspace.find_available_tcp_port", lambda: -1
        )
    
        with pytest.raises(RuntimeError, match="not available"):
            DockerWorkspace(server_image="test:latest")
    
        assert calls == []
    DockerWorkspace.__exit__ skips RemoteWorkspace.__exit__, so the AUTOMATION_CALLBACK_URL completion...

    DockerWorkspace.exit skips RemoteWorkspace.exit, so the AUTOMATION_CALLBACK_URL completion callback is never sent

    Test: tests/workspace/test_docker_workspace.py::test_exit_sends_completion_callback

    uv run pytest tests/workspace/test_docker_workspace.py -k test_exit_sends_completion_callback --runxfail
    

    The case it checks:

    def test_exit_sends_completion_callback(mock_docker_workspace, monkeypatch):
        monkeypatch.setenv("AUTOMATION_CALLBACK_URL", "https://svc.test/complete")
        workspace, _ = mock_docker_workspace()
    
        with patch("httpx.Client") as MockClient:
            mock_client = MagicMock()
            mock_client.__enter__ = MagicMock(return_value=mock_client)
            mock_client.__exit__ = MagicMock(return_value=False)
            MockClient.return_value = mock_client
    
            workspace.__exit__(None, None, None)
    
            mock_client.post.assert_called_once()
            assert mock_client.post.call_args.args[0] == "https://svc.test/complete"
    cleanup() run on the log-streaming thread (as __del__ does when that thread drops the last reference)...

    cleanup() run on the log-streaming thread (as del does when that thread drops the last reference) raises 'cannot join current thread' before docker stop

    Test: tests/workspace/test_docker_workspace.py::test_cleanup_from_log_thread_still_stops_container

    uv run pytest tests/workspace/test_docker_workspace.py -k test_cleanup_from_log_thread_still_stops_container --runxfail
    

    The case it checks:

    def test_cleanup_from_log_thread_still_stops_container(mock_docker_workspace):
        workspace, mock_exec = mock_docker_workspace()
        workspace._stop_logs = threading.Event()
        errors: list[Exception] = []
    
        def run_cleanup():
            try:
                workspace.cleanup()
            except Exception as e:
                errors.append(e)
    
        workspace._logs_thread = threading.Thread(target=run_cleanup)
        workspace._logs_thread.start()
        workspace._logs_thread.join(timeout=5)
    
        assert errors == []
        stop_calls = [c.args[0] for c in mock_exec.call_args_list if "stop" in c.args[0]]
        assert stop_calls == [["docker", "stop", "container_id_123"]]
  8. added
    priority:medium
    ready-for-dev
    on Oct 30, 2026
  9. VascoSch92 commented on Nov 2, 2026

    @VascoSch92
    MemberAuthor

    @yftx293 thanks for picking these up. Six of your PRs (#6379, #6380, #6381, #6384, #6386, #6387) said Fixes #6348, which would have closed this tracker as soon as the first one merged. I changed them to Part of #6348.

    For any further PRs against this issue, please write Part of #6348 instead of Fixes, Closes or Resolves, as the Progress section above asks. The tracker should stay open until every item is done.

  10. VascoSch92 commented on Nov 3, 2026

    @VascoSch92
    MemberAuthor

    hey @herniqeu

    thanks for that.

    Can you change the PR description? We do have a template for that? Can you change for every PR?

  11. VascoSch92 commented on Nov 3, 2026

    @VascoSch92
    MemberAuthor

    @yftx293 Can you stop to put Fixes ISSUE_NUMBER in your PR? thanks :-)

  12. added a commit that references this issue on Nov 4, 2026
  13. VascoSch92 commented on Nov 5, 2026

    @VascoSch92
    MemberAuthor

    @yftx293 Could you stop to put fixes ISSUE NUMBER in the description of the PR?

  14. yftx293 commented on Nov 5, 2026

    @yftx293
    Contributor

    Sorry about that, and thanks for the nudge — understood now.

    I've removed the closing keyword from my open PR descriptions: the #6348 ones say Part of #6348 (with the sub-item quoted), and #6459 now says Related to #6442 instead of Fixes. I won't use Fixes/Closes in PR descriptions from here on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:mediumready-for-dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions