Fix missing chromium template error for apps#104
Merged
JoshuaAFerguson merged 2 commits intoNov 19, 2025
Merged
Conversation
This change improves application launching reliability and error messages: - Modified CreateSession API to accept optional applicationId parameter - When applicationId is provided, the API now looks up the installed application to get the correct template name - Added validation for application enabled status and installation state - Provides specific error messages for: - Application not found - Application disabled - Installation failed - Installation still pending - Missing template configuration - Updated frontend Dashboard to send applicationId instead of templateName - Updated CreateSessionRequest interface to support applicationId This fixes the "Template not found" error when launching applications from the dashboard by ensuring the correct template name is resolved from the installed application record.
Enhanced error messages to include contextual information for debugging: Database layer (sessions.go): - All session operations now wrap errors with session ID, user ID context - Error messages include operation type (create, update, delete, query) API handlers improved: - quotas.go: 23 errors with user/team IDs, quota values - batch.go: 11 errors with user ID, session counts, operation types - scheduling.go: 12 errors with schedule ID, user ID, template info - loadbalancing.go: 8 errors with policy names, node info, scaling details - preferences.go: 15 errors with user ID, preference keys - security.go: 16 errors with MFA IDs, user IDs, IP addresses - collaboration.go: 11 errors with collaboration ID, user ID, annotation ID All errors now follow consistent pattern: - "error": Short description of what failed - "message": Detailed context with IDs and underlying error This makes debugging significantly easier by showing exactly what operation failed, which entity was involved, and the root cause.
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.
No description provided.