Skip to content

ADFA-6404 | AI Core: keep the message box visible at the bottom panel's half level - #173

Open
Daniel-ADFA wants to merge 1 commit into
mainfrom
bugfix/ADFA-6404-agent-chat-composer
Open

Daniel-ADFA wants to merge 1 commit into
mainfrom
bugfix/ADFA-6404-agent-chat-composer

Conversation

@Daniel-ADFA

@Daniel-ADFA Daniel-ADFA commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

ADFA-6404

The host's bottom panel lays the Agent tab out full height, so at the panel's half level the message box sat below the window: invisible, and unreachable by TalkBack. The chat tab now pads its bottom by however much of it is off screen, so the message box and the sidebar footer stay visible at either level. Full expansion is unchanged (padding 0).

This is the ticket's first option. The ^ expand control would need a plugin-api call to expand the host's panel, which doesn't exist.

Known limit: in landscape the half level (about 70 dp) is shorter than the message box, so the box stays partly hidden there. Fixing that needs a host change.

Verified on an emulator at font scale 1.0 and 2.0: half level, keyboard open, sidebar, TalkBack touch focus, full expansion.

…'s half level

The host's bottom panel lays the Agent tab out full height, so at its half level the message box sat below the window: invisible, and unreachable by TalkBack. The chat tab now pads its bottom by however much of it is off screen, so the message box and the sidebar footer stay in view at either level.
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

  • AI-Core plugin version bumped from 3.5.0 (code 9) to 3.5.1 (code 10).
  • Chat tab keeps the message box and sidebar footer visible when the host bottom panel is at half expansion. The chat root gets bottom padding equal to the height hidden below its visible area.
  • New internal extension View.fitContentToVisibleBottom() in VisibleBottomFit.kt uses a pre-draw listener. It updates padding only when the value changes. The listener is added on attach and removed on detach.
  • ChatFragment calls fitContentToVisibleBottom() on the root. It also passes binding.chatColumn instead of binding.root to growUpTo.
  • fragment_chat.xml adds the ID chat_column to the main vertical LinearLayout.
  • No public API changes.

Risks and best-practice notes:

  • The pre-draw listener runs on every frame. It calls updatePadding on the root when the hidden height changes, which can trigger extra layout passes during panel drags.
  • Padding and growUpTo now use different containers (root and chatColumn). Reviewers should confirm input growth still excludes the new padding.
  • In landscape, the half level (about 70 dp) is shorter than the message box. The box stays partly hidden. The PR author states that a host change is needed.
  • The diff adds no unit or UI tests. Verification relies on the author's emulator checks at font scales 1.0 and 2.0.

AI-Core changes its version from 3.5.0 (code 9) to 3.5.1 (code 10). Chat input setup now fits the root view to its visible bottom and limits growUpTo to the chat column. A new extension updates bottom padding based on the local visible rectangle.

Changes: AI-Core chat input and release

Layer / File(s) Summary
Chat visible-bottom fitting
plugins/AI-Core/src/main/res/layout/fragment_chat.xml, plugins/AI-Core/src/main/kotlin/com/itsaky/androidide/plugins/aicore/fragments/VisibleBottomFit.kt, plugins/AI-Core/src/main/kotlin/com/itsaky/androidide/plugins/aicore/fragments/ChatFragment.kt
The chat column receives the chat_column ID. The new fitContentToVisibleBottom() extension updates bottom padding based on the local visible rectangle. Chat input setup calls the extension on the root and passes the chat column to growUpTo.
Plugin version update
plugins/AI-Core/build.gradle.kts
The configured version changes from code 9 and name 3.5.0 to code 10 and name 3.5.1.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: jatezzz

Merge Risk: Minimal · up to bfa8d

This keeps the chat message box visible when the bottom panel is half expanded. The change is small and easy to revert, and no concrete problems were found. In landscape the message box stays partly hidden at the half level, a known limit that needs a host change.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the ticket and the main change: the AI Core chat message box is kept visible when the host bottom panel is at half level. The changeset adds bottom padding to the chat column based on …
Description check Passed The description states the problem, which is the message box sitting below the window at the half level. It explains the fix (bottom padding equal to the hidden height), the rejected alternative, a kn…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the ticket and the main change: the AI Core chat message box is kept visible when the host bottom panel is at half level. The changeset adds bottom padding to the chat column based on the off-screen height, which matches the title's subject.

Full details: Description check

Explanation

The description states the problem, which is the message box sitting below the window at the half level. It explains the fix (bottom padding equal to the hidden height), the rejected alternative, a known landscape limit, and the verification steps. This relates directly to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the chat’s low edge,
Soft padding follows its visible ledge.
The chat column holds its place,
New version numbers join the race.
The rabbit hops away with grace.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: c296ae87-14dd-4ca6-b361-935ffeed5343
Commits

Reviewing files that changed from the base of the PR and between 13c36ee and bfa8d04.

Files selected for processing: 4

  • plugins/AI-Core/build.gradle.kts
  • plugins/AI-Core/src/main/kotlin/com/itsaky/androidide/plugins/aicore/fragments/ChatFragment.kt
  • plugins/AI-Core/src/main/kotlin/com/itsaky/androidide/plugins/aicore/fragments/VisibleBottomFit.kt
  • plugins/AI-Core/src/main/res/layout/fragment_chat.xml

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

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