Skip to content

fix(bridge-rimchat): fix DiplomacyManager reflection P0, main-thread safety, and sync packaging/docs - #23

Merged
mcocdaa merged 1 commit into
mainfrom
refactor/phase2-cleanup
Nov 23, 2026
Merged

mcocdaa merged 1 commit into
mainfrom
refactor/phase2-cleanup

Conversation

@mcocdaa

@mcocdaa mcocdaa commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Phase 2 full-codebase cleanup & Water-Dispenser refactor verified locally across 1.6 & 1.7 builds and full test suite.

…safety, and sync packaging/docs

refactor: consolidate bridge onto Core reflection and detection APIs

Replace the bridge's private reflection plumbing with Core's shared
ReflectionAccessor and SoftDependencyDetector, and tighten runtime
guards across the bridge.

- RimChatApiShim: drop local type resolution, NoInlining, and cached
  property helpers; delegate to Accessor for cached types, fields, and
  singleton lookup (now supporting static fields as well as properties).
- RimChatDetector: probe real manager types instead of the RimChatAPI
  type so detection reflects actual dependency presence.
- ContextPullBridge: remove redundant IsRimChatActive checks (detection
  is handled upstream), make circuit-breaker flags volatile, and read
  dialogueSessions with Public|NonPublic|Instance.
- SharedIncidentCooldown: null-guard Find.TickManager.
- ActionGate: remove IsRomanceAction; IsSocialAction covers romance.
- Settings: round cooldown slider via Mathf.RoundToInt.
- Debug actions: null-safe selector/name access and report context keys
  from RimMindAPI.Context.ContextKeys.
- Remove csproj DeployToModsFolder target and deploy-single.sh; rework
  deploy-single.ps1 for dual-version builds with robocopy exclusions.
- Update tests, CI paths, docs, and About metadata to match.

BREAKING CHANGE: RimChatApiShim.ApiType, GetCachedProperty, and
ActionGate.IsRomanceAction are removed; ConfigureTypesForTesting no
longer accepts an apiType argument.
@mcocdaa
mcocdaa merged commit a53fe4a into main Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mcocdaa
mcocdaa deleted the refactor/phase2-cleanup branch November 23, 2026 06:13
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.

1 participant