Skip to content

fix(ui): multi-line comment textarea (#25)#137

Merged
thebtf merged 6 commits into
mainfrom
fix/issue-25-multiline-comment
Apr 12, 2026
Merged

fix(ui): multi-line comment textarea (#25)#137
thebtf merged 6 commits into
mainfrom
fix/issue-25-multiline-comment

Conversation

@thebtf
Copy link
Copy Markdown
Owner

@thebtf thebtf commented Apr 12, 2026

Summary

Changes

  • ui/src/views/IssueDetailView.vue: <input><textarea rows="4"> with resize-y, min 80px / max 400px
  • Submit shortcut: EnterCtrl+Enter / Cmd+Enter (Enter now inserts newline)
  • Layout: horizontal flex → vertical flex-col with Send button right-aligned below

Test plan

  • Open any issue detail page
  • Verify comment form is multi-line textarea
  • Verify Ctrl+Enter submits, Enter inserts newline
  • Verify textarea resizes vertically

thebtf added 6 commits March 23, 2026 19:29
- POST /api/import/feedback: accepts feedback_*.md content, processes
  through server-side LLM (FeedbackImportSystemPrompt), stores as
  type=guidance observation with semantic dedup (0.90 threshold)
- CLI engram-import: sends files to server via HTTP instead of calling
  LLM directly (LLM only accessible from server/LM Studio)
- Removes direct LLM dependency from CLI binary
Closes #25: the "Add Comment (as operator)" field was a single-line
<input> that couldn't hold multi-line content like stack traces or
code blocks. Now uses a <textarea> with 4 default rows, resizable
up to 400px. Submit shortcut changed from Enter to Ctrl+Enter
(Cmd+Enter on macOS) so Enter inserts a newline.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 12, 2026

Warning

Rate limit exceeded

@thebtf has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 46 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 0 minutes and 46 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 64f1b670-80a1-4c11-8629-b055e29c6745

📥 Commits

Reviewing files that changed from the base of the PR and between 3d9178d and 0c431f7.

📒 Files selected for processing (17)
  • internal/db/gorm/observation_store.go
  • internal/db/gorm/observation_store_test.go
  • internal/db/gorm/session_store.go
  • internal/db/gorm/session_store_test.go
  • internal/mcp/server.go
  • internal/mcp/server_test.go
  • internal/mcp/tools_learning.go
  • internal/mcp/tools_learning_test.go
  • internal/worker/handlers_context_file.go
  • internal/worker/handlers_data.go
  • internal/worker/handlers_data_test.go
  • internal/worker/handlers_learning.go
  • internal/worker/handlers_learning_test.go
  • internal/worker/trigger_matcher.go
  • plugin/engram/hooks/stop.js
  • plugin/engram/hooks/stop.test.js
  • ui/src/views/IssueDetailView.vue
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/issue-25-multiline-comment

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements project-scoped filtering for observations and refactors session outcome handling to support both Claude session IDs and numeric database IDs. It introduces session auto-creation during outcome updates and ensures canonical session IDs are used across various MCP and worker handlers. The frontend was updated to provide a better commenting experience with a textarea, and the plugin's stop hook was made more resilient to missing database identifiers. Feedback suggests ensuring consistent RFC3339 timestamp formatting in the session store and applying URL encoding to session IDs in the plugin's API calls.

Updates(map[string]interface{}{
"outcome": outcome,
"outcome_reason": reason,
"outcome_recorded_at": time.Now(),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The outcome_recorded_at field should be explicitly formatted as an RFC3339 string for consistency with other timestamp fields in this store (like StartedAt at line 287). Passing a time.Time object to Updates for a string column relies on the database driver's default string representation, which may not match the expected format.

Suggested change
"outcome_recorded_at": time.Now(),
"outcome_recorded_at": time.Now().Format(time.RFC3339),


await lib.requestPost(
`/api/sessions/${sessionID}/outcome`,
`/api/sessions/${claudeSessionID}/outcome`,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The claudeSessionID should be URL-encoded when used in the path to prevent issues if the ID contains special characters. Other similar calls in this file (e.g., lines 349, 386) already use encodeURIComponent.

Suggested change
`/api/sessions/${claudeSessionID}/outcome`,
'/api/sessions/' + encodeURIComponent(claudeSessionID) + '/outcome',

@thebtf thebtf merged commit 3ca8495 into main Apr 12, 2026
2 checks passed
@thebtf thebtf deleted the fix/issue-25-multiline-comment branch April 12, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant