Add TreeNode validation to prevent detached nodes causing inconsistent tool results#1044
Draft
Add TreeNode validation to prevent detached nodes causing inconsistent tool results#1044
Conversation
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Ensure live LLM tests run successfully
Relax LLM test regex to accept descriptive verb forms
Jan 30, 2026
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Copilot
AI
changed the title
Relax LLM test regex to accept descriptive verb forms
Add Playwright tests for LLM chat frontend with API key integration
Jan 30, 2026
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Copilot
AI
changed the title
Add Playwright tests for LLM chat frontend with API key integration
Document gpt-4o usage and OpenAI reasoning parameter limitations
Jan 30, 2026
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Copilot
AI
changed the title
Document gpt-4o usage and OpenAI reasoning parameter limitations
Standardize LLM configuration on gpt-5-mini with reasoning_effort and eliminate code duplication
Jan 30, 2026
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Copilot
AI
changed the title
Implement LLM tool calling with MCP-style function execution and comprehensive testing
Implement MCP-style tool calling for LLM with MQTT topic tree integration
Jan 31, 2026
… refactor proposals Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
…ersist) Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Copilot
AI
changed the title
Implement MCP-style tool calling for LLM with MQTT topic tree integration
Implement LLM chat with MCP-style tool calling for MQTT topic exploration
Jan 31, 2026
Copilot
AI
changed the title
Implement LLM chat with MCP-style tool calling for MQTT topic exploration
Implement MCP-style tool calling with live progress and human-readable UX
Jan 31, 2026
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Copilot
AI
changed the title
Implement MCP-style tool calling with live progress and human-readable UX
Implement MCP-style tool calling for LLM with human-readable display
Jan 31, 2026
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
…ugging Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
… Thinking Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
…nfo including results Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
- Add optional chaining to tc.function.name and tc.function.arguments (fixes undefined error) - Create getReadableName() helper to map tool names to human-readable labels - Update chip labels to show readable names (e.g., 'List Topics: kitchen') - Update debug panel headers to show readable names - Improves user understanding of what tools were executed Fixes: can't access property 'name', tc.function is undefined Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detached TreeNodes (nodes without parent chain) cause contradictory tool call results:
get_topic()returns child count from metadata whilelist_children()returns empty from missing edgeCollection.Changes
TreeNode Validation
isValidTreeNode()to verify node structure before useIntegration
currentNodeinsendMessage()before passing to tool executionundefinedif node is detached or invalidImplementation
Detached nodes now rejected early with diagnostic logging, eliminating metadata vs structure inconsistencies.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.