Text Highlight (Pin - 1): Update to Data Files and OnitPanelState#342
Closed
lk340 wants to merge 1 commit intofeature/text-highlight/auto-add-to-contextfrom
Closed
Conversation
Contributor
There was a problem hiding this comment.
Greptile Summary
This PR implements significant data model and state management changes to support a new pinned text highlight feature. The key changes include:
-
Refactoring
OnitPanelStateto handle multiple types of text inputs:- selectedPendingInput (currently selected)
- trackedPendingInput (being tracked)
- unpinnedPendingInput (temporary)
- pinnedPendingInputs (persisted)
-
Updating all data models and clients to support multiple inputs per instruction by changing:
[Input?]→[[Input]]in FetchingClient and StreamingClientinput: Input?→inputs: [Input]in Prompt model- Message builders updated to handle multiple inputs per instruction
These changes lay the groundwork for allowing users to pin multiple text selections as context for their conversations, rather than being limited to a single selection.
Confidence score: 3/5
- The PR introduces significant changes to core data structures but appears well-thought-out
- Score reduced because this is an intentionally non-buildable PR, making it impossible to verify the changes work together
- Files needing attention:
- OnitPanelState+Chat.swift: Verify that history management properly handles the new input structure
- ChatEndpointMessagesBuilder.swift: Ensure message formatting remains clear with multiple inputs
7 files reviewed, no comments
Edit PR Review Bot Settings | Greptile
This was referenced Jul 17, 2025
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
This PR only tackles the data and
OnitPanelStateaspect of the pinned text highlight feature. As a result, this branch will not build. I did this to separate concerns and make the updated code more reviewable.If you want to test the full buildable version of the pinned text highlight feature, checkout to the branch in the last PR: #341
Parts
YOU ARE HERE(Pin 1)