feat(tarko): add workspace display in navbar (close: #1039)#1081
Merged
Conversation
- Add unified Agent Options API endpoint (/api/v1/agent/options) - Implement configuration sanitizer for secure data exposure - Add workspace badge to navbar with green gradient theme - Integrate workspace info into session state management - Support responsive design with dynamic width calculation - Add proper TypeScript types and error handling Closes #1039
✅ Deploy Preview for agent-tars-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Replace custom interfaces with existing AgentOptions types - Fix tool serialization by excluding function implementations - Add proper type safety for ToolCallEngineType serialization - Update frontend types to match backend SanitizedAgentOptions - Extract model info from agent options in connection actions - Add secretlint ignores for legitimate apiKey and key patterns Resolves design issues in PR #1081 by using existing type system instead of creating duplicate interfaces.
- Move SanitizedAgentOptions and related types to @tarko/interface - Remove duplicate type definitions from web-ui - Update server to use shared types from interface package - Ensure proper type reuse across packages This eliminates code duplication and ensures consistent type definitions between server and client packages.
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.
Summary
Adds workspace directory display in navbar. Shows current working directory as a green badge with folder icon.
What's added:
/api/v1/agent/optionsendpoint for workspace infoUI:
Workspace badge appears before Agent/Model badges with green gradient theme.
🔧 Recent Improvements (Latest Commits)
Fixed Design Issues & Centralized Types
Problems Resolved:
AgentOptionstypesAgentOptionsfieldshandlerinstead offunction)Solutions Implemented:
Centralized Type Management
@tarko/interface:SanitizedAgentOptions,SanitizedTool,WorkspaceInfoComplete AgentOptions Support
AgentOptionsfields:id,name,instructions,model,maxTokens,temperature,thinking,tools,tool,toolCallEngine,maxIterations,context,eventStreamOptions,enableStreamingToolCallEvents,logLevel,workspaceworkspaceNamefield for UI displayToolCallEngineTypeserialization to stringCorrect Tool Serialization
functionproperty (not non-existenthandler)name,description,schemaSanitizedToolinterfaceArchitecture Improvement
🧪 Testing
Closes #1039
Checklist