Skip to content

Conversation

@sjrl
Copy link
Contributor

@sjrl sjrl commented Jan 20, 2026

Related Issues

Proposed Changes:

Remove the HiTL code that was migrated to Haystack main.

How did you test it?

Remaining tests

Notes for the reviewer

Should not be merged until Haystack 2.23 release

Checklist

@sjrl sjrl self-assigned this Jan 20, 2026
@sjrl sjrl changed the title chore: chore: Remove migrated HiTL code Jan 20, 2026
@coveralls
Copy link

coveralls commented Jan 26, 2026

Pull Request Test Coverage Report for Build 21397277559

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 103 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-7.3%) to 57.573%

Files with Coverage Reduction New Missed Lines %
components/agents/human_in_the_loop/breakpoint.py 2 92.59%
components/agents/agent.py 101 51.05%
Totals Coverage Status
Change from base Build 21379277886: -7.3%
Covered Lines: 669
Relevant Lines: 1162

💛 - Coveralls

@sjrl sjrl marked this pull request as ready for review January 27, 2026 09:36
@sjrl sjrl requested review from a team as code owners January 27, 2026 09:36
@sjrl sjrl requested review from julian-risch and removed request for a team January 27, 2026 09:36
Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 👍
Some of the changes didn't seem directly related to migrating HiTL code but were smaller improvements. Generally nice to have those. Reviewing would have been a bit easier and faster if they were separated. I give three examples below to better explain what I mean, although I think you are already aware. 🙂

)
@pytest.mark.integration
def test_delete_memory(self, sample_messages):
def test_delete_memory(self, sample_messages, memory_store):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes here don't seem directly related to HiTL code and it would be better to have them in a separate PR next time.

Copy link
Contributor Author

@sjrl sjrl Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I brought them in here since there were causing the integration tests to be flaky and fail sometimes in this PR. But I can make it a separate PR next time.

init_params = data.get("init_parameters", {})

deserialize_chatgenerator_inplace(init_params, key="chat_generator")
deserialize_component_inplace(init_params, key="chat_generator")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deserialize_chatgenerator_inplace directly calls deserialize_component_inplace internally so there is no change in functionality at all. However, it's a slight improvement and I understand that it is done in line with the changes in https://github.com/deepset-ai/haystack/pull/10403/changes

retrieved_memories = self._memory_store.search_memories(query=messages[-1].text, **memory_store_kwargs) # type: ignore[arg-type]

retrieved_memories = self._memory_store.search_memories(
query=messages[-1].text, **memory_store_kwargs if memory_store_kwargs else {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

**memory_store_kwargs if memory_store_kwargs else {} instead of **memory_store_kwargs prevents a TypeError: search_memories() argument after ** must be a mapping, not NoneType. 👍

@sjrl sjrl merged commit 75ff3ea into main Jan 27, 2026
8 checks passed
@sjrl sjrl deleted the migrate-hitl branch January 27, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants