Conversation
…n, add TODOs Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
|
@copilot Look at BridgeJSON - it has a Mode field. Is it used or does all code only handle its 'local' state. If so, remove the field. Check for other similar cases in all models of the solution. |
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
I analyzed the I also found and removed the completely empty However, I preserved the Changes in commit 52a8f8a:
|
|
@copilot You probably need to revisit your changes, the documentation in MOD_DEVELOPMENT is outdated regarding the bridge.json format. Mods will ALWAYS be a local server, they will ALWAYS only ever need what is correctly documented in the ENV variables in MOD_DEVELOPMENT (that part is correct), but the fallback docs for bridge.json are wrong. They might even have outdated field names. Double check everywhere, assume that the new ENV variable names (GABS_GAME_ID, GABP_SERVER_PORT, GABP_TOKEN) are the only things a mod ever needs. GABS_BRIDGE_PATH is only used to point out the bridge path so the bridge itself (and the models in code) should not have that many unused or hardcoded values. Clean up this mess. |
…tion Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
You're absolutely right! I've cleaned up the bridge configuration mess: Removed unused fields:
Updated documentation:
The bridge.json format is now minimal with only what mods actually need for fallback scenarios. All tests pass and there are no breaking changes. Commit: 8042143 |
This PR addresses the comprehensive release review requested in #[issue_number], focusing on code cleanup, documentation improvements, removing unused code patterns, and identifying areas that need future development work.
🗑️ Obsolete Code Removal
Removed deprecated configuration example:
_host_example.configwhich used the old CLI-based approach (--gameId,--launch,--targetflags) instead of the current configuration-first architecturegabs games add→gabs serverworkflowEnhanced configuration examples:
example-config-openai.json→example-config.jsonwith comprehensive examplesstopProcessNameconfiguration for Steam/Epic gamesRemoved unused model fields and structs:
Modefield fromBridgeJSONandBridgeInfostructs - always hardcoded to "local" and never used for conditional logicHostandAgentfields fromBridgeJSONstruct - always hardcoded values that mods don't consumeHostfield fromBridgeInfostruct - always "127.0.0.1" for local communicationBridgeConfigstruct - served no purpose and simplified bridge configuration APISetBridgeInfomethod - removed unused host parameter since it's always localhost📚 Documentation Enhancements
Critical missing concepts added to README.md:
stopProcessNameis required for Steam/Epic gamesGABP_SERVER_PORT,GABP_TOKEN,GABS_GAME_ID) over bridge filesEnhanced CONFIGURATION.md:
Fixed documentation references:
examples/directoryCorrected bridge.json format documentation:
🔧 Code Areas Marked for Future Work
Added detailed TODO comments to identify incomplete implementations:
HTTP Transport (
internal/mcp/http_server.go):GABP Resource Mirroring (
internal/mirror/mirror.go):Connection Reliability (
internal/gabp/client.go):Platform Integration (
internal/process/controller.go):🧪 Quality Assurance
This review ensures GABS is ready for release with cleaner documentation, removed obsolete patterns and unused code, corrected bridge configuration format, and a clear roadmap for future enhancements through well-documented TODO markers.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.