pardeike / pardeike/RimBridgeServer

[search_debug_actions] long-running queries block the game's main thread

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
34
Forks
8
Avg merge
1m
Merged PRs (30d)
1

Description

rimworld/search_debug_actionsblocks the game's main thread for a long time when searching with broad keywords (e.g. Recalculate), which causes:

  1. Game freeze/hang: animation and input become unresponsive, frame rate collapses, and system-level AppHang detection can be triggered;
  2. MCP-side request timeout at 30s (tools/call timeout of 30000ms), leaving the tool call stuck;
  3. Other main-thread-based debug features in-game (UnityExplorer, debug menu, etc.) are likewise unavailable during the search.

I have tried writing a similar solution (reinventing the wheel), which solved this problem to some extent. Here is a document for your reference.
issue-search-debug-actions.en.md

If the fix is done, please submit an issue to (https://github.com/Timer80/UESDdebuger-RimworldAutoAICodingDebuger), and I will directly move this feature to rimbridgeserver.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the rimworld/search_debug_actions entry point and read the attached issue-search-debug-actions.en.md document for the proposed direction. Reproduce a broad search such as Recalculate, then verify that the game remains responsive, the MCP call does not hit its 30-second timeout, and other main-thread debug features remain usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.